Hi everybody, Again i have some problem ... tell me how do i use Scrollbar or ScrollPane.......i mean i need to display in a panel and since the data is too long so i need to use ScrollPane or Scrollbar... Please help me....... Can anybody please explain me with an example.... Kajol
Hello Everybody, I havent got any more replies....... Angela I tried ur suggestions but failed ... Can u or anybody else expalin and elaborte the ScrollPane with an example....... Waiting for reply...
Stanley George
Ranch Hand
Joined: Dec 09, 2000
Posts: 55
posted
0
// to enable scrolling JScrollPane decryptPane = new JScrollPane(); // add the text area(or anything) to the scroll pane decryptPane.getViewport().add(textArea);
hope this helps
Stephanie Grasson
Ranch Hand
Joined: Jun 14, 2000
Posts: 347
posted
0
Kajol, Here is one way to do what you are asking:
This code displays labels in a scrolling panel. Hope this helps. Stephanie
Kajol Shroff
Ranch Hand
Joined: Dec 04, 2000
Posts: 160
posted
0
Hi Stanley, I dont want to use Swing ...just a plane applet.... and Stephanie Grasson i have been trying to implemet it in applet ... let me try....well till the mean time can u give me an example using applet........... Kajol
Angela Lamb
Ranch Hand
Joined: Feb 22, 2001
Posts: 156
posted
0
Why don't you post the code you are using? I tested the following and it works just fine:
Kajol Shroff
Ranch Hand
Joined: Dec 04, 2000
Posts: 160
posted
0
Thanks Angela Even I tried and it worked........ Sorry for the inconvinience.........I am a fresher...so a bit slow..but let me tell u u all guys re really prompt in your responses. Cheers Kajol