• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

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

 
Greenhorn
Posts: 13
Netbeans IDE MySQL Database Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

[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]
 
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
https://www.kickstarter.com/projects/paulwheaton/free-heat
reply
    Bookmark Topic Watch Topic
  • New Topic