Skip to content

Commit a8de965

Browse files
committed
Main Form Size
1 parent d0a5ed1 commit a8de965

2 files changed

Lines changed: 23 additions & 18 deletions

File tree

src/Java_Rice/Main_menu.form

Lines changed: 15 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -650,6 +650,12 @@
650650
<Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor">
651651
<Color blue="ff" green="66" red="33" type="rgb"/>
652652
</Property>
653+
<Property name="minimumSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor">
654+
<Dimension value="null"/>
655+
</Property>
656+
<Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor">
657+
<Dimension value="null"/>
658+
</Property>
653659
</Properties>
654660
<Constraints>
655661
<Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignBorderLayout" value="org.netbeans.modules.form.compat2.layouts.DesignBorderLayout$BorderConstraintsDescription">
@@ -1816,14 +1822,12 @@
18161822
<Layout>
18171823
<DimensionLayout dim="0">
18181824
<Group type="103" groupAlignment="0" attributes="0">
1819-
<Group type="102" alignment="0" attributes="0">
1825+
<Group type="102" attributes="0">
18201826
<EmptySpace min="-2" pref="12" max="-2" attributes="0"/>
1821-
<Group type="103" groupAlignment="0" attributes="0">
1822-
<Component id="jLabel23" min="-2" pref="907" max="-2" attributes="0"/>
1823-
<Component id="jPanel4" min="-2" pref="899" max="-2" attributes="0"/>
1824-
</Group>
1825-
<EmptySpace max="32767" attributes="0"/>
1827+
<Component id="jPanel4" min="-2" pref="899" max="-2" attributes="0"/>
1828+
<EmptySpace pref="14" max="32767" attributes="0"/>
18261829
</Group>
1830+
<Component id="jLabel23" alignment="0" max="32767" attributes="0"/>
18271831
</Group>
18281832
</DimensionLayout>
18291833
<DimensionLayout dim="1">
@@ -2107,6 +2111,9 @@
21072111
<Property name="model" type="javax.swing.SpinnerModel" editor="org.netbeans.modules.form.editors2.SpinnerModelEditor">
21082112
<SpinnerModel initial="0" maximum="100" minimum="0" numberType="java.lang.Integer" stepSize="1" type="number"/>
21092113
</Property>
2114+
<Property name="border" type="javax.swing.border.Border" editor="org.netbeans.modules.form.editors2.BorderEditor">
2115+
<Border info="null"/>
2116+
</Property>
21102117
<Property name="cursor" type="java.awt.Cursor" editor="org.netbeans.modules.form.editors2.CursorEditor">
21112118
<Color id="Hand Cursor"/>
21122119
</Property>
@@ -7451,10 +7458,7 @@
74517458
<Color blue="18" green="21" red="2b" type="rgb"/>
74527459
</Property>
74537460
<Property name="minimumSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor">
7454-
<Dimension value="[1430, 893]"/>
7455-
</Property>
7456-
<Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor">
7457-
<Dimension value="[1430, 893]"/>
7461+
<Dimension value="null"/>
74587462
</Property>
74597463
</Properties>
74607464
<Constraints>
@@ -7471,7 +7475,7 @@
74717475
<Component id="jLabel4" min="-2" max="-2" attributes="0"/>
74727476
<Component id="jLabel16" min="-2" max="-2" attributes="0"/>
74737477
</Group>
7474-
<EmptySpace pref="48" max="32767" attributes="0"/>
7478+
<EmptySpace min="0" pref="0" max="-2" attributes="0"/>
74757479
</Group>
74767480
</Group>
74777481
</DimensionLayout>

src/Java_Rice/Main_menu.java

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1114,6 +1114,8 @@ public void mouseExited(java.awt.event.MouseEvent evt) {
11141114
jPanel1.add(panel_choose, java.awt.BorderLayout.LINE_START);
11151115

11161116
panel_main.setBackground(new java.awt.Color(51, 102, 255));
1117+
panel_main.setMinimumSize(null);
1118+
panel_main.setPreferredSize(null);
11171119
panel_main.setLayout(new java.awt.CardLayout());
11181120

11191121
home.setBackground(new java.awt.Color(54, 65, 77));
@@ -1686,6 +1688,7 @@ public void mouseClicked(java.awt.event.MouseEvent evt) {
16861688

16871689
jSpinner1.setFont(new java.awt.Font("Century Gothic", 1, 24)); // NOI18N
16881690
jSpinner1.setModel(new javax.swing.SpinnerNumberModel(0, 0, 100, 1));
1691+
jSpinner1.setBorder(null);
16891692
jSpinner1.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));
16901693
jSpinner1.setPreferredSize(new java.awt.Dimension(100, 30));
16911694
jSpinner1.addChangeListener(new javax.swing.event.ChangeListener() {
@@ -2026,10 +2029,9 @@ public void mouseClicked(java.awt.event.MouseEvent evt) {
20262029
jPanel12Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
20272030
.addGroup(jPanel12Layout.createSequentialGroup()
20282031
.addGap(12, 12, 12)
2029-
.addGroup(jPanel12Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
2030-
.addComponent(jLabel23, javax.swing.GroupLayout.PREFERRED_SIZE, 907, javax.swing.GroupLayout.PREFERRED_SIZE)
2031-
.addComponent(jPanel4, javax.swing.GroupLayout.PREFERRED_SIZE, 899, javax.swing.GroupLayout.PREFERRED_SIZE))
2032-
.addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
2032+
.addComponent(jPanel4, javax.swing.GroupLayout.PREFERRED_SIZE, 899, javax.swing.GroupLayout.PREFERRED_SIZE)
2033+
.addContainerGap(14, Short.MAX_VALUE))
2034+
.addComponent(jLabel23, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
20332035
);
20342036
jPanel12Layout.setVerticalGroup(
20352037
jPanel12Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
@@ -4445,8 +4447,7 @@ public void mouseExited(java.awt.event.MouseEvent evt) {
44454447
panel_main.add(Invoice, "card3");
44464448

44474449
About_Us.setBackground(new java.awt.Color(43, 33, 24));
4448-
About_Us.setMinimumSize(new java.awt.Dimension(1430, 893));
4449-
About_Us.setPreferredSize(new java.awt.Dimension(1430, 893));
4450+
About_Us.setMinimumSize(null);
44504451

44514452
jLabel4.setIcon(new javax.swing.ImageIcon(getClass().getResource("/UI/about_head.png"))); // NOI18N
44524453

@@ -4461,7 +4462,7 @@ public void mouseExited(java.awt.event.MouseEvent evt) {
44614462
.addGroup(About_UsLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
44624463
.addComponent(jLabel4)
44634464
.addComponent(jLabel16))
4464-
.addContainerGap(48, Short.MAX_VALUE))
4465+
.addGap(0, 0, 0))
44654466
);
44664467
About_UsLayout.setVerticalGroup(
44674468
About_UsLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)

0 commit comments

Comments
 (0)