aspose file tools*
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 Spring in Action this week in the Spring 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)
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: applet resise not happening on drag by user