• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JScrollBar

 
Chiranjeevi Kanthraj
Ranch Hand
Posts: 290
Hibernate Spring Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi i want to insert the Scroll bar to the whole window.
i want some ideas for codeing help me.
 
Michael Dunn
Ranch Hand
Posts: 4632
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
JPanel contentPanePanel = new JPanel(new BorderLayout());
//add whatever you've added to the frame's contentPane instead to contentPanePanel
//now it becomes
frame.getContentPane().add(new JScrollPane(contentPanePanel));
 
Chiranjeevi Kanthraj
Ranch Hand
Posts: 290
Hibernate Spring Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
But I'm createing this in Netbean IDE how can i do this..
because i cont edit the code that is genrated by the IDE
 
Michael Dunn
Ranch Hand
Posts: 4632
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
> But I'm createing this in Netbean IDE how can i do this..

Absolutely no idea, I don't use Netbeans.

As your question is now an IDE-how-to question, perhaps you should ask
this to be moved to the IDE's forum
 
Maneesh Godbole
Saloon Keeper
Posts: 11173
14
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by chiru surya:
But I'm createing this in Netbean IDE how can i do this..
because i cont edit the code that is genrated by the IDE


Another reason why one should not use D&D style IDEs ! Wasn't there a thread a few days back where someone was asking which IDE is better? I wonder if I can cross post this.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic