Share My Creation Antares skin and text mask (Java 8 and B4J v 3.50 Beta 1)

jReflection (1.20)
javaObject (2:02)

Mask functions:
Alignment: CENTER, CENTER_LEFT, CENTER_RIGHT
BackColor (TXC as Paint)
BorderColor (TXC as Paint)
TextColor (TXC as Paint)
Editable(Ed As Boolean)
Enabled(En As Boolean)
SetTag(tg As Object)
Text(t As String)
TollTipText(ttt As String)
RequestFocus
Visible(vsb As Boolean)
NewMask(m As String)

Returns:
isEnabled As Boolean
isEditable As Boolean
Node As Node
GetTag As Object
FormattedText As String
ClipText As String
isVisible As Boolean
obtain_Mask As String

all suggestions and help for improvement will be welcome
 

Attachments

  • Antares.jpg
    Antares.jpg
    90.6 KB · Views: 4,546
  • Antares.zip
    20.9 KB · Views: 456

juangtju

Member
excuse me but i try to compile this code an gave me a error, you could help me with that, i are interested in this project, thanks

B4X:
tmask._measuretext (java line: 689)
java.lang.ClassNotFoundException: javafx$scene$text$TextBuilder
    at anywheresoftware.b4j.object.JavaObject.getCorrectClassName(JavaObject.java:289)
    at anywheresoftware.b4j.object.JavaObject.InitializeStatic(JavaObject.java:75)
    at b4j.example.tmask._measuretext(tmask.java:689)
    at b4j.example.tmask._setcaret_pos(tmask.java:884)
    at b4j.example.tmask._smask(tmask.java:963)
    at b4j.example.tmask._initialize(tmask.java:343)
    at b4j.example.main._appstart(main.java:90)
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.base/java.lang.reflect.Method.invoke(Method.java:566)
    at anywheresoftware.b4a.BA.raiseEvent2(BA.java:109)
    at anywheresoftware.b4a.BA.raiseEvent(BA.java:96)
    at b4j.example.main.start(main.java:37)
    at javafx.graphics/com.sun.javafx.application.LauncherImpl.lambda$launchApplication1$9(LauncherImpl.java:846)
    at javafx.graphics/com.sun.javafx.application.PlatformImpl.lambda$runAndWait$12(PlatformImpl.java:455)
    at javafx.graphics/com.sun.javafx.application.PlatformImpl.lambda$runLater$10(PlatformImpl.java:428)
    at java.base/java.security.AccessController.doPrivileged(Native Method)
    at javafx.graphics/com.sun.javafx.application.PlatformImpl.lambda$runLater$11(PlatformImpl.java:427)
    at javafx.graphics/com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:96)
    at javafx.graphics/com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
    at javafx.graphics/com.sun.glass.ui.win.WinApplication.lambda$runLoop$3(WinApplication.java:174)
    at java.base/java.lang.Thread.run(Thread.java:834)
 
Top