B4J Tutorial Working with JavaFX Scene Builder

Status
Not open for further replies.

Similar threads

B4J Code Snippet Measure Multiline Text Height
B4J Code Snippet B4XDialog - Add keyboard handling
B4J Library [class] CSS Utils
B4A Code Snippet [B4X] Round clipping panel
B4J Tutorial Raspberry Pi with Java 11

Jim Brown

Active Member
Licensed 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
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
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
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
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
Thanks Erel.
Good feature.
 

Jaime Ramirez

Member
Licensed 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

Member
Licensed 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
You should use the MouseDragged event to capture this.
 
Status
Not open for further replies.
Top