* misc UI
This commit is contained in:
parent
fa46cc4c1a
commit
7e71b11448
Binary file not shown.
Binary file not shown.
Before Width: | Height: | Size: 9.5 KiB After Width: | Height: | Size: 9.2 KiB |
|
@ -1,9 +1,11 @@
|
||||||
package net.filebot.ui;
|
package net.filebot.ui;
|
||||||
|
|
||||||
|
import java.awt.Dimension;
|
||||||
import java.awt.datatransfer.Transferable;
|
import java.awt.datatransfer.Transferable;
|
||||||
|
|
||||||
import javax.swing.JComponent;
|
import javax.swing.JComponent;
|
||||||
import javax.swing.JFrame;
|
import javax.swing.JFrame;
|
||||||
|
import javax.swing.border.EmptyBorder;
|
||||||
|
|
||||||
import net.filebot.ui.transfer.TransferablePolicy;
|
import net.filebot.ui.transfer.TransferablePolicy;
|
||||||
import net.filebot.ui.transfer.TransferablePolicy.TransferAction;
|
import net.filebot.ui.transfer.TransferablePolicy.TransferAction;
|
||||||
|
@ -22,7 +24,15 @@ public class SinglePanelFrame extends JFrame {
|
||||||
c.setLayout(new MigLayout("insets 0, nogrid, fill", "fill", "fill"));
|
c.setLayout(new MigLayout("insets 0, nogrid, fill", "fill", "fill"));
|
||||||
c.add(panel);
|
c.add(panel);
|
||||||
|
|
||||||
setSize(760, 480);
|
HeaderPanel headerPanel = new HeaderPanel();
|
||||||
|
headerPanel.getTitleLabel().setBorder(new EmptyBorder(8, 8, 8, 8));
|
||||||
|
headerPanel.getTitleLabel().setIcon(builder.getIcon());
|
||||||
|
headerPanel.getTitleLabel().setText(builder.getName());
|
||||||
|
headerPanel.getTitleLabel().setIconTextGap(15);
|
||||||
|
c.add(headerPanel, "growx, dock north");
|
||||||
|
|
||||||
|
setSize(850, 600);
|
||||||
|
setMinimumSize(new Dimension(800, 400));
|
||||||
}
|
}
|
||||||
|
|
||||||
public SinglePanelFrame publish(Transferable transferable) {
|
public SinglePanelFrame publish(Transferable transferable) {
|
||||||
|
|
|
@ -59,7 +59,7 @@ public class EpisodeListPanel extends AbstractSearchPanel<EpisodeListProvider, E
|
||||||
private JComboBox sortOrderComboBox = new JComboBox(SortOrder.values());
|
private JComboBox sortOrderComboBox = new JComboBox(SortOrder.values());
|
||||||
|
|
||||||
public EpisodeListPanel() {
|
public EpisodeListPanel() {
|
||||||
historyPanel.setColumnHeader(0, "Show");
|
historyPanel.setColumnHeader(0, "TV Series");
|
||||||
historyPanel.setColumnHeader(1, "Number of Episodes");
|
historyPanel.setColumnHeader(1, "Number of Episodes");
|
||||||
|
|
||||||
JSpinner seasonSpinner = new JSpinner(seasonSpinnerModel);
|
JSpinner seasonSpinner = new JSpinner(seasonSpinnerModel);
|
||||||
|
|
|
@ -60,7 +60,7 @@ public class SubtitlePanel extends AbstractSearchPanel<SubtitleProvider, Subtitl
|
||||||
private LanguageComboBox languageComboBox = new LanguageComboBox(ALL_LANGUAGES, getSettings());
|
private LanguageComboBox languageComboBox = new LanguageComboBox(ALL_LANGUAGES, getSettings());
|
||||||
|
|
||||||
public SubtitlePanel() {
|
public SubtitlePanel() {
|
||||||
historyPanel.setColumnHeader(0, "Show / Movie");
|
historyPanel.setColumnHeader(0, "Search");
|
||||||
historyPanel.setColumnHeader(1, "Number of Subtitles");
|
historyPanel.setColumnHeader(1, "Number of Subtitles");
|
||||||
|
|
||||||
// add after text field
|
// add after text field
|
||||||
|
|
Loading…
Reference in New Issue