|
EJS Elements, Interface, Label |
|
|
|
|
Written by Willy Gerber
|
|
Thursday, 12 February 2009 15:05 |
Help for Easy Java Simulation (EJS) Software Version 4.1 (see http://fem.um.es/Ejs) Objective: Create a label. Element:  Tree Element:  Element on Interface panel:  Property Window:  Properties, format and examples: | | Property | Format | Example | Function |  | Text | String | "Value" | settext(String):void getText():String |  | Image | File | "images/lab.jpg" | |  | Alignment | Alignment | LEFT | |  | Size | Coordinate | "200,200" | setSize(int,int:void setSize(Dimension):void getSize():Dimension |  | Background | Color | "255,255,255,255" | setBackground(color) getBackground():Color |  | Foreground | Color | "0,0,0,255" | setForeground(color) getForeground():Color |  | Font | Font | "Arial,Plain,12" | setFont(Font):Void getFont():Font |  | Tooltip | String | "Consult help." | getToolTipText(String):void getToolTipLocation(MouseEvent):Point getToolTipText(MouseEvent):String getToolTipText():String getToolTip():ToolTip | Actions:
|