• 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
  • Tim Cooke
  • paul wheaton
  • Liutauras Vilda
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Scott Selikoff
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
  • Frits Walraven
Bartenders:
  • Stephan van Hulst
  • Carey Brown

please help

 
Ranch Hand
Posts: 78
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
My problem is that,
i have a tabbed pane, within that have several nested panes...
I need to add a scroll pane to one of the nested panes... I tried this way but not working... please help...


i still do not see any scroll pane... whre is my mistake please help
 
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Try doing this

tabpan = new javax.swing.JTabbedPane();
tabpan2 = new javax.swing.JTabbedPane();
panCoupling = new javax.swing.JPanel();
scrollPane = new javax.swing.JScrollPane();
textArea = new javax.swing.JTextArea();

setLayout(new java.awt.BorderLayout());

scrollPane.setPreferredSize(new java.awt.Dimension(200, 200));
scrollPane.setViewportView(textArea);

panCoupling.add(scrollPane);

tabpan2.addTab("CBO", panCoupling);

tabpan.addTab("tab1", tabpan2);

add(tabpan, java.awt.BorderLayout.CENTER);
 
Ranch Hand
Posts: 1535
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
 
Did you miss me? Did you miss this tiny ad?
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic