This week's book giveaway is in the Jython/Python forum.
We're giving away four copies of Murach's Python Programming and have Michael Urban and Joel Murach on-line!
See this thread for details.
Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Resizing my frame  RSS feed

 
Kajol Shroff
Ranch Hand
Posts: 160
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I need some help....i have set my frame resizable to false..so that no one can change the size of my frame..it works fine in appletviewer but in browser i.e. IE or Netscape it dosent work..
Please help me out in this......
 
Kajol Shroff
Ranch Hand
Posts: 160
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello there,
Why nobody is replying to my query ...have I asked something really basic...that all are hesitating to reply me..
Waitng for replies...
Kajol
 
Jahanzeb Sayal
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hii
I have tried this code on Windows 98 IE 5 & the resize behavior is perfectly working as programmed. Try it ! & reply me if its working or not...
import java.awt.Button;
import java.awt.Frame;
import java.awt.FlowLayout;
import java.awt.Label;
import java.applet.Applet;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
class TestApplet extends Applet implements ActionListener
{
public void start()
{
Button but1 = new Button("Show Frame");
setLayout(new FlowLayout());
but1.addActionListener(this);
add(but1);
}
public void actionPerformed(ActionEvent e)
{
Frame f = new Frame("Hello Testing");
f.setBounds(10,10,200,300);
f.setLayout(new FlowLayout());
Label l = new Label("Hello");
f.add(l);
f.setResizable(false);
f.setVisible(true);
}
}
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!