Click here to Skip to main content
15,913,186 members
Home / Discussions / Java
   

Java

 
GeneralRe: Sending file though socket as byte[] Pin
jschell13-Oct-23 7:19
jschell13-Oct-23 7:19 
Question[Solved] Getting and setting a File's all attributes Pin
Valentinor24-Sep-23 22:47
Valentinor24-Sep-23 22:47 
AnswerRe: Getting and setting a File's all attributes Pin
Victor Nijegorodov24-Sep-23 23:04
Victor Nijegorodov24-Sep-23 23:04 
GeneralRe: Getting and setting a File's all attributes Pin
Valentinor24-Sep-23 23:17
Valentinor24-Sep-23 23:17 
Answer[Solution] Re: Getting and setting a File's all attributes Pin
Valentinor25-Sep-23 6:26
Valentinor25-Sep-23 6:26 
QuestionGetting java.lang.RuntimeException: ZeroCode Step execution failed. Details:java.lang.NullP Pin
Member 160852744-Sep-23 5:46
Member 160852744-Sep-23 5:46 
AnswerRe: Getting java.lang.RuntimeException: ZeroCode Step execution failed. Details:java.lang.NullP Pin
Richard Deeming4-Sep-23 21:21
mveRichard Deeming4-Sep-23 21:21 
AnswerRe: Getting java.lang.RuntimeException: ZeroCode Step execution failed. Details:java.lang.NullP Pin
Member 160852744-Sep-23 23:55
Member 160852744-Sep-23 23:55 
GeneralRe: Getting java.lang.RuntimeException: ZeroCode Step execution failed. Details:java.lang.NullP Pin
Member 160852744-Sep-23 23:58
Member 160852744-Sep-23 23:58 
GeneralRe: Getting java.lang.RuntimeException: ZeroCode Step execution failed. Details:java.lang.NullP Pin
Member 160852745-Sep-23 0:09
Member 160852745-Sep-23 0:09 
GeneralRe: Getting java.lang.RuntimeException: ZeroCode Step execution failed. Details:java.lang.NullP Pin
Richard MacCutchan5-Sep-23 0:21
mveRichard MacCutchan5-Sep-23 0:21 
AnswerRe: Getting java.lang.RuntimeException: ZeroCode Step execution failed. Details:java.lang.NullP Pin
jschell5-Sep-23 2:34
jschell5-Sep-23 2:34 
GeneralRe: Getting java.lang.RuntimeException: ZeroCode Step execution failed. Details:java.lang.NullP Pin
Member 160852745-Sep-23 5:11
Member 160852745-Sep-23 5:11 
GeneralRe: Getting java.lang.RuntimeException: ZeroCode Step execution failed. Details:java.lang.NullP Pin
Richard Deeming5-Sep-23 21:23
mveRichard Deeming5-Sep-23 21:23 
GeneralRe: Getting java.lang.RuntimeException: ZeroCode Step execution failed. Details:java.lang.NullP Pin
Richard MacCutchan5-Sep-23 22:43
mveRichard MacCutchan5-Sep-23 22:43 
QuestionWhat is the difference between a static and an instance variable in Java? Pin
Ashley OP7-Aug-23 23:31
Ashley OP7-Aug-23 23:31 
AnswerRe: What is the difference between a static and an instance variable in Java? Pin
Richard MacCutchan7-Aug-23 23:33
mveRichard MacCutchan7-Aug-23 23:33 
QuestionJavaFX multithreading operation changing GUI elements Pin
JohnCodding21-Jul-23 6:37
JohnCodding21-Jul-23 6:37 
AnswerRe: JavaFX multithreading operation changing GUI elements Pin
JudyL_MD21-Jul-23 9:01
JudyL_MD21-Jul-23 9:01 
Where do you get the "Not on FX application thread" error? When trying to launch all those threads or when you try to update the GUI from within one of those threads? If it's the former, I can't help. If it's the latter, you simply need to run your update code on the UI thread. I don't use JavaFX but in my Java / Android, this works fine.

Java
// called from a fragment
Thread worker = new Thread (new Runnable ()
{
    @Override public void run ()
    {
        // stuff to do not on the UI thread
        // ...

        // stuff is done, time to tell the UI
        activity.runOnUiThread (new Runnable ()
        {
            @Override public void run ()
            {
                // code that touches the UI
            }
        });
    }
});
worker.start ();

Be wary of strong drink. It can make you shoot at tax collectors - and miss.
Lazarus Long, "Time Enough For Love" by Robert A. Heinlein


modified 21-Jul-23 15:11pm.

GeneralRe: JavaFX multithreading operation changing GUI elements Pin
JohnCodding21-Jul-23 9:44
JohnCodding21-Jul-23 9:44 
GeneralRe: JavaFX multithreading operation changing GUI elements Pin
JudyL_MD21-Jul-23 10:46
JudyL_MD21-Jul-23 10:46 
AnswerRe: JavaFX multithreading operation changing GUI elements Pin
JohnCodding21-Jul-23 9:49
JohnCodding21-Jul-23 9:49 
QuestionOperator precedence Pin
darek2902198812-Jul-23 5:41
darek2902198812-Jul-23 5:41 
AnswerRe: Operator precedence Pin
Dave Kreskowiak12-Jul-23 6:11
mveDave Kreskowiak12-Jul-23 6:11 
QuestionOperator precedence Pin
darek2902198811-Jul-23 3:06
darek2902198811-Jul-23 3:06 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.