Results 1 to 6 of 6
- 06-21-2011, 11:23 AM #1
Member
- Join Date
- Jun 2011
- Posts
- 2
- Rep Power
- 0
Help! set dinamically visibility of panels
Hello, I am writing because I have problems to manage the visibility of some components of my application.
I'm doing a web application and I have many panels.
I wrote this code in an attempt to control the visibility of the panels in response to an event from the user. Place the code:
The idea is to create a sequence containing all panels,Java FX Code:var selectedPanel = panelHome; function gestione():Void{ {selectedPanel}.visible=true; var pannelli=[panelHome,panelChiSiamo,panelContatti,panelDestinazioni,panelDinamico]; var sizepannelli=(sizeof pannelli); var pannelli2=pannelli; delete selectedPanel from pannelli2; for (i in [0..sizepannelli] ) { {pannelli2[i]}.visible=false; } }; function chi_siamoOnMouseClicked(event: javafx.scene.input.MouseEvent): Void { selectedPanel=panelChiSiamo; gestione(); }
putting the visibility of selectedPanel = true, remove it from the sequence, and then set the visibility = false to all other panels.
The selected panel is changed at the click of a button.
would know someone help me?
Thanks in advance
StefaniaLast edited by DarrylBurke; 06-21-2011 at 11:49 AM. Reason: Added code tags
-
How does your question relate to Java? You've posted some code but it doesn't look like Java code that I've seen. Could you be confusing Java with JavaScript? You know of course that they're about as related as ham is to hamster.
Last edited by Fubarable; 06-21-2011 at 09:06 PM. Reason: wrong
- 06-21-2011, 06:49 PM #3
How to Ask Questions the Smart Way
Static Void Games - Play indie games, learn from game tutorials and source code, upload your own games!
- 06-21-2011, 07:19 PM #4
Member
- Join Date
- Jun 2011
- Posts
- 2
- Rep Power
- 0
is JavaFX Script language!
- 06-21-2011, 07:31 PM #5
-
Similar Threads
-
Need some help with panels inside panels
By kakefjes in forum AWT / SwingReplies: 0Last Post: 03-17-2011, 11:36 AM -
Java Visibility
By efozdel in forum New To JavaReplies: 8Last Post: 07-07-2010, 03:36 AM -
[SOLVED] JButton actionlistener, if statement, JLabel visibility
By JonoF in forum New To JavaReplies: 2Last Post: 04-19-2009, 05:39 AM -
Newbie help on visibility and static final
By tornado in forum New To JavaReplies: 3Last Post: 11-28-2008, 01:32 AM -
How to create object dinamically and call methods.
By Gelembjuk in forum New To JavaReplies: 8Last Post: 10-26-2008, 09:28 AM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks