Latest Tutorials| Questions and Answers|Ask Questions?|Site Map



Home Answers Viewqa Swing-AWT Setting Window State Maximized

Have Programming Question? Ask it here!
 
 
 


Namrata Sahu
Setting Window State Maximized
2 Answer(s)      5 years and 3 months ago
Posted in : Swing AWT



Advertisement
View Answers

May 24, 2009 at 11:53 PM


Hi friend you can set frame size like this one and it will look like you want:

frame_Object.setSize(500,500);
frame_Object.setVisible(true);
frame_Object.setResizable(true);

Thanks


May 26, 2009 at 10:26 AM


Hi Friend,

You can use the following method to maximized the JFrame:

Toolkit toolkit = Toolkit.getDefaultToolkit();
Dimension dimension = toolkit.getScreenSize();
frame.setSize(dimension);

Thanks


Related Tutorials/Questions & Answers:
Setting Window State Maximized - Swing AWT
Setting Window State Maximized  Hello Everyone! I want to set the Window or JFrame Maximized when I open the Frame. It is in normal form when I open it. Is there any method of setting it maximized? How can I do
Window State - Swing AWT
Window State  Thanks for you reply. I have already tried the setSize() method of AWT Window and also with JFrame. But I want to Maximize the Window when it is opened by the user and instead of the Maximize
Advertisements
Java window state event
Java window state event  Two java windows, one on top of another... Window at the back is deactivated when the other is on the top. Can iconify when there is only one window using win+d key. In windows, press win+d, window
Setting Bounds for a maximized frame
Setting Bounds for a maximized frame   ... the bounds for a maximized frame. This means to fix the size for the frame after maximizing it. This program sets the bounds for the maximized frame using
Window
Window  how to create an window of a person like regestration form
State in flex
State in flex  Hi.... just tell me about What is state? what.... Thanks in advance  Ans: State: The State class defines a view state... view states; a base view state with minimal information, and a rich view state
setting keys
setting keys  Hi Sir\Mam,At present we are doing Payroll Project .I would like to set some special keys for my forms and i want the coding to do the same .Pls Provide me source code for setting keys as soon as possible
window in center
window in center  if i run the programme thw window is in lie in top left corner i want a window open in center
Window Blind
Window Blind  Custom built . Over 30 years of shutter experience. Free in-home consultations
Chat window
the chat window pops up.. It is a div in the chat homepage.. There are few other... in the same application. I want to know how to retain the chat window (along..., the chat window should be constant across all pages in the application for current
window closing
window closing  hello, In my project i have login,logout and some jsp pages are there and each jsp page is using javascript and onunload script. and i need one solution that,when ever user trying to close browser window
Multi window
contains all the details. when i submit this page, a new window opens and asks to enter password. if password entered is correct, the flow goes to previous window
Window Script
Window Script  i want to write windows script can you help me in writing those i want to write script so that it follows below steps Step 1) downloading file from FTP 2) Unzip it 3) Edit it 4) zip it 5) upload again to FTP
Help to maintain state of checkbox
Help to maintain state of checkbox  hi, all I want to maintain the state of checkboxes across pages. What happens is when i check one checkbox and then go to say 2nd page then check one checkbox there and when i return
Button hover state
Button hover state  hi........ How do I manually trigger a buttons hover state in flex? please tell me about it.. Thanks   Ans: button.setStyle('skin', button.getStyle('upSkin')); I think it will useful for you
maintain previoous state on a Jsp
maintain previoous state on a Jsp  i am work on an app where combo box is define in each row of table in a jsp. when i select the specfic color from... the detail of the same id, previous state of colors can be show in a jsp which i have
setting web page size
setting web page size  How to set the webpage size in Java
active window means
active window means  active window means what?   The active window is the term used to describe the window that is currently being used
Passing values from child window to parent window.
Passing values from child window to parent window.  Hai, I'm having a requirement ,in that when i open a (pop-up)child window from a parent window,the child window will contain multiple checkboxes and when i select multiple
JFrame - Window
Java: JFrame - Window Description The javax.swing.JFrame class is used to create a "window". This window has a few characteristics of its own (title... in the class's constructor, and create an instance of the window from the main program
Setting the close button operation for the frame in Java
Setting the close button operation for the frame in Java... will learn how to implement the close button of any frame or window in java application. By default the close button of the frame is not in working state. If you
Passing values from child window to parent window.
Passing values from child window to parent window.  http://www.roseindia.net/java/pass-value-example/pass-value-child-to-parent.shtml I have gone thru the link but my requirement is checkboxes.can u please explain
pop up window in java
pop up window in java  How to open a pop up window in Java
making help window
making help window   how to make help window in gui with java
Setting file extension
Setting file extension  Hi, I have used FileChooser to save a file. When I was trying to save it, the extension of the file is showing 'File'. How can I save that file to .xls ? Thanks
path setting - JSP-Servlet
setting this path i need to give the full path from drive name, instead of this if i... not uploaded your photo Close Window
path setting - JSP-Servlet
. While setting this path i need to give the full path from drive name, instead... Window
Setting Cookie
Setting Cookie  setcookie function is used for setting up a cookie. In the following example, if you use $_COOKIE command, you will view one cookie value, and if you see print_r ($_COOKIE), you will view all cookie value. We have
setting RGB for a circle
setting RGB for a circle  how can i change the color of the circle(not through filling it) and i want to use RGB (not regular colors such as black or red..) i should include RGB numbers (for example 240, 150, 19) but i am
Setting environment variables
Setting environment variables  Hi, I have a java web application running on jboss AS. 1)How do I set the environment variable in jboss? 2)How do I get the environment variable from jboss
Setting File Attributes
Setting File Attributes  I would be glad if anyone could help me set file attributes in java I would like to know how to set the hidden file attribute or the read only file attribute. Thank you
Setting File Attributes
Setting File Attributes  I would be glad if anyone could help me set file attributes in java I would like to know how to set the hidden file attribute or the read only file attribute. Thank you
invalid cursor state - JSP-Servlet
] Invalid cursor state   Hi friend, Please give Database
problem in setting path - Ant
problem in setting path  hi friends i am getting a problem in setting but i followed the procedure same as like in http://www.roseindia.net... Do some changes setting the path : 1)ANT_HOME=D:\installations\apache
Setting File Attributes
Setting File Attributes  I would be glad if anyone could help me set file attributes in java I would like to know how to set the hidden file attribute or the read only file attribute. Thank you   Hi Friend, If you want
Setting of java1.4.2 path
Setting of java1.4.2 path  Hello I have uploaded java1.4.2 into my laptop and i have done path settings for System variabales as Path (C:\j2sdk1.4.2\bin) and classpath(C:\j2sdk1.4.2\lib) .But when i write simple
invalid cursor state - JSP-Servlet
invalid cursor state  what is Invalid cursor state in java and how to solve this my code is below   hai frnd. u look at your query and ur while loop code... dont u feel a typing mismatch? u r selecting
Prototype Window Class
Prototype Window Class       This javascript class allows you to add window in a HTML page... if you include effects.js file , but it's not mandatory. Prototype Window
Pop Up window - WebSevices
Pop Up window  How refresh pop up window,Tell me correct code for this problem.  Hi friend, I am sending a link. This link will help you. Visit for more information. http://www.roseindia.net/jsp/popup-window
Setting File Attributes
Setting File Attributes  I would be glad if anyone could help me set file attributes in java I would like to know how to set the hidden file attribute or the read only file attribute. Thank you   Let me know
Example - Tiny Window
Java NotesExample - Tiny Window The example discussed here is used to create tiny window in swing. The TinyWindow.java - Creates a very small window...; and the window can be resized.   You can download the code given here and try on your
Setting the default Java character encoding?
Setting the default Java character encoding?  Setting the default Java character encoding
JSP Window. Open
JSP Window. Open          JSP Window. Open  is used to open a new window in JSP. The JavaScript function  window.open( ) open a new browser
Sliding window protocol
Sliding window protocol  Hello Everyone. Will anybody send me the code to make sliding window protocol animation using java swings. I have to do project with all types sliding protocols such as selectiverepeat,gobackN..etc. I
swings window header
swings window header  i have a string1 it contains 3 parts,for example "123456 service hello" and string2 contains "change request " like... for this program . i want to apply this to window header part. Thanks
Closing the browser window
Closing the browser window  <BODY> <form> <input type=button value="Close Window" onClick="javascript:window.close();"> <...; thought that this will close the window of the browser but not working
window addsubview remove in iPhone
window addsubview remove in iPhone  Hi, How to add a splash screen or some other view and then remove it and add new view. I want program... code: [window addSubview:tabBarController.view]; To remove
child window - Development process
child window  I want to create new small window on my website using java script. But i couldn't hide the status bar in small window. How to do this one ? Kindly help me.   Hi Friend, Please visit the following
what is a thread initial state? how to implement it?
what is a thread initial state? how to implement it?  what is a thread initial state? how to implement
reload parent window - WebSevices
reload parent window  Hi, Here I have a code for close child window and reload parent window. window.opener.location.href="http://www.mysite.net/example.php"; self.close(); Its working properly when User enters
Advertisements
 

 

 

DMCA.com