• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Did you use ResourceBundle?

 
Alexandre Baldo
Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I was wodering if it is necessary to use ResourceBundle to build the GUI and messages displayed to users...
What did you guys do? Hardcoded the messages?
Ex.:
JOptionPane.showMessageDialog(null, "What's UP!")???
OR
JOptionPane.showMessageDialog(null, resourceBundle.getString("key"))???

Thanks!

Baldo.
 
Alex Belisle Turcot
Ranch Hand
Posts: 516
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I did the following:



Regards,
Alex
[ August 30, 2008: Message edited by: Alex Belisle Turcot ]
 
Gilles Marceau
Ranch Hand
Posts: 78
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

the ResourceBundle can be usefull if your application has to work in
several languages. If your assignment don't have this requirement, i think
you can do as proposed by Alex, or you can directly hardcode the text
in the code (but this is not something to do at the job) :
JOptionPane.showMessageDialog(null, "What's UP!")

Gilles
 
Jeffry Kristianto Yanuar
Ranch Hand
Posts: 759
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I hard-coded it.

Jeffry Kristianto Yanuar
Java Instructor
SCJP 5.0
SCJA
SCJD (Working on UrlyBird 1.3.2) --> testing and documenting the assignment
 
Alexandre Baldo
Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank's for the answers guys!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic