Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

applet resise not happening on drag by user

 
Rakesh Kumar
Ranch Hand
Posts: 63
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 495
Chrome Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ) :
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic