Thanks for your response but still it does not solve the problem as soon as i maximize the window the taskbar gets covered up.
After some more r and d i found out this if i do like this
import javax.swing.*;
import java.awt.*;
public class
Testing {
public Testing()
{
JFrame.setDefaultLookAndFeelDecorated(true);
JFrame f = new JFrame();
f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
f.setExtendedState(JFrame.MAXIMIZED_BOTH);////<--------covers taskbar
Dimension d = Toolkit.getDefaultToolkit().getScreenSize();
f.setSize(d.width, d.height-30);//<---take 30 off the height
f.setVisible(true);
Rectangle r = new Rectangle(0,0,d.width, d.height-30);
f.setMaximizedBounds(r);
}
public static void main(
String[] args){new Testing();}
}
that solved my problem but some how the borders of the frame are looking thiker. I anybody has any solution plz suggest it to me
thanks in advance
Manoj Amrutkar