From 2483b0dec4798c434c9f5ed4d39dd2c0f8a56293 Mon Sep 17 00:00:00 2001 From: abazov73 <92822431+abazov73@users.noreply.github.com> Date: Sun, 13 Nov 2022 15:32:33 +0400 Subject: [PATCH] Form + foo class --- TestFrame2/src/TestPackage2/FooClass.java | 13 +++++++++++++ TestFrame2/src/TestPackage2/TestJForm2.form | 19 +++++++++++++++++-- TestFrame2/src/TestPackage2/TestJForm2.java | 15 +++++++++++++-- 3 files changed, 43 insertions(+), 4 deletions(-) create mode 100644 TestFrame2/src/TestPackage2/FooClass.java diff --git a/TestFrame2/src/TestPackage2/FooClass.java b/TestFrame2/src/TestPackage2/FooClass.java new file mode 100644 index 0000000..5cfac3f --- /dev/null +++ b/TestFrame2/src/TestPackage2/FooClass.java @@ -0,0 +1,13 @@ +/* + * Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license + * Click nbfs://nbhost/SystemFileSystem/Templates/Classes/Class.java to edit this template + */ +package TestPackage2; + +/** + * + * @author Андрей + */ +public class FooClass { + public int foo; +} diff --git a/TestFrame2/src/TestPackage2/TestJForm2.form b/TestFrame2/src/TestPackage2/TestJForm2.form index 769eecd..0d49a6d 100644 --- a/TestFrame2/src/TestPackage2/TestJForm2.form +++ b/TestFrame2/src/TestPackage2/TestJForm2.form @@ -23,13 +23,28 @@ - + + + + + - + + + + + + + + + + + + diff --git a/TestFrame2/src/TestPackage2/TestJForm2.java b/TestFrame2/src/TestPackage2/TestJForm2.java index 233a4db..030afa9 100644 --- a/TestFrame2/src/TestPackage2/TestJForm2.java +++ b/TestFrame2/src/TestPackage2/TestJForm2.java @@ -26,17 +26,27 @@ public class TestJForm2 extends javax.swing.JFrame { // //GEN-BEGIN:initComponents private void initComponents() { + jButton1 = new javax.swing.JButton(); + setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE); + jButton1.setText("jButton1"); + 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(229, 229, 229) + .addComponent(jButton1) + .addContainerGap(233, Short.MAX_VALUE)) ); layout.setVerticalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) - .addGap(0, 300, Short.MAX_VALUE) + .addGroup(layout.createSequentialGroup() + .addGap(172, 172, 172) + .addComponent(jButton1) + .addContainerGap(189, Short.MAX_VALUE)) ); pack(); @@ -78,5 +88,6 @@ public class TestJForm2 extends javax.swing.JFrame { } // Variables declaration - do not modify//GEN-BEGIN:variables + private javax.swing.JButton jButton1; // End of variables declaration//GEN-END:variables }