removed divider label
This commit is contained in:
parent
703acb743b
commit
7559b2e7fb
@ -27,7 +27,6 @@ public class MainWindow extends JFrame {
|
||||
private FilePanel rightPanel;
|
||||
private FilePanel activePanel;
|
||||
private JSplitPane mainPanel;
|
||||
private JLabel dividerStatusLabel;
|
||||
private JPanel buttonPanel;
|
||||
private JToolBar toolBar;
|
||||
private JComboBox<String> commandLine;
|
||||
@ -431,17 +430,6 @@ public class MainWindow extends JFrame {
|
||||
|
||||
cmdPanel.add(commandLine, BorderLayout.CENTER);
|
||||
|
||||
dividerStatusLabel = new JLabel("");
|
||||
dividerStatusLabel.setFont(new Font("Monospaced", Font.BOLD, 13));
|
||||
dividerStatusLabel.setForeground(Color.WHITE);
|
||||
dividerStatusLabel.setBackground(new Color(0, 120, 215));
|
||||
dividerStatusLabel.setOpaque(true);
|
||||
dividerStatusLabel.setBorder(BorderFactory.createCompoundBorder(
|
||||
BorderFactory.createLineBorder(new Color(0, 90, 160)),
|
||||
BorderFactory.createEmptyBorder(2, 10, 2, 10)
|
||||
));
|
||||
cmdPanel.add(dividerStatusLabel, BorderLayout.EAST);
|
||||
|
||||
// Load history from config
|
||||
java.util.List<String> history = config.getCommandLineHistory();
|
||||
for (int i = 0; i < history.size(); i++) {
|
||||
@ -2940,10 +2928,6 @@ public class MainWindow extends JFrame {
|
||||
|
||||
String tooltip = String.format("%s: %d%% | %s: %d%%", firstLabel, leftPercent, secondLabel, rightPercent);
|
||||
splitPane.setToolTipText(tooltip);
|
||||
if (dividerStatusLabel != null) {
|
||||
dividerStatusLabel.setText(String.format("%d%% : %d%%", leftPercent, rightPercent));
|
||||
dividerStatusLabel.setToolTipText(tooltip);
|
||||
}
|
||||
|
||||
// Set tooltip also on the divider component itself
|
||||
Component left = splitPane.getLeftComponent();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user