mirror of
https://github.com/mitb-archive/filebot
synced 2025-03-09 13:59:49 -04:00
import static javax.swing.BorderFactory.*;
This commit is contained in:
parent
4af2a68376
commit
c6010fc7fc
@ -1,5 +1,6 @@
|
||||
package net.filebot.ui;
|
||||
|
||||
import static javax.swing.BorderFactory.*;
|
||||
import static javax.swing.ScrollPaneConstants.*;
|
||||
import static net.filebot.Logging.*;
|
||||
import static net.filebot.util.ui.SwingUI.*;
|
||||
@ -17,7 +18,6 @@ import java.util.TreeSet;
|
||||
import java.util.logging.Level;
|
||||
|
||||
import javax.swing.AbstractAction;
|
||||
import javax.swing.BorderFactory;
|
||||
import javax.swing.Icon;
|
||||
import javax.swing.JButton;
|
||||
import javax.swing.JComponent;
|
||||
@ -57,11 +57,11 @@ public abstract class AbstractSearchPanel<S, E> extends JComponent {
|
||||
historyPanel.setColumnHeader(2, "Duration");
|
||||
|
||||
JScrollPane historyScrollPane = new JScrollPane(historyPanel, VERTICAL_SCROLLBAR_AS_NEEDED, HORIZONTAL_SCROLLBAR_NEVER);
|
||||
historyScrollPane.setBorder(BorderFactory.createEmptyBorder());
|
||||
historyScrollPane.setBorder(createEmptyBorder());
|
||||
|
||||
tabbedPane.addTab("History", ResourceManager.getIcon("action.find"), historyScrollPane);
|
||||
|
||||
tabbedPaneGroup.setBorder(BorderFactory.createTitledBorder("Search Results"));
|
||||
tabbedPaneGroup.setBorder(createTitledBorder("Search Results"));
|
||||
tabbedPaneGroup.add(tabbedPane, "grow, wrap");
|
||||
setLayout(new MigLayout("nogrid, novisualpadding, fill, insets 10px 10px 15px 10px", "align 45%", "[pref!]10px[fill]"));
|
||||
|
||||
|
@ -14,7 +14,6 @@ import java.util.regex.Matcher;
|
||||
import java.util.regex.Pattern;
|
||||
|
||||
import javax.swing.AbstractAction;
|
||||
import javax.swing.BorderFactory;
|
||||
import javax.swing.DefaultListCellRenderer;
|
||||
import javax.swing.JButton;
|
||||
import javax.swing.JComboBox;
|
||||
@ -45,7 +44,7 @@ public class SelectButtonTextField<T> extends JComponent {
|
||||
public SelectButtonTextField() {
|
||||
selectButton.addActionListener(textFieldFocusOnClick);
|
||||
|
||||
editor.setBorder(BorderFactory.createMatteBorder(1, 0, 1, 1, ((LineBorder) selectButton.getBorder()).getLineColor()));
|
||||
editor.setBorder(createMatteBorder(1, 0, 1, 1, ((LineBorder) selectButton.getBorder()).getLineColor()));
|
||||
|
||||
setLayout(new MigLayout("fill, nogrid, novisualpadding"));
|
||||
add(selectButton, "h pref!, w pref!, sizegroupy editor");
|
||||
@ -162,7 +161,7 @@ public class SelectButtonTextField<T> extends JComponent {
|
||||
editor.setEnabled(comboBox.isEnabled());
|
||||
editor.setFocusable(comboBox.isFocusable());
|
||||
editor.setFont(comboBox.getFont());
|
||||
editor.setBorder(BorderFactory.createEmptyBorder(0, 3, 0, 3));
|
||||
editor.setBorder(createEmptyBorder(0, 3, 0, 3));
|
||||
|
||||
editor.addFocusListener(createFocusListener());
|
||||
|
||||
|
@ -1,5 +1,6 @@
|
||||
package net.filebot.ui.filter;
|
||||
|
||||
import static javax.swing.BorderFactory.*;
|
||||
import static net.filebot.MediaTypes.*;
|
||||
import static net.filebot.media.XattrMetaInfo.*;
|
||||
import static net.filebot.util.FileUtilities.*;
|
||||
@ -10,7 +11,6 @@ import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import java.util.concurrent.CancellationException;
|
||||
|
||||
import javax.swing.BorderFactory;
|
||||
import javax.swing.JScrollPane;
|
||||
import javax.swing.JTable;
|
||||
import javax.swing.ListSelectionModel;
|
||||
@ -42,7 +42,7 @@ class AttributeTool extends Tool<TableModel> {
|
||||
table.setRowHeight(25);
|
||||
|
||||
JScrollPane scrollPane = new JScrollPane(table);
|
||||
scrollPane.setBorder(BorderFactory.createEmptyBorder());
|
||||
scrollPane.setBorder(createEmptyBorder());
|
||||
|
||||
setLayout(new MigLayout("insets 0, fill"));
|
||||
add(new LoadingOverlayPane(scrollPane, this), "grow");
|
||||
|
@ -1,10 +1,10 @@
|
||||
package net.filebot.ui.filter;
|
||||
|
||||
import static javax.swing.BorderFactory.*;
|
||||
import static net.filebot.ui.transfer.BackgroundFileTransferablePolicy.*;
|
||||
import static net.filebot.util.ui.SwingUI.*;
|
||||
|
||||
import javax.swing.Action;
|
||||
import javax.swing.BorderFactory;
|
||||
import javax.swing.JButton;
|
||||
import javax.swing.JComponent;
|
||||
import javax.swing.JScrollPane;
|
||||
@ -25,7 +25,7 @@ class FileTreePanel extends JComponent {
|
||||
public FileTreePanel() {
|
||||
fileTree.setTransferHandler(new DefaultTransferHandler(transferablePolicy, null));
|
||||
|
||||
setBorder(BorderFactory.createTitledBorder("File Tree"));
|
||||
setBorder(createTitledBorder("File Tree"));
|
||||
|
||||
setLayout(new MigLayout("insets 0, nogrid, fill", "align center", "[fill][pref!]"));
|
||||
add(new LoadingOverlayPane(new JScrollPane(fileTree), this), "grow, wrap 1.2mm");
|
||||
|
@ -1,6 +1,7 @@
|
||||
package net.filebot.ui.filter;
|
||||
|
||||
import static java.util.Collections.*;
|
||||
import static javax.swing.BorderFactory.*;
|
||||
import static net.filebot.Logging.*;
|
||||
import static net.filebot.MediaTypes.*;
|
||||
import static net.filebot.util.FileUtilities.*;
|
||||
@ -15,7 +16,6 @@ import java.util.concurrent.CancellationException;
|
||||
import java.util.regex.Pattern;
|
||||
import java.util.stream.IntStream;
|
||||
|
||||
import javax.swing.BorderFactory;
|
||||
import javax.swing.JScrollPane;
|
||||
import javax.swing.JTable;
|
||||
import javax.swing.ListSelectionModel;
|
||||
@ -47,7 +47,7 @@ class MediaInfoTool extends Tool<TableModel> {
|
||||
table.setRowHeight(25);
|
||||
|
||||
JScrollPane scrollPane = new JScrollPane(table);
|
||||
scrollPane.setBorder(BorderFactory.createEmptyBorder());
|
||||
scrollPane.setBorder(createEmptyBorder());
|
||||
|
||||
setLayout(new MigLayout("insets 0, fill"));
|
||||
add(new LoadingOverlayPane(scrollPane, this), "grow");
|
||||
|
@ -1,6 +1,7 @@
|
||||
package net.filebot.ui.filter;
|
||||
|
||||
import static java.util.Collections.*;
|
||||
import static javax.swing.BorderFactory.*;
|
||||
import static net.filebot.util.FileUtilities.*;
|
||||
|
||||
import java.io.File;
|
||||
@ -10,11 +11,10 @@ import java.util.LinkedHashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.Map.Entry;
|
||||
import java.util.concurrent.CancellationException;
|
||||
import java.util.SortedMap;
|
||||
import java.util.TreeMap;
|
||||
import java.util.concurrent.CancellationException;
|
||||
|
||||
import javax.swing.BorderFactory;
|
||||
import javax.swing.JScrollPane;
|
||||
import javax.swing.tree.DefaultTreeModel;
|
||||
import javax.swing.tree.TreeModel;
|
||||
@ -36,7 +36,7 @@ class TypeTool extends Tool<TreeModel> {
|
||||
|
||||
setLayout(new MigLayout("insets 0, fill"));
|
||||
JScrollPane treeScrollPane = new JScrollPane(tree);
|
||||
treeScrollPane.setBorder(BorderFactory.createEmptyBorder());
|
||||
treeScrollPane.setBorder(createEmptyBorder());
|
||||
|
||||
add(new LoadingOverlayPane(treeScrollPane, this), "grow");
|
||||
|
||||
|
@ -1,5 +1,7 @@
|
||||
package net.filebot.util.ui;
|
||||
|
||||
import static javax.swing.BorderFactory.*;
|
||||
|
||||
import java.awt.Color;
|
||||
import java.awt.Component;
|
||||
import java.awt.Dimension;
|
||||
@ -18,7 +20,6 @@ import java.util.Collection;
|
||||
import java.util.Collections;
|
||||
import java.util.List;
|
||||
|
||||
import javax.swing.BorderFactory;
|
||||
import javax.swing.DefaultSingleSelectionModel;
|
||||
import javax.swing.Icon;
|
||||
import javax.swing.JButton;
|
||||
@ -55,7 +56,7 @@ public class SelectButton<T> extends JButton {
|
||||
setHorizontalAlignment(SwingConstants.CENTER);
|
||||
setVerticalAlignment(SwingConstants.CENTER);
|
||||
|
||||
setBorder(BorderFactory.createLineBorder(new Color(0xA4A4A4), 1));
|
||||
setBorder(createLineBorder(new Color(0xA4A4A4), 1));
|
||||
setPreferredSize(new Dimension(32, 22));
|
||||
|
||||
addActionListener(new OpenPopupOnClick());
|
||||
|
@ -4,6 +4,7 @@
|
||||
|
||||
package net.filebot.util.ui.notification;
|
||||
|
||||
import static javax.swing.BorderFactory.*;
|
||||
import static net.filebot.util.ui.SwingUI.*;
|
||||
|
||||
import java.awt.BorderLayout;
|
||||
@ -32,8 +33,8 @@ public class MessageNotification extends NotificationWindow {
|
||||
}
|
||||
|
||||
private int margin = 10;
|
||||
private Border marginBorder = BorderFactory.createEmptyBorder(margin, margin, margin, margin);
|
||||
private Border border = BorderFactory.createCompoundBorder(BorderFactory.createEtchedBorder(new Color(245, 155, 15), Color.WHITE), marginBorder);
|
||||
private Border marginBorder = createEmptyBorder(margin, margin, margin, margin);
|
||||
private Border border = createCompoundBorder(createEtchedBorder(new Color(245, 155, 15), Color.WHITE), marginBorder);
|
||||
|
||||
private JLabel headLabel;
|
||||
private JTextPane textArea;
|
||||
|
Loading…
x
Reference in New Issue
Block a user