Search within Swing / AWT / SWT
Register / Login
this forum made possible by our volunteer staff, including ...
Stephan van Hulst
Swing / AWT / SWT
disabling JScrollPane but the component inside the JScrollPane should be as before
posted 11 years ago
Number of slices to send:
Optional 'thank-you' note:
I have a custom JPanel class , it contains components as follows :-
|--->JScrollPane(on right of JSplitPane)
|--->JScrollPane(on left of JSplitPane)
now suppose i have created an object of my custom JPanel class like this:-
MYCustomPane newPane = new MYCustomPane(); (also MYCustomPane class extends Jpanel)
now i want that newPane object must not display JscrollPane(in other words i do not want the scrolling property), but it should display both JTabbedPane inside my JSplitPane .
Also i dont want to change the structure of my original class. hope u can understand my problem why i do not want to change the structure of my MYCustomPane class.
Thanks and Regards,
The fastest and most reliable components of any system are those that are not there. Tiny ad:
Free, earth friendly heat - from the CodeRanch trailboss
Boost this thread!
Swing pane to pane interaction
Vertical ScrollBar of a JScrollPane not functioning??
JScrollPane won't resize to JPanel height as intended
JScrollPane inside JTabbedPane
Drawing with mouse