From 42abf9b4535a12329cf5479fd13fe7aae91976c8 Mon Sep 17 00:00:00 2001 From: abazov73 <92822431+abazov73@users.noreply.github.com> Date: Sat, 12 Nov 2022 14:35:50 +0400 Subject: [PATCH] =?UTF-8?q?=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=BB=D0=B5?= =?UTF-8?q?=D0=BD=D0=B8=D0=B5=20=D0=BA=D0=BD=D0=BE=D0=BF=D0=BA=D0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/TestPackage/TestJFrame.form | 19 +++++++++++++++++-- .../src/TestPackage/TestJFrame.java | 15 +++++++++++++-- 2 files changed, 30 insertions(+), 4 deletions(-) diff --git a/TestApplication/src/TestPackage/TestJFrame.form b/TestApplication/src/TestPackage/TestJFrame.form index 769eecd..deb750a 100644 --- a/TestApplication/src/TestPackage/TestJFrame.form +++ b/TestApplication/src/TestPackage/TestJFrame.form @@ -23,13 +23,28 @@ - + + + + + - + + + + + + + + + + + + diff --git a/TestApplication/src/TestPackage/TestJFrame.java b/TestApplication/src/TestPackage/TestJFrame.java index 3f97285..fa4dbb3 100644 --- a/TestApplication/src/TestPackage/TestJFrame.java +++ b/TestApplication/src/TestPackage/TestJFrame.java @@ -26,17 +26,27 @@ public class TestJFrame extends javax.swing.JFrame { // //GEN-BEGIN:initComponents private void initComponents() { + jButton1 = new javax.swing.JButton(); + setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE); + jButton1.setText("first"); + javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane()); getContentPane().setLayout(layout); layout.setHorizontalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) - .addGap(0, 400, Short.MAX_VALUE) + .addGroup(layout.createSequentialGroup() + .addGap(158, 158, 158) + .addComponent(jButton1) + .addContainerGap(170, Short.MAX_VALUE)) ); layout.setVerticalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) - .addGap(0, 300, Short.MAX_VALUE) + .addGroup(layout.createSequentialGroup() + .addGap(126, 126, 126) + .addComponent(jButton1) + .addContainerGap(151, Short.MAX_VALUE)) ); pack(); @@ -78,5 +88,6 @@ public class TestJFrame extends javax.swing.JFrame { } // Variables declaration - do not modify//GEN-BEGIN:variables + private javax.swing.JButton jButton1; // End of variables declaration//GEN-END:variables }