posted 20 years ago
Hi,
is it possible to have a jscrollpane with the same size of a panel in a frame? my scrollpane has a fixed size, but i want it to be as big as possible in my frame. how can i do that? i use gridbaglayout:
gbConstraints.fill = GridBagConstraints.BOTH;
gbConstraints.weightx = 1.0 ;
gbConstraints.weighty = 1.0 ;
gbConstraints.gridx = 0;
gbConstraints.gridy = 0;
gbLayout.setConstraints(myPanelWithScrollPaneInside, gbConstraints);
Thanks a lot!