|
|
|
@ -53,7 +53,7 @@ import org.openide.windows.TopComponent; |
|
|
|
|
//iconBase="SET/PATH/TO/ICON/HERE",
|
|
|
|
|
persistenceType = TopComponent.PERSISTENCE_ALWAYS |
|
|
|
|
) |
|
|
|
|
@TopComponent.Registration(mode = "output", openAtStartup = false) |
|
|
|
|
@TopComponent.Registration(mode = "commonpalette", openAtStartup = false) |
|
|
|
|
@ActionID(category = "Window", id = "com.jme3.gde.core.sceneexplorer.nodes.actions.impl.NewGeometrySettingsTopComponent") |
|
|
|
|
@ActionReference(path = "Menu/Window" /*, position = 333 */) |
|
|
|
|
@TopComponent.OpenActionRegistration( |
|
|
|
@ -62,7 +62,7 @@ import org.openide.windows.TopComponent; |
|
|
|
|
) |
|
|
|
|
@Messages({ |
|
|
|
|
"CTL_NewGeometrySettingsAction=NewGeometrySettings", |
|
|
|
|
"CTL_NewGeometrySettingsTopComponent=NewGeometrySettings Window", |
|
|
|
|
"CTL_NewGeometrySettingsTopComponent=NewGeometrySettings", |
|
|
|
|
"HINT_NewGeometrySettingsTopComponent=This is a NewGeometrySettings window" |
|
|
|
|
}) |
|
|
|
|
public final class NewGeometrySettingsTopComponent extends TopComponent { |
|
|
|
@ -176,39 +176,41 @@ public final class NewGeometrySettingsTopComponent extends TopComponent { |
|
|
|
|
.addContainerGap() |
|
|
|
|
.addGroup(boxPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) |
|
|
|
|
.addGroup(boxPanelLayout.createSequentialGroup() |
|
|
|
|
.addComponent(boxXLabel) |
|
|
|
|
.addComponent(boxZLabel) |
|
|
|
|
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) |
|
|
|
|
.addComponent(boxXSpinner, javax.swing.GroupLayout.PREFERRED_SIZE, 62, javax.swing.GroupLayout.PREFERRED_SIZE) |
|
|
|
|
.addGap(26, 26, 26) |
|
|
|
|
.addComponent(boxZSpinner)) |
|
|
|
|
.addGroup(boxPanelLayout.createSequentialGroup() |
|
|
|
|
.addComponent(boxYLabel) |
|
|
|
|
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) |
|
|
|
|
.addComponent(boxYSpinner, javax.swing.GroupLayout.PREFERRED_SIZE, 62, javax.swing.GroupLayout.PREFERRED_SIZE) |
|
|
|
|
.addGap(28, 28, 28) |
|
|
|
|
.addComponent(boxZLabel) |
|
|
|
|
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) |
|
|
|
|
.addComponent(boxZSpinner, javax.swing.GroupLayout.PREFERRED_SIZE, 62, javax.swing.GroupLayout.PREFERRED_SIZE)) |
|
|
|
|
.addComponent(boxYSpinner)) |
|
|
|
|
.addGroup(boxPanelLayout.createSequentialGroup() |
|
|
|
|
.addComponent(boxNameTextField, javax.swing.GroupLayout.DEFAULT_SIZE, 426, Short.MAX_VALUE) |
|
|
|
|
.addComponent(boxXLabel) |
|
|
|
|
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) |
|
|
|
|
.addComponent(boxModeComboBox, 0, 133, Short.MAX_VALUE))) |
|
|
|
|
.addComponent(boxXSpinner)) |
|
|
|
|
.addComponent(boxModeComboBox, 0, 224, Short.MAX_VALUE) |
|
|
|
|
.addComponent(boxNameTextField, javax.swing.GroupLayout.Alignment.TRAILING)) |
|
|
|
|
.addContainerGap()) |
|
|
|
|
); |
|
|
|
|
boxPanelLayout.setVerticalGroup( |
|
|
|
|
boxPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) |
|
|
|
|
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, boxPanelLayout.createSequentialGroup() |
|
|
|
|
.addContainerGap() |
|
|
|
|
.addGroup(boxPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER) |
|
|
|
|
.addComponent(boxNameTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) |
|
|
|
|
.addComponent(boxModeComboBox, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) |
|
|
|
|
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) |
|
|
|
|
.addComponent(boxModeComboBox, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) |
|
|
|
|
.addGap(5, 5, 5) |
|
|
|
|
.addGroup(boxPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) |
|
|
|
|
.addComponent(boxXSpinner, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) |
|
|
|
|
.addComponent(boxXLabel) |
|
|
|
|
.addComponent(boxXSpinner, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) |
|
|
|
|
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) |
|
|
|
|
.addGroup(boxPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) |
|
|
|
|
.addComponent(boxYLabel) |
|
|
|
|
.addComponent(boxYSpinner, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) |
|
|
|
|
.addComponent(boxZSpinner, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) |
|
|
|
|
.addComponent(boxZLabel)) |
|
|
|
|
.addContainerGap(197, Short.MAX_VALUE)) |
|
|
|
|
.addComponent(boxYSpinner, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) |
|
|
|
|
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) |
|
|
|
|
.addGroup(boxPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) |
|
|
|
|
.addComponent(boxZLabel) |
|
|
|
|
.addComponent(boxZSpinner, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) |
|
|
|
|
.addContainerGap(233, Short.MAX_VALUE)) |
|
|
|
|
); |
|
|
|
|
|
|
|
|
|
jTabbedPane1.addTab(org.openide.util.NbBundle.getMessage(NewGeometrySettingsTopComponent.class, "NewGeometrySettingsTopComponent.boxPanel.TabConstraints.tabTitle"), boxPanel); // NOI18N
|
|
|
|
@ -262,63 +264,55 @@ public final class NewGeometrySettingsTopComponent extends TopComponent { |
|
|
|
|
.addGroup(spherePanelLayout.createSequentialGroup() |
|
|
|
|
.addContainerGap() |
|
|
|
|
.addGroup(spherePanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) |
|
|
|
|
.addGroup(spherePanelLayout.createSequentialGroup() |
|
|
|
|
.addComponent(sphereNameTextField) |
|
|
|
|
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) |
|
|
|
|
.addComponent(sphereModeComboBox, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) |
|
|
|
|
.addGroup(spherePanelLayout.createSequentialGroup() |
|
|
|
|
.addGroup(spherePanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) |
|
|
|
|
.addComponent(sphereZSamplesLabel) |
|
|
|
|
.addComponent(sphereRadiusLabel) |
|
|
|
|
.addComponent(sphereModeComboBox, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) |
|
|
|
|
.addGroup(spherePanelLayout.createSequentialGroup() |
|
|
|
|
.addGroup(spherePanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) |
|
|
|
|
.addComponent(sphereRadialSamplesLabel) |
|
|
|
|
.addComponent(sphereRadiusLabel)) |
|
|
|
|
.addComponent(sphereZSamplesLabel) |
|
|
|
|
.addComponent(sphereUseEvenSlicesLabel) |
|
|
|
|
.addComponent(sphereInteriorLabel)) |
|
|
|
|
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) |
|
|
|
|
.addGroup(spherePanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) |
|
|
|
|
.addComponent(sphereRadiusSpinner, javax.swing.GroupLayout.PREFERRED_SIZE, 62, javax.swing.GroupLayout.PREFERRED_SIZE) |
|
|
|
|
.addGroup(spherePanelLayout.createSequentialGroup() |
|
|
|
|
.addGroup(spherePanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false) |
|
|
|
|
.addComponent(sphereZSamplesSpinner, javax.swing.GroupLayout.DEFAULT_SIZE, 111, Short.MAX_VALUE) |
|
|
|
|
.addComponent(sphereRadialSamplesSpinner) |
|
|
|
|
.addComponent(sphereRadiusSpinner) |
|
|
|
|
.addGroup(spherePanelLayout.createSequentialGroup() |
|
|
|
|
.addComponent(sphereRadialSamplesSpinner, javax.swing.GroupLayout.PREFERRED_SIZE, 62, javax.swing.GroupLayout.PREFERRED_SIZE) |
|
|
|
|
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) |
|
|
|
|
.addComponent(sphereUseEvenSlicesLabel)) |
|
|
|
|
.addGroup(javax.swing.GroupLayout.Alignment.LEADING, spherePanelLayout.createSequentialGroup() |
|
|
|
|
.addComponent(sphereZSamplesSpinner, javax.swing.GroupLayout.PREFERRED_SIZE, 62, javax.swing.GroupLayout.PREFERRED_SIZE) |
|
|
|
|
.addGap(144, 144, 144) |
|
|
|
|
.addComponent(sphereInteriorLabel))) |
|
|
|
|
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) |
|
|
|
|
.addGroup(spherePanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) |
|
|
|
|
.addComponent(sphereInteriorCheckBox) |
|
|
|
|
.addComponent(sphereUseEvenSlicesCheckBox)))))) |
|
|
|
|
.addGap(0, 164, Short.MAX_VALUE))) |
|
|
|
|
.addComponent(sphereUseEvenSlicesCheckBox)) |
|
|
|
|
.addGap(0, 0, Short.MAX_VALUE))))) |
|
|
|
|
.addContainerGap()) |
|
|
|
|
); |
|
|
|
|
spherePanelLayout.setVerticalGroup( |
|
|
|
|
spherePanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) |
|
|
|
|
.addGroup(spherePanelLayout.createSequentialGroup() |
|
|
|
|
.addGap(18, 18, 18) |
|
|
|
|
.addGroup(spherePanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING) |
|
|
|
|
.addGroup(spherePanelLayout.createSequentialGroup() |
|
|
|
|
.addGroup(spherePanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) |
|
|
|
|
.addContainerGap() |
|
|
|
|
.addComponent(sphereNameTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) |
|
|
|
|
.addComponent(sphereModeComboBox, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) |
|
|
|
|
.addGap(4, 4, 4) |
|
|
|
|
.addGap(3, 3, 3) |
|
|
|
|
.addComponent(sphereModeComboBox, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) |
|
|
|
|
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) |
|
|
|
|
.addGroup(spherePanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) |
|
|
|
|
.addComponent(sphereRadialSamplesLabel) |
|
|
|
|
.addComponent(sphereRadialSamplesSpinner, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) |
|
|
|
|
.addComponent(sphereUseEvenSlicesLabel))) |
|
|
|
|
.addComponent(sphereUseEvenSlicesCheckBox)) |
|
|
|
|
.addComponent(sphereRadialSamplesSpinner, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) |
|
|
|
|
.addGap(5, 5, 5) |
|
|
|
|
.addGroup(spherePanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) |
|
|
|
|
.addComponent(sphereZSamplesLabel) |
|
|
|
|
.addComponent(sphereZSamplesSpinner, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) |
|
|
|
|
.addGap(8, 8, 8) |
|
|
|
|
.addGroup(spherePanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) |
|
|
|
|
.addComponent(sphereRadiusLabel) |
|
|
|
|
.addComponent(sphereRadiusSpinner, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) |
|
|
|
|
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) |
|
|
|
|
.addGroup(spherePanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) |
|
|
|
|
.addComponent(sphereZSamplesLabel, javax.swing.GroupLayout.Alignment.TRAILING) |
|
|
|
|
.addComponent(sphereZSamplesSpinner, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) |
|
|
|
|
.addComponent(sphereInteriorLabel, javax.swing.GroupLayout.Alignment.TRAILING) |
|
|
|
|
.addComponent(sphereInteriorCheckBox, javax.swing.GroupLayout.Alignment.TRAILING)) |
|
|
|
|
.addComponent(sphereUseEvenSlicesLabel) |
|
|
|
|
.addComponent(sphereUseEvenSlicesCheckBox)) |
|
|
|
|
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) |
|
|
|
|
.addGroup(spherePanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) |
|
|
|
|
.addComponent(sphereRadiusSpinner, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) |
|
|
|
|
.addComponent(sphereRadiusLabel)) |
|
|
|
|
.addContainerGap(147, Short.MAX_VALUE)) |
|
|
|
|
.addGroup(spherePanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) |
|
|
|
|
.addComponent(sphereInteriorLabel) |
|
|
|
|
.addComponent(sphereInteriorCheckBox)) |
|
|
|
|
.addContainerGap(184, Short.MAX_VALUE)) |
|
|
|
|
); |
|
|
|
|
|
|
|
|
|
jTabbedPane1.addTab(org.openide.util.NbBundle.getMessage(NewGeometrySettingsTopComponent.class, "NewGeometrySettingsTopComponent.spherePanel.TabConstraints.tabTitle"), spherePanel); // NOI18N
|
|
|
|
@ -366,48 +360,46 @@ public final class NewGeometrySettingsTopComponent extends TopComponent { |
|
|
|
|
.addGroup(quadPanelLayout.createSequentialGroup() |
|
|
|
|
.addContainerGap() |
|
|
|
|
.addGroup(quadPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) |
|
|
|
|
.addGroup(quadPanelLayout.createSequentialGroup() |
|
|
|
|
.addComponent(quadModeComboBox, javax.swing.GroupLayout.Alignment.TRAILING, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) |
|
|
|
|
.addComponent(quadNameTextField) |
|
|
|
|
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) |
|
|
|
|
.addComponent(quadModeComboBox, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) |
|
|
|
|
.addComponent(jComboBox2, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) |
|
|
|
|
.addGroup(quadPanelLayout.createSequentialGroup() |
|
|
|
|
.addGroup(quadPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) |
|
|
|
|
.addComponent(quadFlipCoordLabel) |
|
|
|
|
.addGroup(quadPanelLayout.createSequentialGroup() |
|
|
|
|
.addComponent(jComboBox2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) |
|
|
|
|
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) |
|
|
|
|
.addComponent(quadWidthLabel))) |
|
|
|
|
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) |
|
|
|
|
.addGroup(quadPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) |
|
|
|
|
.addComponent(quadFlipCoordCheckBox, javax.swing.GroupLayout.PREFERRED_SIZE, 101, javax.swing.GroupLayout.PREFERRED_SIZE) |
|
|
|
|
.addGap(0, 39, Short.MAX_VALUE)) |
|
|
|
|
.addGroup(quadPanelLayout.createSequentialGroup() |
|
|
|
|
.addComponent(quadWidthSpinner, javax.swing.GroupLayout.PREFERRED_SIZE, 101, javax.swing.GroupLayout.PREFERRED_SIZE) |
|
|
|
|
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) |
|
|
|
|
.addComponent(quadHeightLabel) |
|
|
|
|
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) |
|
|
|
|
.addComponent(quadHeightSpinner, javax.swing.GroupLayout.PREFERRED_SIZE, 101, javax.swing.GroupLayout.PREFERRED_SIZE))) |
|
|
|
|
.addGap(0, 176, Short.MAX_VALUE))) |
|
|
|
|
.addGroup(quadPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) |
|
|
|
|
.addComponent(quadWidthLabel) |
|
|
|
|
.addComponent(quadHeightLabel)) |
|
|
|
|
.addGap(38, 38, 38) |
|
|
|
|
.addGroup(quadPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) |
|
|
|
|
.addComponent(quadHeightSpinner) |
|
|
|
|
.addComponent(quadWidthSpinner)))) |
|
|
|
|
.addContainerGap()) |
|
|
|
|
); |
|
|
|
|
quadPanelLayout.setVerticalGroup( |
|
|
|
|
quadPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) |
|
|
|
|
.addGroup(quadPanelLayout.createSequentialGroup() |
|
|
|
|
.addContainerGap() |
|
|
|
|
.addGroup(quadPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) |
|
|
|
|
.addComponent(quadNameTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) |
|
|
|
|
.addComponent(quadModeComboBox, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) |
|
|
|
|
.addGap(4, 4, 4) |
|
|
|
|
.addComponent(quadModeComboBox, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) |
|
|
|
|
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) |
|
|
|
|
.addComponent(jComboBox2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) |
|
|
|
|
.addGap(8, 8, 8) |
|
|
|
|
.addGroup(quadPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) |
|
|
|
|
.addComponent(quadWidthLabel) |
|
|
|
|
.addComponent(quadWidthSpinner, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) |
|
|
|
|
.addComponent(quadWidthSpinner, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) |
|
|
|
|
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) |
|
|
|
|
.addGroup(quadPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) |
|
|
|
|
.addComponent(quadHeightLabel) |
|
|
|
|
.addComponent(quadHeightSpinner, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) |
|
|
|
|
.addComponent(jComboBox2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) |
|
|
|
|
.addComponent(quadHeightSpinner, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) |
|
|
|
|
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) |
|
|
|
|
.addGroup(quadPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) |
|
|
|
|
.addComponent(quadFlipCoordLabel) |
|
|
|
|
.addComponent(quadFlipCoordCheckBox)) |
|
|
|
|
.addContainerGap(166, Short.MAX_VALUE)) |
|
|
|
|
.addContainerGap(201, Short.MAX_VALUE)) |
|
|
|
|
); |
|
|
|
|
|
|
|
|
|
jTabbedPane1.addTab(org.openide.util.NbBundle.getMessage(NewGeometrySettingsTopComponent.class, "NewGeometrySettingsTopComponent.quadPanel.TabConstraints.tabTitle"), quadPanel); // NOI18N
|
|
|
|
@ -437,38 +429,37 @@ public final class NewGeometrySettingsTopComponent extends TopComponent { |
|
|
|
|
linePanel.setLayout(linePanelLayout); |
|
|
|
|
linePanelLayout.setHorizontalGroup( |
|
|
|
|
linePanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) |
|
|
|
|
.addGroup(linePanelLayout.createSequentialGroup() |
|
|
|
|
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, linePanelLayout.createSequentialGroup() |
|
|
|
|
.addContainerGap() |
|
|
|
|
.addGroup(linePanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) |
|
|
|
|
.addGroup(linePanelLayout.createSequentialGroup() |
|
|
|
|
.addGroup(linePanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING) |
|
|
|
|
.addComponent(lineNameTextField) |
|
|
|
|
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) |
|
|
|
|
.addComponent(jComboBox1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) |
|
|
|
|
.addGroup(linePanelLayout.createSequentialGroup() |
|
|
|
|
.addComponent(lineStartLabel) |
|
|
|
|
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) |
|
|
|
|
.addComponent(lineStartTextField, javax.swing.GroupLayout.PREFERRED_SIZE, 109, javax.swing.GroupLayout.PREFERRED_SIZE) |
|
|
|
|
.addGap(78, 78, 78) |
|
|
|
|
.addGroup(javax.swing.GroupLayout.Alignment.LEADING, linePanelLayout.createSequentialGroup() |
|
|
|
|
.addComponent(lineEndLabel) |
|
|
|
|
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) |
|
|
|
|
.addComponent(lineEndTextField)) |
|
|
|
|
.addComponent(jComboBox1, javax.swing.GroupLayout.Alignment.LEADING, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) |
|
|
|
|
.addGroup(javax.swing.GroupLayout.Alignment.LEADING, linePanelLayout.createSequentialGroup() |
|
|
|
|
.addComponent(lineStartLabel) |
|
|
|
|
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) |
|
|
|
|
.addComponent(lineEndTextField, javax.swing.GroupLayout.PREFERRED_SIZE, 123, javax.swing.GroupLayout.PREFERRED_SIZE) |
|
|
|
|
.addGap(0, 169, Short.MAX_VALUE))) |
|
|
|
|
.addComponent(lineStartTextField, javax.swing.GroupLayout.DEFAULT_SIZE, 177, Short.MAX_VALUE))) |
|
|
|
|
.addContainerGap()) |
|
|
|
|
); |
|
|
|
|
linePanelLayout.setVerticalGroup( |
|
|
|
|
linePanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) |
|
|
|
|
.addGroup(linePanelLayout.createSequentialGroup() |
|
|
|
|
.addContainerGap() |
|
|
|
|
.addGroup(linePanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) |
|
|
|
|
.addComponent(lineNameTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) |
|
|
|
|
.addComponent(jComboBox1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) |
|
|
|
|
.addGap(1, 1, 1) |
|
|
|
|
.addGap(5, 5, 5) |
|
|
|
|
.addComponent(jComboBox1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) |
|
|
|
|
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) |
|
|
|
|
.addGroup(linePanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) |
|
|
|
|
.addComponent(lineStartLabel) |
|
|
|
|
.addComponent(lineStartTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) |
|
|
|
|
.addComponent(lineStartTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) |
|
|
|
|
.addGap(8, 8, 8) |
|
|
|
|
.addGroup(linePanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) |
|
|
|
|
.addComponent(lineEndLabel) |
|
|
|
|
.addComponent(lineEndTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) |
|
|
|
|
.addContainerGap(203, Short.MAX_VALUE)) |
|
|
|
|
.addContainerGap(259, Short.MAX_VALUE)) |
|
|
|
|
); |
|
|
|
|
|
|
|
|
|
jTabbedPane1.addTab(org.openide.util.NbBundle.getMessage(NewGeometrySettingsTopComponent.class, "NewGeometrySettingsTopComponent.linePanel.TabConstraints.tabTitle"), linePanel); // NOI18N
|
|
|
|
|