Thanks a lot for all your answer.
I tried with setResizable() but it works with
java 1.3 and above only.
In any case one can achieve the same with Nathan's suggestion. Following is the code for reference.
Thanks a lot for all your support.
regards,
ARun
Code:-
********
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
public class testResize extends JFrame
{
Container cont;
public testResize()
{
cont = getContentPane();
cont.setBackground(new Color(110,129,161));
cont.setFont(new Font("arial",Font.BOLD,11));
cont.setLayout(null);
addWindowListener(new WindowAdapter() {
public void windowClosing(WindowEvent e) {
System.exit(0);
}
});
addComponentListener(new ComponentAdapter() {
public void componentResized(ComponentEvent e) {
setSize(350,350);
}
});
}
public static void main(
String args[])
{
testResize ls=new testResize();
ls.setTitle("Resize Trial!!");
ls.setSize(350,350);
ls.setVisible(true);
}
}
