Adding Scrollbar to a Frame
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Titu_Prusty
Posted On:   Monday, March 22, 2004 04:09 AM

			

I have to add a Scrollbar on the right side of a Frame.
because

i am displaying all the data to a Panel.then i add the panel on center of a frame.
add(datapanel,BorderLayout.CENTER);

it is hiding the data after line 35.I want to put a Scrollbar on the right side of a frame, that's why i can see all the record by scrolling the frame.

How can i do that.urgent---

Re: Adding Scrollbar to a Frame

Posted By:   Craig_Wood  
Posted On:   Monday, March 22, 2004 11:04 AM


ScrollPane scrollPane = new ScrollPane();
scrollPane.add(datapanel);
add(scrollPane, BorderLayout.CENTER);
About | Sitemap | Contact