Changes between Version 2 and Version 3 of AUTHOR_APP_TUNING
- Timestamp:
- 07/24/09 17:49:32 (16 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
AUTHOR_APP_TUNING
v2 v3 3 3 == Overview of the UI parts == 4 4 5 * Every part of Swing can be customized by providing a style for it. Example: 6 {{{ 7 8 <!-- ================================= --> 9 <!-- BUTTON --> 10 <!-- ================================= --> 11 12 <style id="buttonStyle"> 13 <!-- Shift the text one pixel when pressed --> 14 <property key="Button.textShiftOffset" type="integer" value="1"/> 15 <insets top="1" left="1" right="1" bottom="1"/> 16 17 <state value="ENABLED"> 18 <imagePainter method="buttonBackground" path="btn_enabled.png" 19 sourceInsets="2 1 1 2"/> 20 </state> 21 <state value="DISABLED"> 22 <imagePainter method="buttonBackground" path="btn_disabled.png" 23 sourceInsets="2 1 1 2"/> 24 </state> 25 <state value="PRESSED"> 26 <imagePainter method="buttonBackground" path="btn_roll.png" 27 sourceInsets="2 1 1 2"/> 28 </state> 29 </style> 30 <!-- Bind buttonStyle to all JButtons --> 31 <bind style="buttonStyle" type="region" key="button"/> 32 33 }}} 34 35 * The different possible keys are as follows: ArrowButton, Button, CheckBox, RadioButton, ToggleButton, ComboBox, InternalFrame, InternalFrameTitlePane, InternalFrameTitlePane.closeButton, InternalFrameTitlePane.iconifyButton, InternalFrameTitlePane.maximizeButton, DesktopPane, FileChooser, List, MenuBar, Menu, MenuItem, MenuItemAccelerator, CheckBoxMenuItem, RadioButtonMenuItem, PopupMenu, PopupMenuSeparator, OptionPane, RootPane, Panel, ProgressBar, ScrollBar, ScrollBarTrack, ScrollBarThumb, ScrollPane, Viewport, Separator, Slider, SliderTrack, SliderThumb, SplitPane, SplitPaneDivider, Table, TableHeader, TabbedPane, TabbedPaneContent, TabbedPaneTab, TabbedPaneTabArea, Label, ToolTip, TextField, FormattedTextField, PasswordField, TextArea, TextPane, EditorPane, Spinner, ComboBox.listRenderer, TableHeader.renderer, ToolBar, ToolBarContent, ToolBarSeparator, ToolBarDragWindow, Tree, TreeCell, '''And may be more...''' 36 37 == Styles for parts of the UI == 5 38 * ArrowButton 6 39