• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JavaFX grid pane listbox sizing

 
jake fowler
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]
 
Campbell Ritchie
Sheriff
Posts: 51453
87
  • 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.
 
John Damien Smith
Ranch Hand
Posts: 299
15
  • 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??


 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic