* work around multi-platform issues with default scrollpaneborder by replacing it with a fixed color 1px border
This commit is contained in:
parent
78006226f3
commit
cc425ba66f
|
@ -33,6 +33,7 @@ import javax.swing.SwingUtilities;
|
|||
import javax.swing.Timer;
|
||||
import javax.swing.border.CompoundBorder;
|
||||
import javax.swing.border.EmptyBorder;
|
||||
import javax.swing.border.LineBorder;
|
||||
import javax.swing.event.ListSelectionEvent;
|
||||
import javax.swing.event.ListSelectionListener;
|
||||
|
||||
|
@ -71,7 +72,7 @@ public class MainFrame extends JFrame {
|
|||
}
|
||||
|
||||
JScrollPane selectionListScrollPane = new JScrollPane(selectionList, VERTICAL_SCROLLBAR_NEVER, HORIZONTAL_SCROLLBAR_NEVER);
|
||||
selectionListScrollPane.setBorder(new CompoundBorder(new ShadowBorder(), selectionListScrollPane.getBorder()));
|
||||
selectionListScrollPane.setBorder(new CompoundBorder(new ShadowBorder(), new LineBorder(new Color(0x809DB8), 1, false)));
|
||||
selectionListScrollPane.setOpaque(false);
|
||||
|
||||
headerPanel.getTitleLabel().setBorder(new EmptyBorder(8, 90, 10, 0));
|
||||
|
|
Loading…
Reference in New Issue