Skip to content

Commit

Permalink
Merge pull request #2530 from jlawyerorg/bug/fix-#2487
Browse files Browse the repository at this point in the history
Fix: Set fixed size for txtReviewReason to prevent JPanel expansion
  • Loading branch information
j-dimension authored Aug 8, 2024
2 parents 9b743c1 + f09622b commit fedf92a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -357,6 +357,12 @@
<Component class="javax.swing.JTextField" name="txtReviewReason">
<Properties>
<Property name="toolTipText" type="java.lang.String" value="Zusammenfassung"/>
<Property name="maximumSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor">
<Dimension value="[272, 25]"/>
</Property>
<Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor">
<Dimension value="[272, 25]"/>
</Property>
</Properties>
</Component>
<Container class="javax.swing.JScrollPane" name="jScrollPane5">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -893,6 +893,8 @@ public void actionPerformed(java.awt.event.ActionEvent evt) {
jLabel23.setText("Grund / Beschreibung:");

txtReviewReason.setToolTipText("Zusammenfassung");
txtReviewReason.setMaximumSize(new java.awt.Dimension(272, 25));
txtReviewReason.setPreferredSize(new java.awt.Dimension(272, 25));

taEventDescription.setColumns(20);
taEventDescription.setLineWrap(true);
Expand Down Expand Up @@ -934,7 +936,7 @@ public void actionPerformed(java.awt.event.ActionEvent evt) {
layout.setHorizontalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jScrollPane5)
.addComponent(txtReviewReason)
.addComponent(txtReviewReason, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(txtEventLocation, javax.swing.GroupLayout.Alignment.TRAILING)
.addGroup(layout.createSequentialGroup()
.addComponent(jLabel12)
Expand Down

0 comments on commit fedf92a

Please sign in to comment.