aspose file tools*
The moose likes Swing / AWT / SWT and the fly likes JScrollBar Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "JScrollBar" Watch "JScrollBar" New topic
Author

JScrollBar

Chiranjeevi Kanthraj
Ranch Hand

Joined: Feb 18, 2008
Posts: 290

hi i want to insert the Scroll bar to the whole window.
i want some ideas for codeing help me.


-Chiru
Michael Dunn
Ranch Hand

Joined: Jun 09, 2003
Posts: 4632
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

Joined: Feb 18, 2008
Posts: 290

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

Joined: Jun 09, 2003
Posts: 4632
> 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

Joined: Jul 26, 2007
Posts: 10523
    
    9

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.


[How to ask questions] [Donate a pint, save a life!] [Onff-turn it on!]
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: JScrollBar