The moose likes Swing / AWT / SWT and the fly likes disabling JScrollPane but the component inside the JScrollPane should be as before Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Reply Bookmark "disabling JScrollPane but the component inside the JScrollPane should be as before" Watch "disabling JScrollPane but the component inside the JScrollPane should be as before" New topic
Author

disabling JScrollPane but the component inside the JScrollPane should be as before

sarveshwar singh
Greenhorn

Joined: Feb 25, 2011
Posts: 13


[code=java]
Hello ,

I have a custom JPanel class , it contains components as follows :-

JScrollPane
JSplitPane
|--->JScrollPane(on right of JSplitPane)
| ----------->JTabbedPane
|--->JScrollPane(on left of JSplitPane)
| ----------->JTabbedPane

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,
Sarveshwar Singh.
[/code]


OCPJP 6
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: disabling JScrollPane but the component inside the JScrollPane should be as before
 
Similar Threads
Drawing with mouse
Vertical ScrollBar of a JScrollPane not functioning??
Swing pane to pane interaction
JScrollPane inside JTabbedPane
JScrollPane won't resize to JPanel height as intended