Home Label
EJS Elements, Interface, Label PDF Print E-mail
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:

 PropertyFormatExampleFunction
  TextString"Value"settext(String):void
getText():String
  ImageFile"images/lab.jpg" 
  AlignmentAlignmentLEFT 
  SizeCoordinate"200,200"setSize(int,int:void
setSize(Dimension):void
getSize():Dimension
  BackgroundColor"255,255,255,255"setBackground(color)
getBackground():Color
  ForegroundColor"0,0,0,255"setForeground(color)
getForeground():Color
  FontFont"Arial,Plain,12"setFont(Font):Void
getFont():Font
  TooltipString"Consult help."getToolTipText(String):void
getToolTipLocation(MouseEvent):Point
getToolTipText(MouseEvent):String
getToolTipText():String
getToolTip():ToolTip


Actions:

 Action
  OnPress
  OnRelease
  Action


 
Copyright © 2010 gPhysics. All Rights Reserved.
Joomla! is Free Software released under the GNU/GPL License.