Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Aligning text in JOptionPane  RSS feed

 
Justin Ray
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i have this program:


the output is correct, but i want everything to be neatly aligned in the GUI, any help?
 
Michael Dunn
Ranch Hand
Posts: 4632
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
have you thougth about using a JTable, then adding the table to the optionPane
 
Justin Ray
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
ah, thanks for your reply, i will look that up in the book, we havent used JTable in class yet, thanks!
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!