B4J Tutorial Working with JavaFX Scene Builder

Status
Not open for further replies.

Jim Brown

Active Member
Licensed User
Longtime User
Nice information Erel. This answers question I thought about earlier (the Id system).
Can you explain the fundamental difference between _Action and _MouseClicked events?
Is _Action the generic event to use when the user clicks the control via a mouse button?
 

B4JExplorer

Active Member
Licensed User
Longtime User
Nice information Erel. This answers question I thought about earlier (the Id system).
Can you explain the fundamental difference between _Action and _MouseClicked events?
Is _Action the generic event to use when the user clicks the control via a mouse button?

Jim, did you ever get the answer to your question about _Action?
 

Swissmade

Well-Known Member
Licensed User
Longtime User
Hi all,
Generate Member is not showing al possible Events.

I have TextFields in the Layout and give them a ID.
When I generate Members, I miss some Events possible in the TextField.
I only get Action and TextChange.
Mouseclicked I don't see.
Maybe we miss more events here.

Is there a possibility that I miss something???
 

Kintara

Member
Licensed User
Longtime User
Hi all,
Generate Member is not showing al possible Events.

I have TextFields in the Layout and give them a ID.
When I generate Members, I miss some Events possible in the TextField.
I only get Action and TextChange.
Mouseclicked I don't see.
Maybe we miss more events here.

Is there a possibility that I miss something???

I just started using this today and had the same problem.
Then I re-read Erels text
"- Don't confuse the Id under Properties tab (the correct one) with the Id under the Code tab (the wrong one). The code tab should not be used at all."

I removed any text I added to the Code tab and the controls showed up properly when I tried to generate the members.
It may work for you as well

Rob :cool:
 

Swissmade

Well-Known Member
Licensed User
Longtime User
Hi Rob,

I don't use the Code tab .
Only use the ID to set some names.
all the Components are showing up but not all possible events.

Cheers,
Swissmade
 

Swissmade

Well-Known Member
Licensed User
Longtime User
Thanks Erel.
Good feature.
 

Jaime Ramirez

Member
Licensed User
Longtime User
Erel:

I am getting this error:

javafx.fxml.LoadException: No controller specified.

when running this code line:

MainForm.RootPane.LoadLayout("My_Form") 'Load the layout file.

My_Form is the name of the layout.

Any ideas

Jaime
 

maleche

Active Member
Licensed User
Longtime User
I added a Pane and would like to capture the Mouse X,Y position when holding down the left mouse button.

It appears that B4J only captures the last action.

pnlGeo is a Panel.

I've tried:
Sub pnlGeo_MouseMoved (EventData AsMouseEvent)

Do while EventData.PrimaryButtonPressed
Log("Mouse Dwn:" & EventData.X)
Loop
End Sub

But it will not report the EventData.X

Using plnGeo_MousePressed (EventData As MouseEvent) only captures X.

How do I receive the mouse X,Y position while holding down the left mouse button?
Is Panel the correct object?

Thanks in advance.
Doyle
 

stevel05

Expert
Licensed User
Longtime User
You should use the MouseDragged event to capture this.
 
Status
Not open for further replies.
Top