onMouseClicked event doesnt do anything

<Pane onMouseClicked="#selectPath" style="-fx-border-color: red" AnchorPane.topAnchor="4" AnchorPane.rightAnchor="4" AnchorPane.bottomAnchor="4">
<JetBrainsImage pickOnBounds="true" icon="AllIcons.Expui.General.Open" />
</Pane>
<Pane onMouseClicked="#selectPath" style="-fx-border-color: red" AnchorPane.topAnchor="4" AnchorPane.rightAnchor="4" AnchorPane.bottomAnchor="4">
<JetBrainsImage pickOnBounds="true" icon="AllIcons.Expui.General.Open" />
</Pane>
for some strange reason it doesnt do anything when i click on it
3 Replies
JavaBot
JavaBot6mo ago
This post has been reserved for your question.
Hey @Koblížkáč! Please use /close or the Close Post button above when your problem is solved. Please remember to follow the help guidelines. This post will be automatically closed after 300 minutes of inactivity.
TIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here.
Koblížkáč
KoblížkáčOP6mo ago
note that it doesnt work when JetBrainsImage is extracted as well so having
<JetBrainsImage AnchorPane.topAnchor="4" AnchorPane.rightAnchor="4" AnchorPane.bottomAnchor="4" onMouseClicked="#selectPath" icon="AllIcons.Expui.General.Open" />
<JetBrainsImage AnchorPane.topAnchor="4" AnchorPane.rightAnchor="4" AnchorPane.bottomAnchor="4" onMouseClicked="#selectPath" icon="AllIcons.Expui.General.Open" />
doesnt work as well welp nvm solved it xd
JavaBot
JavaBot6mo ago
Post Closed
This post has been closed by <@466650807996252162>.
Want results from more Discord servers?
Add your server