B4J Library JBetterDialogs

Hi Guys, Im pleased, to introduce jBetterDialog v1.0.

The zip include a demo and the library and a text file to translate it in other languages.

It's already translated in 5 languages ( EN, IT, DE, FR, ES ).

Author OpenJFX
Author Marco Jakob
Modified as library for B4J by Giuseppe Salvi


Any comment will be appreciated.
jBetterDialog
Author:
Giuseppe Salvi
Version: 1

  • Methods:
    • Initialize (EventName As String)
      Initialize Object
    • ShowConfirm (message As String, info As String, title As String) As Int
      Show Confirm Dialog
      Yes = -1
      No = -2
      Cancel = -3
      Close Dialog = 0
    • ShowConfirmWithOptions (message As String, info As String, title As String) As Int
      Show Confirm Dialog With Options
      Ok = -1
      No = -2
      Close Dialog = 0
    • ShowError (message As String, info As String, title As String)
      Show Error Dialog
    • ShowError2 (message As String, title As String)
      Show Error Dialog
    • ShowErrorWithException (message As String, info As String, title As String, ex As String)
      Show Error Dialog With Exception
    • ShowErrorWithException2 (message As String, title As String, ex As String)
      Show Error Dialog With Exception
    • ShowInformation (message As String, info As String, title As String)
      Show information dialog
    • ShowInformation2 (message As String, title As String, buttonLabel As String)
      Show Information Dialog
    • ShowInput (message As String, info As String, title As String) As String
      Show Input dialog
    • ShowInputWithChoices (message As String, info As String, title As String, obj() As Object) As Object
      Show Input Dialog With Choices
    • ShowWarning (message As String, info As String, title As String)
      Show Warning Dialog
    • ShowWarning2 (message As String, title As String, buttonLabel As String)
      Show Warning Dialog
    • showLogin As String
      Show Login dialog
    Properties:
    • SetOwner As Form [write only]
      Anchor the Dialogs in the MainForm
 

Attachments

  • jBetterDialogs v1.0.zip
    104.9 KB · Views: 848
  • Dialogs-ScreenShots_02.png
    Dialogs-ScreenShots_02.png
    53.4 KB · Views: 1,853
  • Dialogs-ScreenShots_01.jpg
    Dialogs-ScreenShots_01.jpg
    182.5 KB · Views: 1,606
  • jBetterDialogs v1.1.zip
    105 KB · Views: 911
  • JBetterDialogLibrary_v1.20.zip
    101.1 KB · Views: 1,250
Last edited:

lonleystar

Well-Known Member
Licensed User
Longtime User
Hi Giusepp, nice work.

I'm trying it, but how to translate in other languages?
You said before: "about to use other language, in to the zip is a text file u have to translate it in your language and upload".
The text file "To Translate.txt" is to change the name? and to upload where?

Many thanks for your help in this.
Hi mjas, download the attached file and translate it in your language:

Use Notepad From Window

Open the file with notepad translate

after save it by SaveAs and choose UTF-8 save it and send to me so I'll include in to the library

P.S.

the lines U've to change is only the characters in bold :

common.ok.btn = Ok
common.cancel.btn = Cancel
common.yes.btn = Yes
common.no.btn = No
common.close.btn = Close
common.detail.button = Details...
common.copy.button = Copy To ClipBoard




exception.dialog.title = Exception Details

exception.dialog.label = The exception stacktrace was:

#add for the login dialog

username.prompt.text = UserName:

password.prompt.text = Password:
 

Attachments

  • dialog-resources.properties.txt
    2.4 KB · Views: 335

ValDog

Active Member
Licensed User
Longtime User
Like BPak, I'm still not seeing the last 4 buttons working - they still crash the demo app.
 

rwblinn

Well-Known Member
Licensed User
Longtime User
Hi,

when running the demo app (v1.1), the app crashes with following errorlog - I am using Java 8u25. Is anything missing?
B4X:
Program started.
main._error_mouseclicked (java line: 112)
java.lang.NoSuchMethodError: com.sun.javafx.css.StyleManager.getPseudoclassMask(Ljava/lang/String;)J
	at anywheresoftware.b4a.giuseppe.salvi.dialogs.DialogWrapper$FXDialog$RootPane.<clinit>(DialogWrapper.java:1381)
	at anywheresoftware.b4a.giuseppe.salvi.dialogs.DialogWrapper$FXDialog.<init>(DialogWrapper.java:1201)
	at anywheresoftware.b4a.giuseppe.salvi.dialogs.DialogWrapper$FXDialog.<init>(DialogWrapper.java:1157)
	at anywheresoftware.b4a.giuseppe.salvi.dialogs.DialogWrapper$DialogTemplate.<init>(DialogWrapper.java:682)
	at anywheresoftware.b4a.giuseppe.salvi.dialogs.DialogWrapper.showSimpleContentDialog(DialogWrapper.java:556)
	at anywheresoftware.b4a.giuseppe.salvi.dialogs.DialogWrapper.showErrorDialog(DialogWrapper.java:375)
	at anywheresoftware.b4a.giuseppe.salvi.dialogs.DialogWrapper.showErrorDialog(DialogWrapper.java:365)
	at anywheresoftware.b4a.giuseppe.salvi.dialogs.BetterDialogsWrapper.ShowError(BetterDialogsWrapper.java:153)
	at b4j.example.main._error_mouseclicked(main.java:112)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:483)
	at anywheresoftware.b4a.BA.raiseEvent2(BA.java:93)
	at anywheresoftware.b4a.BA.raiseEvent(BA.java:84)
	at anywheresoftware.b4j.objects.NodeWrapper$1.handle(NodeWrapper.java:59)
	at anywheresoftware.b4j.objects.NodeWrapper$1.handle(NodeWrapper.java:1)
	at com.sun.javafx.event.CompositeEventHandler.dispatchBubblingEvent(CompositeEventHandler.java:86)
	at com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(EventHandlerManager.java:238)
	at com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(EventHandlerManager.java:191)
	at com.sun.javafx.event.CompositeEventDispatcher.dispatchBubblingEvent(CompositeEventDispatcher.java:59)
	at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:58)
	at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
	at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:56)
	at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
	at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:56)
	at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
	at com.sun.javafx.event.EventUtil.fireEventImpl(EventUtil.java:74)
	at com.sun.javafx.event.EventUtil.fireEvent(EventUtil.java:54)
	at javafx.event.Event.fireEvent(Event.java:198)
	at javafx.scene.Scene$ClickGenerator.postProcess(Scene.java:3437)
	at javafx.scene.Scene$ClickGenerator.access$7900(Scene.java:3365)
	at javafx.scene.Scene$MouseHandler.process(Scene.java:3733)
	at javafx.scene.Scene$MouseHandler.access$1500(Scene.java:3452)
	at javafx.scene.Scene.impl_processMouseEvent(Scene.java:1728)
	at javafx.scene.Scene$ScenePeerListener.mouseEvent(Scene.java:2461)
	at com.sun.javafx.tk.quantum.GlassViewEventHandler$MouseEventNotification.run(GlassViewEventHandler.java:348)
	at com.sun.javafx.tk.quantum.GlassViewEventHandler$MouseEventNotification.run(GlassViewEventHandler.java:273)
	at java.security.AccessController.doPrivileged(Native Method)
	at com.sun.javafx.tk.quantum.GlassViewEventHandler.handleMouseEvent(GlassViewEventHandler.java:382)
	at com.sun.glass.ui.View.handleMouseEvent(View.java:553)
	at com.sun.glass.ui.View.notifyMouse(View.java:925)
	at com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
	at com.sun.glass.ui.win.WinApplication.lambda$null$141(WinApplication.java:102)
	at com.sun.glass.ui.win.WinApplication$$Lambda$37/24247422.run(Unknown Source)
	at java.lang.Thread.run(Thread.java:745)
 

lonleystar

Well-Known Member
Licensed User
Longtime User
Hi,

when running the demo app (v1.1), the app crashes with following errorlog - I am using Java 8u25. Is anything missing?
B4X:
Program started.
main._error_mouseclicked (java line: 112)
java.lang.NoSuchMethodError: com.sun.javafx.css.StyleManager.getPseudoclassMask(Ljava/lang/String;)J
    at anywheresoftware.b4a.giuseppe.salvi.dialogs.DialogWrapper$FXDialog$RootPane.<clinit>(DialogWrapper.java:1381)
    at anywheresoftware.b4a.giuseppe.salvi.dialogs.DialogWrapper$FXDialog.<init>(DialogWrapper.java:1201)
    at anywheresoftware.b4a.giuseppe.salvi.dialogs.DialogWrapper$FXDialog.<init>(DialogWrapper.java:1157)
    at anywheresoftware.b4a.giuseppe.salvi.dialogs.DialogWrapper$DialogTemplate.<init>(DialogWrapper.java:682)
    at anywheresoftware.b4a.giuseppe.salvi.dialogs.DialogWrapper.showSimpleContentDialog(DialogWrapper.java:556)
    at anywheresoftware.b4a.giuseppe.salvi.dialogs.DialogWrapper.showErrorDialog(DialogWrapper.java:375)
    at anywheresoftware.b4a.giuseppe.salvi.dialogs.DialogWrapper.showErrorDialog(DialogWrapper.java:365)
    at anywheresoftware.b4a.giuseppe.salvi.dialogs.BetterDialogsWrapper.ShowError(BetterDialogsWrapper.java:153)
    at b4j.example.main._error_mouseclicked(main.java:112)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:483)
    at anywheresoftware.b4a.BA.raiseEvent2(BA.java:93)
    at anywheresoftware.b4a.BA.raiseEvent(BA.java:84)
    at anywheresoftware.b4j.objects.NodeWrapper$1.handle(NodeWrapper.java:59)
    at anywheresoftware.b4j.objects.NodeWrapper$1.handle(NodeWrapper.java:1)
    at com.sun.javafx.event.CompositeEventHandler.dispatchBubblingEvent(CompositeEventHandler.java:86)
    at com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(EventHandlerManager.java:238)
    at com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(EventHandlerManager.java:191)
    at com.sun.javafx.event.CompositeEventDispatcher.dispatchBubblingEvent(CompositeEventDispatcher.java:59)
    at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:58)
    at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
    at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:56)
    at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
    at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:56)
    at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
    at com.sun.javafx.event.EventUtil.fireEventImpl(EventUtil.java:74)
    at com.sun.javafx.event.EventUtil.fireEvent(EventUtil.java:54)
    at javafx.event.Event.fireEvent(Event.java:198)
    at javafx.scene.Scene$ClickGenerator.postProcess(Scene.java:3437)
    at javafx.scene.Scene$ClickGenerator.access$7900(Scene.java:3365)
    at javafx.scene.Scene$MouseHandler.process(Scene.java:3733)
    at javafx.scene.Scene$MouseHandler.access$1500(Scene.java:3452)
    at javafx.scene.Scene.impl_processMouseEvent(Scene.java:1728)
    at javafx.scene.Scene$ScenePeerListener.mouseEvent(Scene.java:2461)
    at com.sun.javafx.tk.quantum.GlassViewEventHandler$MouseEventNotification.run(GlassViewEventHandler.java:348)
    at com.sun.javafx.tk.quantum.GlassViewEventHandler$MouseEventNotification.run(GlassViewEventHandler.java:273)
    at java.security.AccessController.doPrivileged(Native Method)
    at com.sun.javafx.tk.quantum.GlassViewEventHandler.handleMouseEvent(GlassViewEventHandler.java:382)
    at com.sun.glass.ui.View.handleMouseEvent(View.java:553)
    at com.sun.glass.ui.View.notifyMouse(View.java:925)
    at com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
    at com.sun.glass.ui.win.WinApplication.lambda$null$141(WinApplication.java:102)
    at com.sun.glass.ui.win.WinApplication$$Lambda$37/24247422.run(Unknown Source)
    at java.lang.Thread.run(Thread.java:745)


Hi rvblin, it doesnt work with 8u25. Uninstall jdk 8u25 to get it work.
 

maleche

Active Member
Licensed User
Longtime User
Great Job with jBetterDialog!

any chance of adding a default input string for the .ShowInput?
maybe "jb.ShowInput(message as String, info as String, title as String, default as String) As String
THANKS!
 

touchsquid

Active Member
Licensed User
Longtime User
I second the request for a default input string. Otherwise this is a great library!
 

touchsquid

Active Member
Licensed User
Longtime User
I tried your library, and although it worked fine on a PC, it crashed when I tried my app on a mac.

I found dialogs very easy to write in B4J, so created my own. This is the code for an input dialog with predefined value:

Code module is called InDialog

B4X:
'Static code module
Sub Process_Globals
    Private fx As JFX
       Private frm As Form
    Public Confirm As Boolean
    Private ID_Title As Label
    Private ID_Message As Label
    Private ID_Value As TextField
    Private ID_OK As Button
    Private ID_Cancel As Button
    Public InText As String
End Sub

Sub Show ( Title As String, message As String, value As String)
    frm.Initialize("frm",-1, -1)
    frm.RootPane.LoadLayout("ID")

    ID_Title.Text = Title
    ID_Message.Text = message
    ID_Value.Text = value
    Try
        frm.Icon = fx.LoadImage(File.DirAssets, "help.png")
    Catch
        Log(LastException.message)
    End Try
    frm.Resizable = False   
    frm.SetFormStyle("UTILITY")
    Confirm = False
    frm.ShowAndWait
End Sub

Sub ID_Cancel_MouseClicked (EventData As MouseEvent)
    InText = ""
    frm.close
End Sub
Sub ID_OK_MouseClicked (EventData As MouseEvent)
    InText = ID_Value.Text
    frm.close
End Sub

The layout has two buttons and a textfield. The dialog will open in a new window and wait for input.

Usage:
B4X:
InDialog.show("Your Title", "Your Message", "Default Text")
            Dim newtext As String = InDialog.InText

You can use this basic method to create more complex dialogs. I have not tried to make them into a library as I'm still tweaking.
 

lonleystar

Well-Known Member
Licensed User
Longtime User
I tried your library, and although it worked fine on a PC, it crashed when I tried my app on a mac.

I found dialogs very easy to write in B4J, so created my own. This is the code for an input dialog with predefined value:

Code module is called InDialog

B4X:
'Static code module
Sub Process_Globals
    Private fx As JFX
       Private frm As Form
    Public Confirm As Boolean
    Private ID_Title As Label
    Private ID_Message As Label
    Private ID_Value As TextField
    Private ID_OK As Button
    Private ID_Cancel As Button
    Public InText As String
End Sub

Sub Show ( Title As String, message As String, value As String)
    frm.Initialize("frm",-1, -1)
    frm.RootPane.LoadLayout("ID")

    ID_Title.Text = Title
    ID_Message.Text = message
    ID_Value.Text = value
    Try
        frm.Icon = fx.LoadImage(File.DirAssets, "help.png")
    Catch
        Log(LastException.message)
    End Try
    frm.Resizable = False  
    frm.SetFormStyle("UTILITY")
    Confirm = False
    frm.ShowAndWait
End Sub

Sub ID_Cancel_MouseClicked (EventData As MouseEvent)
    InText = ""
    frm.close
End Sub
Sub ID_OK_MouseClicked (EventData As MouseEvent)
    InText = ID_Value.Text
    frm.close
End Sub

The layout has two buttons and a textfield. The dialog will open in a new window and wait for input.

Usage:
B4X:
InDialog.show("Your Title", "Your Message", "Default Text")
            Dim newtext As String = InDialog.InText

You can use this basic method to create more complex dialogs. I have not tried to make them into a library as I'm still tweaking.


Hi, I've no Mac and I dont know if it work, but on Ubuntu yes.
 

specci48

Well-Known Member
Licensed User
Longtime User
Hi lonleystar,

I played a little bit with your great library and just found out, why some dialogs crash with the error:

java.lang.IllegalArgumentException: Invalid URL: Invalid URL or resource not found

Checking the sourcecode, you are accessing images written with a small i (e.g. warningicon) but looking into the resource directroy, those images are written with a capital I (e.g. warningIcon).

When I renamed all the images within the resource directory (using a small i) everything works fine for me.

best regards
specci48
 

Attachments

  • SourceCode.jpg
    SourceCode.jpg
    88.2 KB · Views: 309
  • Resources.jpg
    Resources.jpg
    48.7 KB · Views: 299

lonleystar

Well-Known Member
Licensed User
Longtime User
Hi lonleystar,

I played a little bit with your great library and just found out, why some dialogs crash with the error:

java.lang.IllegalArgumentException: Invalid URL: Invalid URL or resource not found

Checking the sourcecode, you are accessing images written with a small i (e.g. warningicon) but looking into the resource directroy, those images are written with a capital I (e.g. warningIcon).

When I renamed all the images within the resource directory (using a small i) everything works fine for me.

best regards
specci48

Hi specci48, thank U to report this issue.
 

specci48

Well-Known Member
Licensed User
Longtime User
Hi lonleystar,

since my patched library works fine using jdk 7 (maybe you should update your library post with a corrected version), I wonder why it crashes using jdk 8.
Is there any chance to get it run under an 'up to date' jdk? Or must we call this library as "deprecated"?


best regards
specci48
 

aidymp

Well-Known Member
Licensed User
Longtime User
Hi these look great just built it all into my app and its not compatible with 8.40 the app works in the IDE but when compiled, it just closes with no explanation! i have removed the dialogs and my app is working again! any chance of an update??

Thanks

Aidy
 

Phayao

Active Member
Licensed User
Longtime User
sorry to ask also a stupid question - I cannot make the demo work either:

The demo can be compiled but when I click on any button, it crashes:

Program started.
java.lang.RuntimeException: java.lang.NoSuchMethodError: com.sun.javafx.css.StyleManager.getPseudoclassMask(Ljava/lang/String;)J
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:114)
at anywheresoftware.b4a.ShellBA.raiseEvent2(ShellBA.java:82)
at anywheresoftware.b4a.BA.raiseEvent(BA.java:84)
at anywheresoftware.b4j.objects.NodeWrapper$1.handle(NodeWrapper.java:64)
at anywheresoftware.b4j.objects.NodeWrapper$1.handle(NodeWrapper.java:1)
at com.sun.javafx.event.CompositeEventHandler.dispatchBubblingEvent(CompositeEventHandler.java:86)
at com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(EventHandlerManager.java:238)
at com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(EventHandlerManager.java:191)
at com.sun.javafx.event.CompositeEventDispatcher.dispatchBubblingEvent(CompositeEventDispatcher.java:59)
at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:58)
at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:56)
at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:56)
at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
at com.sun.javafx.event.EventUtil.fireEventImpl(EventUtil.java:74)
at com.sun.javafx.event.EventUtil.fireEvent(EventUtil.java:54)
at javafx.event.Event.fireEvent(Event.java:198)
at javafx.scene.Scene$ClickGenerator.postProcess(Scene.java:3437)
at javafx.scene.Scene$ClickGenerator.access$7900(Scene.java:3365)
at javafx.scene.Scene$MouseHandler.process(Scene.java:3733)
at javafx.scene.Scene$MouseHandler.access$1500(Scene.java:3452)
at javafx.scene.Scene.impl_processMouseEvent(Scene.java:1728)
at javafx.scene.Scene$ScenePeerListener.mouseEvent(Scene.java:2461)
at com.sun.javafx.tk.quantum.GlassViewEventHandler$MouseEventNotification.run(GlassViewEventHandler.java:348)
at com.sun.javafx.tk.quantum.GlassViewEventHandler$MouseEventNotification.run(GlassViewEventHandler.java:273)
at java.security.AccessController.doPrivileged(Native Method)
at com.sun.javafx.tk.quantum.GlassViewEventHandler.handleMouseEvent(GlassViewEventHandler.java:382)
at com.sun.glass.ui.View.handleMouseEvent(View.java:553)
at com.sun.glass.ui.View.notifyMouse(View.java:925)
at com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
at com.sun.glass.ui.win.WinApplication.lambda$null$141(WinApplication.java:102)
at com.sun.glass.ui.win.WinApplication$$Lambda$38/2075313.run(Unknown Source)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.NoSuchMethodError: com.sun.javafx.css.StyleManager.getPseudoclassMask(Ljava/lang/String;)J
at anywheresoftware.b4a.giuseppe.salvi.dialogs.DialogWrapper$FXDialog$RootPane.<clinit>(DialogWrapper.java:1381)
at anywheresoftware.b4a.giuseppe.salvi.dialogs.DialogWrapper$FXDialog.<init>(DialogWrapper.java:1201)
at anywheresoftware.b4a.giuseppe.salvi.dialogs.DialogWrapper$FXDialog.<init>(DialogWrapper.java:1157)
at anywheresoftware.b4a.giuseppe.salvi.dialogs.DialogWrapper$DialogTemplate.<init>(DialogWrapper.java:682)
at anywheresoftware.b4a.giuseppe.salvi.dialogs.DialogWrapper.showSimpleContentDialog(DialogWrapper.java:556)
at anywheresoftware.b4a.giuseppe.salvi.dialogs.DialogWrapper.showWarningDialog(DialogWrapper.java:333)
at anywheresoftware.b4a.giuseppe.salvi.dialogs.DialogWrapper.showWarningDialog(DialogWrapper.java:323)
at anywheresoftware.b4a.giuseppe.salvi.dialogs.BetterDialogsWrapper.ShowWarning(BetterDialogsWrapper.java:147)
at b4j.example.main._warning_mouseclicked(main.java:230)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:483)
at anywheresoftware.b4a.shell.Shell.runMethod(Shell.java:563)
at anywheresoftware.b4a.shell.Shell.raiseEventImpl(Shell.java:221)
at anywheresoftware.b4a.shell.Shell.raiseEvent(Shell.java:156)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:483)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:93)
... 33 more

Maybe someone has a good idea what's going on here,

Thanks a lot,

Chris
 

Phayao

Active Member
Licensed User
Longtime User
Thank you, I suspected something like that, maybe I go back to jdk 7
Chris
 

aidymp

Well-Known Member
Licensed User
Longtime User
Can the authors update there posts please, as I too wasted a lot of time - adding these dialogues, only to find that there where not working with Java 8! I ended up using the one you suggested Erel works really nice, but we need some clarification as were going to fall for it with other libs!

Thanks

Aidy
 

lonleystar

Well-Known Member
Licensed User
Longtime User
Can the authors update there posts please, as I too wasted a lot of time - adding these dialogues, only to find that there where not working with Java 8! I ended up using the one you suggested Erel works really nice, but we need some clarification as were going to fall for it with other libs!

Thanks

Aidy
Hi aidymp, Im working on it to fix and implement new dialogs.
 

ThRuST

Well-Known Member
Licensed User
Longtime User
Source code creashes on JRE v1.8.0_111 with Windows 10 Pro x64. I think this library looks promising but needs to be updated. Thanks
 
Top