code_junkie

how to localise jcolorchooser

Nov 12th, 2011
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. String[] choises = new String[];
  2. choises[0] = bundle.getString("yes");
  3. choises[1] = bundle.getString("no");
  4. choises[2] = bundle.getString("cancel");
  5.  
  6. String message = bundle.getString("messageText")
  7.  
  8. JOptionPane optionPane = new JOptionPane(message, JOptionPane.WARNING_MESSAGE,
  9. JOptionPane.YES_NO_CANCEL_OPTION, null, choises);
Add Comment
Please, Sign In to add comment