Results 1 to 6 of 6
- 01-12-2012, 06:06 AM #1
Member
- Join Date
- Jan 2012
- Posts
- 8
- Rep Power
- 0
How to make java application Independant of screen resoltion..?
Hi ,
I developed my java applcation on pc having resultion 1366* 768.Application work fine with this resoltion but when i run same application on PC having resoltion 800*600 or different resoltion ,I got problem that application frame is not fit into display,only part of that application is display on monitor..is there any way so that application frame can fit into monitor display and work fine(means it display full screen )independant of the resolution.Last edited by navanathdivate; 01-12-2012 at 06:08 AM.
-
Re: How to make java application Independant of screen resoltion..?
The solution is to use layout managers "wisely". That is to let the layout managers size the components for you in a way that allows the components to be shown in their best most natural sizes. If you are not very familiar with the layout managers available, you'll want to study the layout manager tutorial in depth.
- 01-12-2012, 06:19 AM #3
Member
- Join Date
- Jan 2012
- Posts
- 8
- Rep Power
- 0
Re: How to make java application Independant of screen resoltion..?
can we make one class which detect the screen resoltion of the screen and accrding to that we can pass that dimensions to the Jframe and other compenents..
rather than layout manager is any other way to do that....
- 01-12-2012, 10:44 AM #4
Moderator
- Join Date
- Apr 2009
- Posts
- 10,438
- Rep Power
- 16
Re: How to make java application Independant of screen resoltion..?
This is what LayoutManagers were designed to do.
I mean, if you really want to reinvent the wheel...
- 01-12-2012, 01:34 PM #5
Member
- Join Date
- Jan 2012
- Posts
- 2
- Rep Power
- 0
Re: How to make java application Independant of screen resoltion..?
u can use ToolKit class an awt package. u can use the following code.
Toolkit tk=Toolkit.getDefaultToolkit();
int x,y;
x=((int) tk.getScreenSize().getWidth());
y=((int) tk.getScreenSize().getHeight());
frame.setSize(x,y);
- 01-12-2012, 03:23 PM #6
Re: How to make java application Independant of screen resoltion..?
A bad 'solution' to a misinterpretation of the issue at hand. Ever come across setExtendedState(MAXIMIZED_BOTH) ? But that's not the issue here.
Oh, and when posting on a technical forum, please Write in clear, grammatical, correctly-spelled language.
dbWhy do they call it rush hour when nothing moves? - Robin Williams
Similar Threads
-
how to make screen locker in java??
By javasabin in forum AWT / SwingReplies: 2Last Post: 12-27-2010, 08:50 PM -
How can i make my java application installable
By buston01 in forum Advanced JavaReplies: 2Last Post: 12-10-2010, 01:32 PM -
How to localize the position on screen of a running java application?
By lolaika in forum Advanced JavaReplies: 11Last Post: 06-01-2010, 10:34 PM -
how can i make this dialog appear in the center of my screen
By bigj in forum New To JavaReplies: 1Last Post: 01-25-2010, 01:21 PM -
Device Independant
By shajuantony in forum AWT / SwingReplies: 2Last Post: 05-25-2009, 10:15 PM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks