* misc UI

This commit is contained in:
Reinhard Pointner 2015-12-12 14:54:32 +00:00
parent fa46cc4c1a
commit 7e71b11448
5 changed files with 13 additions and 3 deletions

Binary file not shown.

Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.5 KiB

After

Width:  |  Height:  |  Size: 9.2 KiB

View File

@ -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) {

View File

@ -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);

View File

@ -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