javax.swing.border.TitledBorder#DEFAULT_POSITION源码实例Demo

下面列出了javax.swing.border.TitledBorder#DEFAULT_POSITION 实例代码,或者点击链接到github查看源代码,也可以在右侧发表评论。

源代码1 项目: darklaf   文件: DarkTitledBorder.java
protected void checkInsets(final Component c) {
    setInsets(1, 0, 0, 0);
    if (c instanceof JComponent) {
        JComponent component = (JComponent) c;
        Border border = component.getBorder();
        if (border instanceof TitledBorder) {
            String text = ((TitledBorder) border).getTitle();
            int pos = ((TitledBorder) border).getTitlePosition();
            boolean onTop = pos == TitledBorder.ABOVE_TOP
                            || pos == TitledBorder.BELOW_TOP
                            || pos == TitledBorder.TOP
                            || pos == TitledBorder.DEFAULT_POSITION;
            if (text == null || text.isEmpty() || !onTop) {
                setInsets(1, 1, 1, 1);
            }
        }
    }
}
 
源代码2 项目: hortonmachine   文件: FeatureTypeParametersView.java
public JPanel createPanel1()
{
   JPanel jpanel1 = new JPanel();
   TitledBorder titledborder1 = new TitledBorder(null,"FeatureType Parameters",TitledBorder.DEFAULT_JUSTIFICATION,TitledBorder.DEFAULT_POSITION,null,new Color(33,33,33));
   jpanel1.setBorder(titledborder1);
   FormLayout formlayout1 = new FormLayout("FILL:DEFAULT:NONE,FILL:6.0CM:NONE,FILL:4DLU:NONE,FILL:DEFAULT:GROW(1.0)","CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE");
   CellConstraints cc = new CellConstraints();
   jpanel1.setLayout(formlayout1);

   _nameLabel.setName("nameLabel");
   _nameLabel.setText("name");
   jpanel1.add(_nameLabel,cc.xy(2,3));

   _nameTextField.setName("nameTextField");
   jpanel1.add(_nameTextField,cc.xy(4,3));

   addFillComponents(jpanel1,new int[]{ 1,2,3,4 },new int[]{ 1,2,3,4,5,6 });
   return jpanel1;
}
 
源代码3 项目: hortonmachine   文件: GeopaparazziView.java
public JPanel createdatabaseTreeView()
{
   _databaseTreeView.setName("databaseTreeView");
   TitledBorder titledborder1 = new TitledBorder(null,"Projects",TitledBorder.LEFT,TitledBorder.DEFAULT_POSITION,null,new Color(33,33,33));
   _databaseTreeView.setBorder(titledborder1);
   FormLayout formlayout1 = new FormLayout("FILL:DEFAULT:GROW(1.0)","FILL:DEFAULT:GROW(1.0)");
   CellConstraints cc = new CellConstraints();
   _databaseTreeView.setLayout(formlayout1);

   _databaseTree.setName("databaseTree");
   JScrollPane jscrollpane1 = new JScrollPane();
   jscrollpane1.setViewportView(_databaseTree);
   jscrollpane1.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED);
   jscrollpane1.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED);
   _databaseTreeView.add(jscrollpane1,new CellConstraints(1,1,1,1,CellConstraints.FILL,CellConstraints.FILL));

   addFillComponents(_databaseTreeView,new int[0],new int[0]);
   return _databaseTreeView;
}
 
源代码4 项目: hortonmachine   文件: MapcalcView.java
public JPanel createPanel5()
{
   JPanel jpanel1 = new JPanel();
   TitledBorder titledborder1 = new TitledBorder(null,"Output Path",TitledBorder.DEFAULT_JUSTIFICATION,TitledBorder.DEFAULT_POSITION,null,new Color(33,33,33));
   jpanel1.setBorder(titledborder1);
   FormLayout formlayout1 = new FormLayout("FILL:DEFAULT:GROW(1.0),FILL:4DLU:NONE,FILL:DEFAULT:NONE","CENTER:DEFAULT:NONE");
   CellConstraints cc = new CellConstraints();
   jpanel1.setLayout(formlayout1);

   _outputPathText.setName("outputPathText");
   jpanel1.add(_outputPathText,cc.xy(1,1));

   _outPathButton.setActionCommand("...");
   _outPathButton.setName("outPathButton");
   _outPathButton.setText("...");
   jpanel1.add(_outPathButton,cc.xy(3,1));

   addFillComponents(jpanel1,new int[]{ 2 },new int[0]);
   return jpanel1;
}
 
源代码5 项目: hortonmachine   文件: RuleParametersView.java
public JPanel createPanel2()
{
   JPanel jpanel1 = new JPanel();
   TitledBorder titledborder1 = new TitledBorder(null,"Filter",TitledBorder.DEFAULT_JUSTIFICATION,TitledBorder.DEFAULT_POSITION,null,new Color(33,33,33));
   jpanel1.setBorder(titledborder1);
   FormLayout formlayout1 = new FormLayout("FILL:DEFAULT:GROW(1.0)","FILL:3.0CM:GROW(1.0)");
   CellConstraints cc = new CellConstraints();
   jpanel1.setLayout(formlayout1);

   _filterTextArea.setName("filterTextArea");
   JScrollPane jscrollpane1 = new JScrollPane();
   jscrollpane1.setViewportView(_filterTextArea);
   jscrollpane1.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED);
   jscrollpane1.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED);
   jpanel1.add(jscrollpane1,cc.xy(1,1));

   addFillComponents(jpanel1,new int[0],new int[0]);
   return jpanel1;
}
 
源代码6 项目: hortonmachine   文件: LasInfoView.java
public JPanel createPanel2()
{
   JPanel jpanel1 = new JPanel();
   TitledBorder titledborder1 = new TitledBorder(null,"Las/Laz input file",TitledBorder.DEFAULT_JUSTIFICATION,TitledBorder.DEFAULT_POSITION,null,new Color(33,33,33));
   jpanel1.setBorder(titledborder1);
   FormLayout formlayout1 = new FormLayout("FILL:32DLU:GROW(1.0),FILL:DEFAULT:NONE,FILL:32DLU:NONE","CENTER:DEFAULT:NONE");
   CellConstraints cc = new CellConstraints();
   jpanel1.setLayout(formlayout1);

   _inputPathField.setName("inputPathField");
   jpanel1.add(_inputPathField,cc.xy(1,1));

   _loadButton.setActionCommand("load");
   _loadButton.setName("loadButton");
   _loadButton.setText("...");
   jpanel1.add(_loadButton,cc.xy(3,1));

   addFillComponents(jpanel1,new int[]{ 2 },new int[0]);
   return jpanel1;
}
 
源代码7 项目: hortonmachine   文件: DatabaseView.java
public JPanel createdatabaseTreeView()
{
   _databaseTreeView.setName("databaseTreeView");
   TitledBorder titledborder1 = new TitledBorder(null,"Database Connection",TitledBorder.LEFT,TitledBorder.DEFAULT_POSITION,null,new Color(33,33,33));
   _databaseTreeView.setBorder(titledborder1);
   FormLayout formlayout1 = new FormLayout("FILL:DEFAULT:GROW(1.0)","FILL:DEFAULT:GROW(1.0)");
   CellConstraints cc = new CellConstraints();
   _databaseTreeView.setLayout(formlayout1);

   _databaseTree.setName("databaseTree");
   JScrollPane jscrollpane1 = new JScrollPane();
   jscrollpane1.setViewportView(_databaseTree);
   jscrollpane1.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED);
   jscrollpane1.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED);
   _databaseTreeView.add(jscrollpane1,new CellConstraints(1,1,1,1,CellConstraints.FILL,CellConstraints.FILL));

   addFillComponents(_databaseTreeView,new int[0],new int[0]);
   return _databaseTreeView;
}
 
源代码8 项目: hortonmachine   文件: LasInfoView.java
public JPanel createPanel4()
{
   JPanel jpanel1 = new JPanel();
   TitledBorder titledborder1 = new TitledBorder(null,"First Point Information",TitledBorder.DEFAULT_JUSTIFICATION,TitledBorder.DEFAULT_POSITION,null,new Color(33,33,33));
   jpanel1.setBorder(titledborder1);
   FormLayout formlayout1 = new FormLayout("FILL:DEFAULT:GROW(1.0)","FILL:DEFAULT:NONE");
   CellConstraints cc = new CellConstraints();
   jpanel1.setLayout(formlayout1);

   _firstPointTable.setName("firstPointTable");
   JScrollPane jscrollpane1 = new JScrollPane();
   jscrollpane1.setViewportView(_firstPointTable);
   jscrollpane1.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED);
   jscrollpane1.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED);
   jpanel1.add(jscrollpane1,cc.xy(1,1));

   addFillComponents(jpanel1,new int[0],new int[0]);
   return jpanel1;
}
 
源代码9 项目: hortonmachine   文件: LasInfoView.java
public JPanel createPanel5()
{
   JPanel jpanel1 = new JPanel();
   TitledBorder titledborder1 = new TitledBorder(null,"Optional DTM for delta",TitledBorder.DEFAULT_JUSTIFICATION,TitledBorder.DEFAULT_POSITION,null,new Color(33,33,33));
   jpanel1.setBorder(titledborder1);
   FormLayout formlayout1 = new FormLayout("FILL:32DLU:GROW(1.0),FILL:DEFAULT:NONE,FILL:32DLU:NONE","CENTER:DEFAULT:NONE");
   CellConstraints cc = new CellConstraints();
   jpanel1.setLayout(formlayout1);

   _dtmInputPathField.setName("dtmInputPathField");
   jpanel1.add(_dtmInputPathField,cc.xy(1,1));

   _loadDtmButton.setActionCommand("load");
   _loadDtmButton.setName("loadDtmButton");
   _loadDtmButton.setText("...");
   jpanel1.add(_loadDtmButton,cc.xy(3,1));

   addFillComponents(jpanel1,new int[]{ 2 },new int[0]);
   return jpanel1;
}
 
源代码10 项目: netbeans   文件: TitledBorderBeanInfo.java
public PositionPropertyEditor() {
    super(
        new int[] {
            TitledBorder.DEFAULT_POSITION,
            TitledBorder.ABOVE_TOP,
            TitledBorder.TOP,
            TitledBorder.BELOW_TOP,
            TitledBorder.ABOVE_BOTTOM,
            TitledBorder.BOTTOM,
            TitledBorder.BELOW_BOTTOM
        },
        new String[] {
            "javax.swing.border.TitledBorder.DEFAULT_POSITION", // NOI18N
            "javax.swing.border.TitledBorder.ABOVE_TOP", // NOI18N
            "javax.swing.border.TitledBorder.TOP", // NOI18N
            "javax.swing.border.TitledBorder.BELOW_TOP", // NOI18N
            "javax.swing.border.TitledBorder.ABOVE_BOTTOM", // NOI18N
            "javax.swing.border.TitledBorder.BOTTOM", // NOI18N
            "javax.swing.border.TitledBorder.BELOW_BOTTOM" // NOI18N
        },
        new String[] {
            "VALUE_PosDefault", // NOI18N
            "VALUE_PosAboveTop", // NOI18N
            "VALUE_PosTop", // NOI18N
            "VALUE_PosBelowTop", // NOI18N
            "VALUE_PosAboveBottom", // NOI18N
            "VALUE_PosBottom", // NOI18N
            "VALUE_PosBelowBottom", // NOI18N
        }
    );
}
 
源代码11 项目: hortonmachine   文件: WebMapsView.java
public JPanel createPanel9()
{
   JPanel jpanel1 = new JPanel();
   TitledBorder titledborder1 = new TitledBorder(null,"Preview",TitledBorder.DEFAULT_JUSTIFICATION,TitledBorder.DEFAULT_POSITION,null,new Color(33,33,33));
   jpanel1.setBorder(titledborder1);
   FormLayout formlayout1 = new FormLayout("CENTER:DEFAULT:GROW(1.0)","CENTER:DEFAULT:GROW(1.0)");
   CellConstraints cc = new CellConstraints();
   jpanel1.setLayout(formlayout1);

   _previewImageLabel.setName("previewImageLabel");
   jpanel1.add(_previewImageLabel,cc.xy(1,1));

   addFillComponents(jpanel1,new int[0],new int[0]);
   return jpanel1;
}
 
源代码12 项目: hortonmachine   文件: DatabaseView.java
public JPanel createPanel1()
{
   JPanel jpanel1 = new JPanel();
   TitledBorder titledborder1 = new TitledBorder(null,"SQL Editor",TitledBorder.LEFT,TitledBorder.DEFAULT_POSITION,null,new Color(33,33,33));
   jpanel1.setBorder(titledborder1);
   FormLayout formlayout1 = new FormLayout("FILL:DEFAULT:NONE,FILL:DEFAULT:GROW(1.0)","CENTER:2DLU:NONE,FILL:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,FILL:2DLU:GROW(1.0)");
   CellConstraints cc = new CellConstraints();
   jpanel1.setLayout(formlayout1);

   _runQueryButton.setActionCommand("1");
   _runQueryButton.setName("runQueryButton");
   _runQueryButton.setText("1");
   jpanel1.add(_runQueryButton,cc.xy(1,2));

   _runQueryAndStoreButton.setActionCommand("2");
   _runQueryAndStoreButton.setName("runQueryAndStoreButton");
   _runQueryAndStoreButton.setText("2");
   jpanel1.add(_runQueryAndStoreButton,cc.xy(1,4));

   _runQueryAndStoreShapefileButton.setActionCommand("3");
   _runQueryAndStoreShapefileButton.setName("runQueryAndStoreShapefileButton");
   _runQueryAndStoreShapefileButton.setText("3");
   jpanel1.add(_runQueryAndStoreShapefileButton,cc.xy(1,6));

   _clearSqlEditorbutton.setActionCommand("4");
   _clearSqlEditorbutton.setName("clearSqlEditorbutton");
   _clearSqlEditorbutton.setText("5");
   jpanel1.add(_clearSqlEditorbutton,cc.xy(1,10));

   _viewQueryButton.setActionCommand("4");
   _viewQueryButton.setName("viewQueryButton");
   _viewQueryButton.setText("4");
   jpanel1.add(_viewQueryButton,cc.xy(1,8));

   _sqlEditorAreaPanel.setName("sqlEditorAreaPanel");
   jpanel1.add(_sqlEditorAreaPanel,cc.xywh(2,2,1,10));

   addFillComponents(jpanel1,new int[]{ 1,2 },new int[]{ 1,3,5,7,9,11 });
   return jpanel1;
}
 
源代码13 项目: hortonmachine   文件: StylePanelView.java
public JPanel createfillPanel()
{
   _fillPanel.setName("fillPanel");
   TitledBorder titledborder1 = new TitledBorder(null,"Fill",TitledBorder.DEFAULT_JUSTIFICATION,TitledBorder.DEFAULT_POSITION,null,new Color(49,106,196));
   _fillPanel.setBorder(titledborder1);
   FormLayout formlayout1 = new FormLayout("FILL:DEFAULT:NONE,FILL:DEFAULT:GROW(0.7),FILL:DEFAULT:NONE,FILL:DEFAULT:GROW(0.3),FILL:DEFAULT:NONE","CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE");
   CellConstraints cc = new CellConstraints();
   _fillPanel.setLayout(formlayout1);

   _fillColorLabel.setName("fillColorLabel");
   _fillColorLabel.setText("Fill Color");
   _fillPanel.add(_fillColorLabel,cc.xy(2,2));

   _fillColorButton.setActionCommand("...");
   _fillColorButton.setName("fillColorButton");
   _fillColorButton.setText("...");
   _fillPanel.add(_fillColorButton,cc.xy(4,2));

   _fillOpacityLabel.setName("fillOpacityLabel");
   _fillOpacityLabel.setText("Fill Opacity");
   _fillPanel.add(_fillOpacityLabel,cc.xy(2,4));

   _fillOpacityCombo.setName("fillOpacityCombo");
   _fillPanel.add(_fillOpacityCombo,cc.xy(4,4));

   addFillComponents(_fillPanel,new int[]{ 1,2,3,4,5 },new int[]{ 1,2,3,4,5 });
   return _fillPanel;
}
 
源代码14 项目: hortonmachine   文件: StylePanelView.java
public JPanel createstrokelPanel()
{
   _strokelPanel.setName("strokelPanel");
   TitledBorder titledborder1 = new TitledBorder(null,"Stroke",TitledBorder.DEFAULT_JUSTIFICATION,TitledBorder.DEFAULT_POSITION,null,new Color(49,106,196));
   _strokelPanel.setBorder(titledborder1);
   FormLayout formlayout1 = new FormLayout("FILL:DEFAULT:NONE,FILL:DEFAULT:GROW(0.7),FILL:DEFAULT:NONE,FILL:DEFAULT:GROW(0.3),FILL:DEFAULT:NONE","CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE");
   CellConstraints cc = new CellConstraints();
   _strokelPanel.setLayout(formlayout1);

   _strokeColorLabel.setName("strokeColorLabel");
   _strokeColorLabel.setText("Strokel Color");
   _strokelPanel.add(_strokeColorLabel,cc.xy(2,2));

   _strokeColorButton.setActionCommand("...");
   _strokeColorButton.setName("strokeColorButton");
   _strokeColorButton.setText("...");
   _strokelPanel.add(_strokeColorButton,cc.xy(4,2));

   _strokeWidthLabel.setName("strokeWidthLabel");
   _strokeWidthLabel.setText("Stroke Width");
   _strokelPanel.add(_strokeWidthLabel,cc.xy(2,4));

   _strokeWidthText.setName("strokeWidthText");
   _strokelPanel.add(_strokeWidthText,cc.xy(4,4));

   addFillComponents(_strokelPanel,new int[]{ 1,2,3,4,5 },new int[]{ 1,2,3,4,5 });
   return _strokelPanel;
}
 
源代码15 项目: hortonmachine   文件: GeopaparazziView.java
public JPanel createnwwHolderFrame()
{
   _nwwHolderFrame.setName("nwwHolderFrame");
   TitledBorder titledborder1 = new TitledBorder(null,"Viewer",TitledBorder.DEFAULT_JUSTIFICATION,TitledBorder.DEFAULT_POSITION,null,new Color(33,33,33));
   _nwwHolderFrame.setBorder(titledborder1);
   FormLayout formlayout1 = new FormLayout("FILL:DEFAULT:GROW(1.0)","FILL:DEFAULT:GROW(1.0)");
   CellConstraints cc = new CellConstraints();
   _nwwHolderFrame.setLayout(formlayout1);

   _nwwHolder.setName("nwwHolder");
   _nwwHolderFrame.add(_nwwHolder,cc.xy(1,1));

   addFillComponents(_nwwHolderFrame,new int[0],new int[0]);
   return _nwwHolderFrame;
}
 
源代码16 项目: hortonmachine   文件: GeopaparazziView.java
public JPanel createPanel1()
{
   JPanel jpanel1 = new JPanel();
   TitledBorder titledborder1 = new TitledBorder(null,"Info",TitledBorder.DEFAULT_JUSTIFICATION,TitledBorder.DEFAULT_POSITION,null,new Color(33,33,33));
   jpanel1.setBorder(titledborder1);
   FormLayout formlayout1 = new FormLayout("FILL:DEFAULT:GROW(1.0)","FILL:DEFAULT:GROW(1.0)");
   CellConstraints cc = new CellConstraints();
   jpanel1.setLayout(formlayout1);

   _infoScroll.setName("infoScroll");
   jpanel1.add(_infoScroll,cc.xy(1,1));

   addFillComponents(jpanel1,new int[0],new int[0]);
   return jpanel1;
}
 
源代码17 项目: hortonmachine   文件: MapcalcView.java
public JPanel createPanel1()
{
   JPanel jpanel1 = new JPanel();
   TitledBorder titledborder1 = new TitledBorder(null,"Mapcalc History",TitledBorder.DEFAULT_JUSTIFICATION,TitledBorder.DEFAULT_POSITION,null,new Color(33,33,33));
   jpanel1.setBorder(titledborder1);
   FormLayout formlayout1 = new FormLayout("FILL:DEFAULT:GROW(1.0)","CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE");
   CellConstraints cc = new CellConstraints();
   jpanel1.setLayout(formlayout1);

   _historyCombo.setName("historyCombo");
   jpanel1.add(_historyCombo,cc.xy(1,2));

   addFillComponents(jpanel1,new int[]{ 1 },new int[]{ 1 });
   return jpanel1;
}
 
源代码18 项目: hortonmachine   文件: TextSymbolizerView.java
public JPanel createPanel1()
{
   JPanel jpanel1 = new JPanel();
   TitledBorder titledborder1 = new TitledBorder(null,"Labelling",TitledBorder.DEFAULT_JUSTIFICATION,TitledBorder.DEFAULT_POSITION,null,new Color(33,33,33));
   jpanel1.setBorder(titledborder1);
   FormLayout formlayout1 = new FormLayout("FILL:DEFAULT:NONE,FILL:6.0CM:NONE,FILL:DEFAULT:NONE,FILL:DEFAULT:GROW(1.0),FILL:DEFAULT:NONE","CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE");
   CellConstraints cc = new CellConstraints();
   jpanel1.setLayout(formlayout1);

   _opacityLabel.setName("opacityLabel");
   _opacityLabel.setText("opacity");
   jpanel1.add(_opacityLabel,cc.xy(2,4));

   _opacitySpinner.setName("opacitySpinner");
   jpanel1.add(_opacitySpinner,cc.xy(4,4));

   _rotationLabel.setName("rotationLabel");
   _rotationLabel.setText("rotation");
   jpanel1.add(_rotationLabel,cc.xy(2,6));

   _rotationSpinner.setName("rotationSpinner");
   jpanel1.add(_rotationSpinner,cc.xy(4,6));

   _fontLabel.setName("fontLabel");
   _fontLabel.setText("font");
   jpanel1.add(_fontLabel,cc.xy(2,8));

   _fontColorLabel.setName("fontColorLabel");
   _fontColorLabel.setText("font color");
   jpanel1.add(_fontColorLabel,cc.xy(2,10));

   _labelCombo.setName("labelCombo");
   jpanel1.add(_labelCombo,cc.xy(4,2));

   _labelLabel.setName("labelLabel");
   _labelLabel.setText("label");
   jpanel1.add(_labelLabel,cc.xy(2,2));

   _colorFontButton.setActionCommand("border color");
   _colorFontButton.setName("colorFontButton");
   _colorFontButton.setText("font color");
   jpanel1.add(_colorFontButton,cc.xy(4,10));

   _fontButton.setActionCommand("choose font");
   _fontButton.setName("fontButton");
   _fontButton.setText("choose font");
   jpanel1.add(_fontButton,cc.xy(4,8));

   _haloColorButton.setActionCommand("fill color");
   _haloColorButton.setName("haloColorButton");
   _haloColorButton.setText("halo color");
   jpanel1.add(_haloColorButton,cc.xy(4,14));

   _haloColorLabel.setName("haloColorLabel");
   _haloColorLabel.setText("halo color");
   jpanel1.add(_haloColorLabel,cc.xy(2,14));

   _haloSizeLabel.setName("haloSizeLabel");
   _haloSizeLabel.setText("halo size");
   jpanel1.add(_haloSizeLabel,cc.xy(2,12));

   _haloSizeSpinner.setName("haloSizeSpinner");
   jpanel1.add(_haloSizeSpinner,cc.xy(4,12));

   _displacementXSpinner.setName("displacementXSpinner");
   jpanel1.add(_displacementXSpinner,cc.xy(4,20));

   _displacementYLabel.setName("displacementYLabel");
   _displacementYLabel.setText("displacement y");
   jpanel1.add(_displacementYLabel,cc.xy(2,22));

   _displacementYSpinner.setName("displacementYSpinner");
   jpanel1.add(_displacementYSpinner,cc.xy(4,22));

   _displacementXLabel.setName("displacementXLabel");
   _displacementXLabel.setText("displacement x");
   jpanel1.add(_displacementXLabel,cc.xy(2,20));

   _anchorXLabel.setName("anchorXLabel");
   _anchorXLabel.setText("anchor x");
   jpanel1.add(_anchorXLabel,cc.xy(2,16));

   _anchorXCombo.setName("anchorXCombo");
   jpanel1.add(_anchorXCombo,cc.xy(4,16));

   _anchorYLabel.setName("anchorYLabel");
   _anchorYLabel.setText("anchor y");
   jpanel1.add(_anchorYLabel,cc.xy(2,18));

   _anchorYCombo.setName("anchorYCombo");
   jpanel1.add(_anchorYCombo,cc.xy(4,18));

   addFillComponents(jpanel1,new int[]{ 1,2,3,4,5 },new int[]{ 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23 });
   return jpanel1;
}
 
源代码19 项目: hortonmachine   文件: WebMapsView.java
public JPanel createPanel8()
{
   JPanel jpanel1 = new JPanel();
   TitledBorder titledborder1 = new TitledBorder(null,"Download Geotiff",TitledBorder.DEFAULT_JUSTIFICATION,TitledBorder.DEFAULT_POSITION,null,new Color(33,33,33));
   jpanel1.setBorder(titledborder1);
   FormLayout formlayout1 = new FormLayout("FILL:DEFAULT:NONE,FILL:DEFAULT:NONE,FILL:DEFAULT:GROW(1.0),FILL:DEFAULT:NONE,FILL:24DLU:NONE","CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE,FILL:DEFAULT:NONE");
   CellConstraints cc = new CellConstraints();
   jpanel1.setLayout(formlayout1);

   JLabel jlabel1 = new JLabel();
   jlabel1.setText("Width (Pixels)");
   jpanel1.add(jlabel1,cc.xy(1,1));

   JLabel jlabel2 = new JLabel();
   jlabel2.setText("Height (Pixels)");
   jpanel1.add(jlabel2,cc.xy(1,3));

   _outputWithField.setName("outputWithField");
   jpanel1.add(_outputWithField,cc.xywh(3,1,3,1));

   _outputHeightField.setName("outputHeightField");
   jpanel1.add(_outputHeightField,cc.xywh(3,3,3,1));

   JLabel jlabel3 = new JLabel();
   jlabel3.setText("Output geotiff file");
   jpanel1.add(jlabel3,cc.xy(1,5));

   _outputFileField.setName("outputFileField");
   jpanel1.add(_outputFileField,cc.xy(3,5));

   _outputSaveButton.setActionCommand("load");
   _outputSaveButton.setName("outputSaveButton");
   _outputSaveButton.setText("...");
   jpanel1.add(_outputSaveButton,cc.xy(5,5));

   _wms2tiffButton.setActionCommand("Load Preview");
   _wms2tiffButton.setName("wms2tiffButton");
   _wms2tiffButton.setText("Convert WMS to Geotiff");
   jpanel1.add(_wms2tiffButton,cc.xywh(1,7,5,1));

   addFillComponents(jpanel1,new int[]{ 2,4,5 },new int[]{ 2,4,6,8 });
   return jpanel1;
}
 
源代码20 项目: hortonmachine   文件: PointMarkSymbolizerView.java
public JPanel createPanel3()
{
   JPanel jpanel1 = new JPanel();
   TitledBorder titledborder1 = new TitledBorder(null,"Mark",TitledBorder.DEFAULT_JUSTIFICATION,TitledBorder.DEFAULT_POSITION,null,new Color(33,33,33));
   jpanel1.setBorder(titledborder1);
   FormLayout formlayout1 = new FormLayout("FILL:DEFAULT:NONE,FILL:6.0CM:NONE,FILL:DEFAULT:NONE,FILL:DEFAULT:GROW(1.0)","CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:12DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE");
   CellConstraints cc = new CellConstraints();
   jpanel1.setLayout(formlayout1);

   _wkmarkCombo.setName("wkmarkCombo");
   jpanel1.add(_wkmarkCombo,cc.xywh(2,2,3,1));

   _sizeLabel.setName("sizeLabel");
   _sizeLabel.setText("size");
   jpanel1.add(_sizeLabel,cc.xy(2,6));

   _markSizeSpinner.setName("markSizeSpinner");
   jpanel1.add(_markSizeSpinner,cc.xy(4,6));

   _rotationLabel.setName("rotationLabel");
   _rotationLabel.setText("rotation");
   jpanel1.add(_rotationLabel,cc.xy(2,8));

   _rotationSpinner.setName("rotationSpinner");
   jpanel1.add(_rotationSpinner,cc.xy(4,8));

   _offsetXSpinner.setName("offsetXSpinner");
   jpanel1.add(_offsetXSpinner,cc.xy(4,10));

   _offsetXLabel.setName("offsetXLabel");
   _offsetXLabel.setText("offset x");
   jpanel1.add(_offsetXLabel,cc.xy(2,10));

   _offsetYLabel.setName("offsetYLabel");
   _offsetYLabel.setText("offset y");
   jpanel1.add(_offsetYLabel,cc.xy(2,12));

   _offsetYSpinner.setName("offsetYSpinner");
   jpanel1.add(_offsetYSpinner,cc.xy(4,12));

   jpanel1.add(createPanel4(),cc.xy(4,4));
   _sizeLabel1.setName("sizeLabel");
   _sizeLabel1.setText("from graphic");
   jpanel1.add(_sizeLabel1,cc.xy(2,4));

   addFillComponents(jpanel1,new int[]{ 1,2,3,4 },new int[]{ 1,2,3,4,5,6,7,8,9,10,11,12,13 });
   return jpanel1;
}