This week's book giveaways are in the Scala and Android forums.
We're giving away four copies each of Machine Learning Systems: Designs that scale and Xamarin in Action: Creating native cross-platform mobile apps and have the authors on-line!
See this thread and this one for details.
Win a copy of Machine Learning Systems: Designs that scale this week in the Scala forum
or Xamarin in Action: Creating native cross-platform mobile apps in the Android forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

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: 59108
180
  • 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??


 
If you're gonna buy things, buy this thing and I get a fat kickback:
Rocket Oven Kickstarter - from the trailboss
https://coderanch.com/t/695773/Rocket-Oven-Kickstarter-trailboss
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!