Java Code Examples for javax.swing.border.EtchedBorder#LOWERED

The following examples show how to use javax.swing.border.EtchedBorder#LOWERED . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: EtchedBorderBeanInfo.java    From netbeans with Apache License 2.0 6 votes vote down vote up
public EtchTypePropertyEditor() {
    super(
        new int[] {
            EtchedBorder.LOWERED,
            EtchedBorder.RAISED,
        },
        new String[] {
            "javax.swing.border.EtchedBorder.LOWERED", // NOI18N
            "javax.swing.border.EtchedBorder.RAISED" // NOI18N
        },
        new String[] {
            "VALUE_EtchLowered", // NOI18N
            "VALUE_EtchRaised", // NOI18N
        }
    );
}
 
Example 2
Source File: NbTheme.java    From netbeans with Apache License 2.0 5 votes vote down vote up
private final void handleEtchedBorder (org.xml.sax.AttributeList atts) {
    String key = atts.getValue (KEY_ATTR);
    int i = EtchedBorder.LOWERED;
    String type = atts.getValue (TYPE_ATTR);
    if (type != null) 
        i = type.equals (TYPE_LOWERED) ? EtchedBorder.LOWERED : EtchedBorder.RAISED;
    BorderUIResource.EtchedBorderUIResource resource = new BorderUIResource.EtchedBorderUIResource (i);
    defaults.put (key, resource);
}
 
Example 3
Source File: MainView.java    From hortonmachine with GNU General Public License v3.0 5 votes vote down vote up
public JPanel createmapPaneHolder()
{
   _mapPaneHolder.setName("mapPaneHolder");
   EtchedBorder etchedborder1 = new EtchedBorder(EtchedBorder.LOWERED,null,null);
   _mapPaneHolder.setBorder(etchedborder1);
   FormLayout formlayout1 = new FormLayout("FILL:DEFAULT:GROW(1.0)","CENTER:DEFAULT:GROW(1.0)");
   CellConstraints cc = new CellConstraints();
   _mapPaneHolder.setLayout(formlayout1);

   addFillComponents(_mapPaneHolder,new int[]{ 1 },new int[]{ 1 });
   return _mapPaneHolder;
}
 
Example 4
Source File: ControlInputArea.java    From osp with GNU General Public License v3.0 5 votes vote down vote up
protected java.awt.Component createVisual(Object _visual) {
  if(_visual instanceof ParsableTextArea) {
    inputarea = (ParsableTextArea) _visual;
  } else {
    inputarea = new ParsableTextArea();
    inputarea.setEditable(true);
  }
  pane = new javax.swing.JScrollPane(inputarea);
  etchedBorder = new EtchedBorder(EtchedBorder.LOWERED);
  titledBorder = new TitledBorder(etchedBorder, ""); //$NON-NLS-1$
  titledBorder.setTitleJustification(TitledBorder.CENTER);
  pane.setBorder(etchedBorder);
  return inputarea;
}