Click here to Skip to main content
14,929,999 members
Home / Discussions / Java
   

Java

 
AnswerRe: Calling a Method at run time Pin
Richard MacCutchan21-Mar-20 23:29
mveRichard MacCutchan21-Mar-20 23:29 
GeneralRe: Calling a Method at run time Pin
MallardsReach22-Mar-20 0:38
MemberMallardsReach22-Mar-20 0:38 
GeneralRe: Calling a Method at run time Pin
Richard MacCutchan22-Mar-20 0:48
mveRichard MacCutchan22-Mar-20 0:48 
GeneralRe: Calling a Method at run time Pin
MallardsReach22-Mar-20 1:08
MemberMallardsReach22-Mar-20 1:08 
That's done it Smile | :)
Not sure about the first five lines as I'm using Netbeans and it puts those lines in.

But this is the that solved it.
Quote:
A call to a method cannot exist at class level, it must be inside an executable block.


So all I needed was,
private void rbSetQuestionFocusGained(java.awt.event.FocusEvent evt) {
        set();
}

As rbSetQuestion is selected at the start, the set() method is executed.
Now to have a look at lists.
GeneralRe: Calling a Method at run time Pin
Richard MacCutchan22-Mar-20 4:08
mveRichard MacCutchan22-Mar-20 4:08 
GeneralRe: Calling a Method at run time Pin
MallardsReach22-Mar-20 6:00
MemberMallardsReach22-Mar-20 6:00 
QuestionMouse Dragged Event Pin
MallardsReach18-Mar-20 11:15
MemberMallardsReach18-Mar-20 11:15 
AnswerRe: Mouse Dragged Event Pin
Richard MacCutchan18-Mar-20 21:47
mveRichard MacCutchan18-Mar-20 21:47 
GeneralRe: Mouse Dragged Event Pin
MallardsReach18-Mar-20 22:07
MemberMallardsReach18-Mar-20 22:07 
GeneralRe: Mouse Dragged Event Pin
Richard MacCutchan19-Mar-20 0:01
mveRichard MacCutchan19-Mar-20 0:01 
GeneralRe: Mouse Dragged Event Pin
Richard MacCutchan19-Mar-20 0:06
mveRichard MacCutchan19-Mar-20 0:06 
GeneralRe: Mouse Dragged Event Pin
MallardsReach19-Mar-20 0:32
MemberMallardsReach19-Mar-20 0:32 
QuestionBest Practice? Pin
MallardsReach15-Mar-20 9:41
MemberMallardsReach15-Mar-20 9:41 
AnswerRe: Best Practice? Pin
Eddy Vluggen15-Mar-20 13:31
professionalEddy Vluggen15-Mar-20 13:31 
GeneralRe: Best Practice? Pin
MallardsReach15-Mar-20 21:34
MemberMallardsReach15-Mar-20 21:34 
QuestionNetbeans Pin
MallardsReach15-Mar-20 0:13
MemberMallardsReach15-Mar-20 0:13 
AnswerRe: Netbeans Pin
Peter_in_278015-Mar-20 0:24
professionalPeter_in_278015-Mar-20 0:24 
GeneralRe: Netbeans Pin
MallardsReach15-Mar-20 1:09
MemberMallardsReach15-Mar-20 1:09 
AnswerRe: Netbeans Pin
Richard MacCutchan15-Mar-20 2:22
mveRichard MacCutchan15-Mar-20 2:22 
GeneralRe: Netbeans Pin
MallardsReach15-Mar-20 2:55
MemberMallardsReach15-Mar-20 2:55 
GeneralRe: Netbeans Pin
Richard MacCutchan15-Mar-20 3:14
mveRichard MacCutchan15-Mar-20 3:14 
GeneralRe: Netbeans Pin
MallardsReach15-Mar-20 3:35
MemberMallardsReach15-Mar-20 3:35 
GeneralRe: Netbeans Pin
Richard MacCutchan15-Mar-20 3:49
mveRichard MacCutchan15-Mar-20 3:49 
QuestionMy First Java Pin
MallardsReach12-Mar-20 10:07
MemberMallardsReach12-Mar-20 10:07 
AnswerRe: My First Java Pin
Richard MacCutchan12-Mar-20 23:23
mveRichard MacCutchan12-Mar-20 23:23 

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.