Mohan Lavu

Greenhorn
+ Follow
since May 25, 2001
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Mohan Lavu

Hi,
I have a problem with Scrollpanes.I have a panel on which i do all the drawing with the graphics context and the panel's preferred size is set.I have a frame in which i have an instance of the above class which extends a panel and a scrollpane to which this instance is added.The scrollpanes preferred size is also set.when i execute the application i get the scrollbars as i have includes scrollbarconstants as ALWAYS.The problem is i am able to scroll up to the scrollpane's dimesnions only.can any one tell me why this is happening like this??? I am bogged down with this problem for a day..
Thank You.
20 years ago
Hi subha,
The problem is not with the scrollbars and values.The problem fo rme is implementing the listener code.what should i do before i repaint it.Lemme put it more elaborately.My Applet has a width which is enough to view 5 rectangles.In the first run it is showing me the first five.when i scroll (horizontally)
Now the first one should disappear and Rectangles from 2 to 6 should appear.I dunno swing.So please stick to scrollbars instead of jscrollbars.Now i am doing AWT's.The problem is with code to be written for adjustmentValueChanged().
Thank you,
Mohan.
20 years ago
please see the below message "Adjustment Listener".
20 years ago
Hi Everyone!
I am new to Java.I have a problem with handling the Adjustment event.I have an Applet which draws 'n' number of rectangles.There are some Buttons and textfields and scrollbars.
When the paint method draws the n number of rectangles(Using drawRect(.....)) i need to scroll and show the rectangles which were initially invisible.I tried to do something but was not able to get it correctly.Hope some one is gonna help me out!!!.
I will be glad to have a small Applet code to demonstrate this.
Thank You.
20 years ago