Author: bobtarling
Date: 2010-09-26 10:13:14-0700
New Revision: 18783
Modified:
trunk/src/argouml-core-umlpropertypanels/src/org/argouml/core/propertypanels/ui/RadioButtonPanel.java
trunk/src/argouml-core-umlpropertypanels/src/org/argouml/core/propertypanels/ui/SwingUIFactory.java
Log:
Compact radio group and checkbox group panels for smaller screens
Modified: trunk/src/argouml-core-umlpropertypanels/src/org/argouml/core/propertypanels/ui/RadioButtonPanel.java
Url: http://argouml.tigris.org/source/browse/argouml/trunk/src/argouml-core-umlpropertypanels/src/org/argouml/core/propertypanels/ui/RadioButtonPanel.java?view=diff&pathrev=18783&r1=18782&r2=18783
==============================================================================
--- trunk/src/argouml-core-umlpropertypanels/src/org/argouml/core/propertypanels/ui/RadioButtonPanel.java (original)
+++ trunk/src/argouml-core-umlpropertypanels/src/org/argouml/core/propertypanels/ui/RadioButtonPanel.java 2010-09-26 10:13:14-0700
@@ -24,6 +24,7 @@
import javax.swing.AbstractButton;
import javax.swing.Action;
+import javax.swing.BoxLayout;
import javax.swing.ButtonGroup;
import javax.swing.JPanel;
import javax.swing.JRadioButton;
@@ -91,9 +92,9 @@
getterSetterManager.getOptions(umlElement, propertyName, null);
setLayout(horizontal
- ? new GridLayout()
+ ? new BoxLayout(this, BoxLayout.X_AXIS)
: new FlexiGridLayout(0, options.size()));
-
+
this.propertyName = propertyName;
this.getterSetterManager = getterSetterManager;
this.umlElement = umlElement;
Modified: trunk/src/argouml-core-umlpropertypanels/src/org/argouml/core/propertypanels/ui/SwingUIFactory.java
Url: http://argouml.tigris.org/source/browse/argouml/trunk/src/argouml-core-umlpropertypanels/src/org/argouml/core/propertypanels/ui/SwingUIFactory.java?view=diff&pathrev=18783&r1=18782&r2=18783
==============================================================================
--- trunk/src/argouml-core-umlpropertypanels/src/org/argouml/core/propertypanels/ui/SwingUIFactory.java (original)
+++ trunk/src/argouml-core-umlpropertypanels/src/org/argouml/core/propertypanels/ui/SwingUIFactory.java 2010-09-26 10:13:14-0700
@@ -39,6 +39,7 @@
package org.argouml.core.propertypanels.ui;
+import javax.swing.BoxLayout;
import javax.swing.JComboBox;
import javax.swing.JComponent;
import javax.swing.JLabel;
@@ -313,7 +314,8 @@
final JPanel panel,
final Object target,
final ControlData prop) {
- JPanel p = new JPanel(new GridLayout2());
+ JPanel p = new JPanel();
+ p.setLayout(new BoxLayout(p, BoxLayout.X_AXIS));
TitledBorder border = new TitledBorder(prop.getPropertyName());
p.setBorder(border);
------------------------------------------------------
http://argouml.tigris.org/ds/viewMessage.do?dsForumId=5905&dsMessageId=2664796
To unsubscribe from this discussion, e-mail: [[email protected]].
lmpx.com only provides a reader for public news (NNTP) servers. It is not
affiliated with the servers or forums shown here and is not responsible for
the content of articles, which is written by their respective authors.