I have what I'm sure is a beginner problem with my JScrollPanes. The problem is that the vertical scroll bar overlaps the components inside the closed panel (on the right side). It gets a little painful when the scrollbar overlaps the JComboBoxes popup bit.
I swallowed the problem to this small fragment - I hope this illustrates the problem.
public class ScrollTest extends JFrame { public ScrollTest() { super("Overlap issues!"); JPanel panel = new JPanel(); panel.setLayout(new GridLayout(100,0)); for(int b=0;b<100;++b) { panel.add(new JButton("Small overlap here ->")); } JScrollPane scrollpane = new JScrollPane(panel); add(scrollpane); pack(); setVisible(true); } public static void main(String[] args) { new ScrollTest(); } }
I had a first glance, but I could not understand if anyone else was addressing this issue. Sorry if this is a duplicate and thank you very much for any help anyone can offer java-newb like me!
source share