Fixed background color.

Tooltips have a delay of 500ms and no timeout
This commit is contained in:
ProfMobius committed 2014-04-05 18:32:57 +02:00
1 parent a260badacd
commit 801c3c6ebb
2 files changed
+5 -1

No files matched your search

+3
View File
@@ -6,6 +6,7 @@ import java.awt.EventQueue;
import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.JTabbedPane;
import javax.swing.ToolTipManager;
import javax.swing.WindowConstants;
import javax.swing.border.EmptyBorder;
@@ -76,6 +77,8 @@ public class SwingUI extends JFrame implements WindowListener, IMessageHandler{
contentPane.add(tabbedPane, BorderLayout.CENTER);
this.addWindowListener(this);
ToolTipManager.sharedInstance().setInitialDelay(500);
ToolTipManager.sharedInstance().setDismissDelay(60 * 1000);
}
@@ -64,7 +64,8 @@ public class PanelDimensions extends JPanelMsgHandler implements IMessageHandler
return columnEditables[column];
}
});
table.setBackground(UIManager.getColor("windowBorder"));
//table.setBackground(UIManager.getColor("windowBorder"));
table.setBackground(this.getBackground());
table.setAutoCreateRowSorter(true);
table.setShowGrid(false);
scrollPane.setViewportView(table);