need help with resolution
i am working on an application that has to be deployed... however, i have been working in the resolution 1280 x 800, while the deployment might take place on a computer with any resolution. it is even possible that the computer on which the deployment is done might not have this resolution. when this application was used on a computer with a different resolution, everything looked a mess.
so my question is: what to do to make an application compatible with any resolution?
[489 byte] By [
m_kadiaa] at [2007-11-27 1:43:51]

public Point getScrrenResolution(){
Point p = new Point();
DisplayMode displayMode = null;
GraphicsEnvironment ge = GraphicsEnvironment.getLocalGraphicsEnvironment();
GraphicsDevice[] gs = ge.getScreenDevices();
for (int j = 0; j < gs.length; j++) {
displayMode=gs[j].getDisplayMode();
}
if (displayMode!=null)
p.setLocation(displayMode.getHeight(),displayMode.getWidth());
return p;
}
well yes that is true. however, in once case, i need to draw on a label, and that needs to have a specific size that cannot be handled by the layout manager... i tried every layout other than gridbag. it didn't give the results that i wanted. gridbag layout is very confusing, so i try to avoid it. m i making a mistake?