Package javax.swing.text

Examples of javax.swing.text.Style


editorScrollPane.setVerticalScrollBarPolicy(
JScrollPane.VERTICAL_SCROLLBAR_ALWAYS);
editorScrollPane.setPreferredSize(new Dimension(480, 240));
editorScrollPane.setMinimumSize(new Dimension(320, 160));
doc = screen.getStyledDocument();
Style def = StyleContext.getDefaultStyleContext().getStyle(StyleContext.DEFAULT_STYLE);
Style receivelight_value_via_LightSensorStyle = doc.addStyle("receivelight_value_via_LightSensorScala_LightSensorStyle", def);
StyleConstants.setForeground(receivelight_value_via_LightSensorStyle, new Color(38, 91, 32));
return editorScrollPane;
}
View Full Code Here


editorScrollPane.setVerticalScrollBarPolicy(
JScrollPane.VERTICAL_SCROLLBAR_ALWAYS);
editorScrollPane.setPreferredSize(new Dimension(480, 240));
editorScrollPane.setMinimumSize(new Dimension(320, 160));
doc = screen.getStyledDocument();
Style def = StyleContext.getDefaultStyleContext().getStyle(StyleContext.DEFAULT_STYLE);
Style receivetemperature_value_via_TemperatureSensorStyle = doc.addStyle("receivetemperature_value_via_TemperatureSensorScala_TemperatureSensorStyle", def);
StyleConstants.setForeground(receivetemperature_value_via_TemperatureSensorStyle, new Color(160, 65, 24));
return editorScrollPane;
}
View Full Code Here

editorScrollPane.setVerticalScrollBarPolicy(
JScrollPane.VERTICAL_SCROLLBAR_ALWAYS);
editorScrollPane.setPreferredSize(new Dimension(480, 240));
editorScrollPane.setMinimumSize(new Dimension(320, 160));
doc = screen.getStyledDocument();
Style def = StyleContext.getDefaultStyleContext().getStyle(StyleContext.DEFAULT_STYLE);
Style receivecurrentDisplay_via_DisplayStyle = doc.addStyle("receivecurrentDisplay_via_LcdScreenScala_DisplayStyle", def);
StyleConstants.setForeground(receivecurrentDisplay_via_DisplayStyle, new Color(152, 86, 140));
return editorScrollPane;
}
View Full Code Here

editorScrollPane.setVerticalScrollBarPolicy(
JScrollPane.VERTICAL_SCROLLBAR_ALWAYS);
editorScrollPane.setPreferredSize(new Dimension(480, 240));
editorScrollPane.setMinimumSize(new Dimension(320, 160));
doc = screen.getStyledDocument();
Style def = StyleContext.getDefaultStyleContext().getStyle(StyleContext.DEFAULT_STYLE);
Style receiveread_temperature_via_TemperatureSensorStyle = doc.addStyle("receiveread_temperature_via_TemperatureSensorScala_TemperatureSensorStyle", def);
StyleConstants.setForeground(receiveread_temperature_via_TemperatureSensorStyle, new Color(160, 143, 164));
return editorScrollPane;
}
View Full Code Here

editorScrollPane.setVerticalScrollBarPolicy(
JScrollPane.VERTICAL_SCROLLBAR_ALWAYS);
editorScrollPane.setPreferredSize(new Dimension(480, 240));
editorScrollPane.setMinimumSize(new Dimension(320, 160));
doc = screen.getStyledDocument();
Style def = StyleContext.getDefaultStyleContext().getStyle(StyleContext.DEFAULT_STYLE);
Style receivetemperature_via_RemoteControlInStyle = doc.addStyle("receivetemperature_via_WeatherStationRPi_RemoteControlInStyle", def);
StyleConstants.setForeground(receivetemperature_via_RemoteControlInStyle, new Color(17, 28, 59));
Style receivelight_via_RemoteControlInStyle = doc.addStyle("receivelight_via_WeatherStationRPi_RemoteControlInStyle", def);
StyleConstants.setForeground(receivelight_via_RemoteControlInStyle, new Color(67, 153, 139));
return editorScrollPane;
}
View Full Code Here

editorScrollPane.setVerticalScrollBarPolicy(
JScrollPane.VERTICAL_SCROLLBAR_ALWAYS);
editorScrollPane.setPreferredSize(new Dimension(480, 240));
editorScrollPane.setMinimumSize(new Dimension(320, 160));
doc = screen.getStyledDocument();
Style def = StyleContext.getDefaultStyleContext().getStyle(StyleContext.DEFAULT_STYLE);
Style receiveread_light_via_LightSensorStyle = doc.addStyle("receiveread_light_via_LightSensorScala_LightSensorStyle", def);
StyleConstants.setForeground(receiveread_light_via_LightSensorStyle, new Color(70, 95, 94));
return editorScrollPane;
}
View Full Code Here

editorScrollPane.setVerticalScrollBarPolicy(
JScrollPane.VERTICAL_SCROLLBAR_ALWAYS);
editorScrollPane.setPreferredSize(new Dimension(480, 240));
editorScrollPane.setMinimumSize(new Dimension(320, 160));
doc = screen.getStyledDocument();
Style def = StyleContext.getDefaultStyleContext().getStyle(StyleContext.DEFAULT_STYLE);
Style receivechangeDisplay_via_RemoteControlOutStyle = doc.addStyle("receivechangeDisplay_via_WeatherStationRPi_RemoteControlOutStyle", def);
StyleConstants.setForeground(receivechangeDisplay_via_RemoteControlOutStyle, new Color(83, 50, 51));
return editorScrollPane;
}
View Full Code Here

editorScrollPane.setVerticalScrollBarPolicy(
JScrollPane.VERTICAL_SCROLLBAR_ALWAYS);
editorScrollPane.setPreferredSize(new Dimension(480, 240));
editorScrollPane.setMinimumSize(new Dimension(320, 160));
doc = screen.getStyledDocument();
Style def = StyleContext.getDefaultStyleContext().getStyle(StyleContext.DEFAULT_STYLE);
Style receiveinitDisplay_via_DisplayStyle = doc.addStyle("receiveinitDisplay_via_LcdScreenScala_DisplayStyle", def);
StyleConstants.setForeground(receiveinitDisplay_via_DisplayStyle, new Color(141, 0, 93));
Style receiverefreshDisplay_via_DisplayStyle = doc.addStyle("receiverefreshDisplay_via_LcdScreenScala_DisplayStyle", def);
StyleConstants.setForeground(receiverefreshDisplay_via_DisplayStyle, new Color(3, 136, 170));
Style receivesetDisplay_via_DisplayStyle = doc.addStyle("receivesetDisplay_via_LcdScreenScala_DisplayStyle", def);
StyleConstants.setForeground(receivesetDisplay_via_DisplayStyle, new Color(82, 80, 39));
return editorScrollPane;
}
View Full Code Here

  else if(strColor.equals("ORANGE")) color = Color.ORANGE;
  else if(strColor.equals("RED")) color = Color.RED;
  int size = pCntrl.getTextSize();
  styleDoc = textPane.getStyledDocument();

  Style style = textPane.addStyle("Color", null);
  StyleConstants.setForeground(style, color);
  style = textPane.addStyle("Color Underline", style);
  StyleConstants.setUnderline(style, true);
  style = textPane.addStyle("Color Underline", style);
  StyleConstants.setFontSize(style, size);
View Full Code Here

    } catch (IOException e) {
      handleException(e);
    }
    // Create menus after loading preferences to get code pages.
    this.setJMenuBar(createMenuBar());
    Style defaultStyle = StyleContext.getDefaultStyleContext().getStyle(StyleContext.DEFAULT_STYLE);
    defaultStyle = StyleContext.getDefaultStyleContext().addStyle("defaultAnnot", defaultStyle);
    StyleConstants.setBackground(defaultStyle, selectionColor);
    this.styleMap.put(CAS.TYPE_NAME_ANNOTATION, defaultStyle);
    this.textPopup = new JPopupMenu();
    this.fsTree.addFocusListener(new TreeFocusHandler(this.fsTree));
View Full Code Here

TOP

Related Classes of javax.swing.text.Style

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.