mirror of
https://github.com/GTNewHorizons/Opis.git
synced 2026-11-26 23:13:22 +00:00
Fixed background color.
Tooltips have a delay of 500ms and no timeout
This commit is contained in:
1 parent
a260badacd
commit
801c3c6ebb
2 files changed
+5
-1
No files matched your search
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user