Win a copy of Learning OpenStack Networking: Build a solid foundation in virtual networking technologies for OpenStack-based clouds this week in the Cloud/Virtualization forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Knute Snortum
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Ganesh Patekar
  • Stephan van Hulst
  • Pete Letkeman
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Ron McLeod
  • Vijitha Kumara

JavaFX grid pane listbox sizing  RSS feed

 
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello All!! I am having some issues with JavaFX. I am having trouble sizing list boxes in a gridpane. Is it possible?? I have included a program I started and I'm am trying to get going. I am trying to create a restaurant app. I will include what the outcome of the program should represent in an attachment. Can someone please help me???


solution.png
[Thumbnail for solution.png]
 
Marshal
Posts: 60124
188
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think this discussion would fit better in our JavaFX forum.
 
jake fowler
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you for moving it. I did not realize there was a specific forum for JavaFX.
 
Ranch Hand
Posts: 374
24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I advise you define your UI layout for this using SceneBuilder rather than in code:
http://gluonhq.com/open-source/scene-builder/

As an aside which is pretty irrelevant to the actual question you asked, this is a somewhat strange UI. How could somebody order multiple appetizers from a drop-down combobox? I guess, you could add an appetizer from the list every time the selected value in the combo box changes, but then there is no way to maintain the list in the UI that I can see. If the user changed their mind about the appetizers they wanted (e.g. no remove/replace style of functionality). Perhaps they could select items in the listbox and use the delete key on the keyboard to remove things they don't want. It would seem to me that for a waiter oriented order system, a touch-centric interface would be a better design, then the waiter could just directly enter the order at the table as they received it, rather than taking the order in paper or remembering it in their head and going back to a console and entering the info into a mouse/keyboard based interface.
 
jake fowler
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have no idea how to use scene builder and don't have time to learn at this point unless it is really easy. This assignment is due in 1 week. I wish I new how. I created an applet very quickly using scene builder just don't know how to control it. I'm trying to add whats selected from the combo box to the list box. I keep getting errors. Could someone tell me what I'm doing wrong??


 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!