Yahoo Αναζήτηση Διαδυκτίου

Αποτελέσματα Αναζήτησης

  1. 26 Ιαν 2009 · The way to set JFrame to full-screen, is to set MAXIMIZED_BOTH option which stands for MAXIMIZED_VERT | MAXIMIZED_HORIZ, which respectively set the frame to maximize vertically and horizontally

  2. 10 Μαρ 2011 · For an immediate maximise of your form just add this in the JFrame constructor after the InitiateComponents() call. this.setExtendedState(JFrame.MAXIMIZED_BOTH); The class extends JFrame of course: public class MyForm extends javax.swing.JFrame

  3. 10 Μαρ 2018 · How to minimize a JFrame. To minimize a JFrame just do this: MyJFrame myFrame = new MyJFrame(); // do other stuff here ... // minimize myFrame.setState(Frame.ICONIFIED); If you needed to see how to programmatically maximize and minimize a JFrame in Java, I hope that was helpful.

  4. 6 Ιουλ 2019 · Maximize the frame window: frame.setExtendedState(JFrame.MAXIMIZED_BOTH); Set window location on screen: frame.setLocation(100, 100); Or: frame.setLocation(new java.awt.Point(100, 100)); Set size and location together: We can use the setBounds(x, y, width, height) method to set size and location of the frame in one call:

  5. To create a JFrame that opens maximized in Java, you can set the default close operation, use the Toolkit class to get the screen size, and apply it to your JFrame. Below are the steps to do this along with a complete example code.

  6. 17 Νοε 2023 · JFrame in Java is a class that allows you to crеatе and manage a top-lеvеl window in a Java application. It sеrvеs as thе main window for GUI-basеd Java applications and providеs a platform-indеpеndеnt way to crеatе graphical usеr intеrfacеs. In Java JFrame is a part of javax.swing package.

  7. 6 Αυγ 2022 · So, here's a sample Java Swing method that demonstrates how to make a given JFrame fill the full size of the current screen: private void makeFrameFullSize(JFrame aFrame) {. Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize(); aFrame.setSize(screenSize.width, screenSize.height); }

  1. Γίνεται επίσης αναζήτηση για