jQuery in Action, 2nd edition*
The moose likes Applets and the fly likes applet resise not happening on drag by user Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Applets
Bookmark "applet resise not happening on drag by user " Watch "applet resise not happening on drag by user " New topic
Author

applet resise not happening on drag by user

Rakesh Kumar
Ranch Hand

Joined: May 30, 2006
Posts: 63
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
john price
Ranch Hand

Joined: Feb 24, 2011
Posts: 495

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 ) :


“Don’t worry if it doesn’t work right. If everything did, you’d be out of a job.” (Mosher's Law of Software Engineering)
“If debugging is the process of removing bugs, then programming must be the process of putting them in.” (Edsger Dijkstra)
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: applet resise not happening on drag by user
 
Similar Threads
A better way with the if statement?
Bean Resizing problem
Abstraction and Object Oriented Programming
Problem with JDialog and setSize()
How do I Dynamically change Applet size.