Forums Register Login

applet resise not happening on drag by user

+Pie Number of slices to send: Send
Dear friends,

I tried to implement resising on drag of the applet window by user using below coding .but it is not resizing but ad=fter refresh only it is drawing properly as per the

public void setSize(int width, int height) {
super.setSize(width,height);

validate();
}

I am able to pass teh width and height into applet as pert he resize. But "setSise()" method is not working properly.

Friends please share your idea and thought about it.It is little urgent.

Thanks in advance


Thank
rakesh
+Pie Number of slices to send: Send
Keep the setSize method in your code. What I've found is this to work (it's JavaScript I found online, it's copied and pasted, and I have very little clue what it ACTUALLY does :P ) :
A magnificient life is loaded with tough challenges. En garde tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 1127 times.
Similar Threads
Problem with JDialog and setSize()
Bean Resizing problem
Abstraction and Object Oriented Programming
A better way with the if statement?
How do I Dynamically change Applet size.
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 29, 2024 05:55:07.