[hg] main-silver: minor layout changes

  • From: Ondrej Vrabec < >
  • To:
  • Subject: [hg] main-silver: minor layout changes
  • Date: Mon, 07 Oct 2013 15:09:24 -0700

changeset df233fe31687 in main-silver ((none))
details: http://hg.netbeans.org/main-silver/rev/df233fe31687
description:
        minor layout changes
        - summary field too close to its neighbours

diffstat:

 bugzilla/src/org/netbeans/modules/bugzilla/issue/IssuePanel.form |  13 
+++------
 bugzilla/src/org/netbeans/modules/bugzilla/issue/IssuePanel.java |  12 
+++-----
 2 files changed, 9 insertions(+), 16 deletions(-)

diffs (91 lines):

diff --git a/bugzilla/src/org/netbeans/modules/bugzilla/issue/IssuePanel.form 
b/bugzilla/src/org/netbeans/modules/bugzilla/issue/IssuePanel.form
--- a/bugzilla/src/org/netbeans/modules/bugzilla/issue/IssuePanel.form
+++ b/bugzilla/src/org/netbeans/modules/bugzilla/issue/IssuePanel.form
@@ -584,7 +584,7 @@
                       <Component id="customFieldsPanelRight" min="-2" 
max="-2" attributes="0"/>
                       <Component id="customFieldsPanelLeft" min="-2" 
max="-2" attributes="0"/>
                   </Group>
-                  <EmptySpace min="-2" max="-2" attributes="0"/>
+                  <EmptySpace type="separate" max="-2" attributes="0"/>
                   <Group type="103" groupAlignment="2" attributes="0">
                       <Component id="summaryWarning" alignment="2" min="-2" 
pref="16" max="-2" attributes="0"/>
                       <Component id="summaryLabel" alignment="2" min="-2" 
max="-2" attributes="0"/>
@@ -1269,8 +1269,6 @@
                   <Group type="103" groupAlignment="0" attributes="0">
                       <Component id="messagePanel" alignment="0" max="32767" 
attributes="0"/>
                       <Group type="102" attributes="0">
-                          <Group type="103" groupAlignment="0" 
attributes="0">
-                              <Group type="102" attributes="0">
                                   <Component id="attachLogCheckBox" min="-2" 
max="-2" attributes="0"/>
                                   <EmptySpace max="-2" attributes="0"/>
                                   <Component id="viewLogButton" min="-2" 
max="-2" attributes="0"/>
@@ -1280,9 +1278,6 @@
                           <EmptySpace min="0" pref="0" max="-2" 
attributes="0"/>
                       </Group>
                   </Group>
-                  <EmptySpace min="0" pref="0" max="-2" attributes="0"/>
-              </Group>
-          </Group>
         </DimensionLayout>
         <DimensionLayout dim="1">
           <Group type="103" groupAlignment="0" attributes="0">
@@ -1566,9 +1561,9 @@
           <Group type="103" groupAlignment="0" attributes="0">
               <Group type="102" alignment="0" attributes="0">
                   <EmptySpace max="-2" attributes="0"/>
-                  <Group type="103" groupAlignment="0" attributes="0">
-                      <Component id="buttonsPanel" alignment="0" max="-2" 
attributes="0"/>
-                      <Component id="headerField" alignment="0" max="32767" 
attributes="0"/>
+                  <Group type="103" groupAlignment="2" attributes="0">
+                      <Component id="headerField" alignment="2" max="32767" 
attributes="0"/>
+                      <Component id="buttonsPanel" alignment="2" max="-2" 
attributes="0"/>
                   </Group>
                   <EmptySpace min="-2" max="-2" attributes="0"/>
               </Group>
diff --git a/bugzilla/src/org/netbeans/modules/bugzilla/issue/IssuePanel.java 
b/bugzilla/src/org/netbeans/modules/bugzilla/issue/IssuePanel.java
--- a/bugzilla/src/org/netbeans/modules/bugzilla/issue/IssuePanel.java
+++ b/bugzilla/src/org/netbeans/modules/bugzilla/issue/IssuePanel.java
@@ -1692,6 +1692,7 @@
         fieldLayout.setVerticalGroup(fieldVerticalGroup);
         customFieldsPanelLeft.setVisible(anyField);
         customFieldsPanelRight.setVisible(anyField);
+        dummyLabel3.setVisible(anyField);
         setupCustomFieldsListeners();
     }
     
@@ -2413,7 +2414,7 @@
                 
.addGroup(attributesSectionPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                     .addComponent(customFieldsPanelRight, 
javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, 
javax.swing.GroupLayout.PREFERRED_SIZE)
                     .addComponent(customFieldsPanelLeft, 
javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, 
javax.swing.GroupLayout.PREFERRED_SIZE))
-                
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
+                .addGap(18, 18, 18)
                 
.addGroup(attributesSectionPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER)
                     .addComponent(summaryWarning, 
javax.swing.GroupLayout.PREFERRED_SIZE, 16, 
javax.swing.GroupLayout.PREFERRED_SIZE)
                     .addComponent(summaryLabel)
@@ -2519,13 +2520,10 @@
                 
.addGroup(newCommentSectionPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                     .addComponent(messagePanel, 
javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, 
Short.MAX_VALUE)
                     
.addGroup(newCommentSectionPanelLayout.createSequentialGroup()
-                        
.addGroup(newCommentSectionPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
-                            
.addGroup(newCommentSectionPanelLayout.createSequentialGroup()
                                 .addComponent(attachLogCheckBox)
                                 
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                 .addComponent(viewLogButton, 
javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, 
javax.swing.GroupLayout.PREFERRED_SIZE))
                             .addComponent(scrollPane1))
-                        .addGap(0, 0, 0)))
                 .addGap(0, 0, 0))
         );
         newCommentSectionPanelLayout.setVerticalGroup(
@@ -2718,9 +2716,9 @@
             
headerPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
             .addGroup(headerPanelLayout.createSequentialGroup()
                 .addContainerGap()
-                
.addGroup(headerPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
-                    .addComponent(buttonsPanel, 
javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, 
javax.swing.GroupLayout.PREFERRED_SIZE)
-                    .addComponent(headerField))
+                
.addGroup(headerPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER)
+                    .addComponent(headerField)
+                    .addComponent(buttonsPanel, 
javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, 
javax.swing.GroupLayout.PREFERRED_SIZE))
                 .addContainerGap())
         );
 

[hg] main-silver: minor layout changes

Ondrej Vrabec 10/07/2013

Project Features

About this Project

ConnectedDeveloper was started in November 2009, is owned by tpavek, and has 66 members.
By use of this website, you agree to the NetBeans Policies and Terms of Use (revision 20131025.e7cbc9d). © 2013, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo
 
 
Close
loading
Please Confirm
Close