Hello,
i'm looking for a small framework to have all my messages stored in a common way. I'll give an example for better understanding.
In a part of my code, in a particular JFrame i've an alert something like this:
JOptionPane.showMessageDialog(null, "Error, you must provide an integer value", "ERROR", JOptionPane.ERROR_MESSAGE);
So, this string: "Error, you must provide an integer value". I would like to have it in a particular "log", or something like that, so i can do something like this:
JOptionPane.showMessageDialog(null, Messages.getMessage(Messages.INTEGER_VALUE), "ERROR", JOptionPane.ERROR_MESSAGE);
Hard to explain, hope you can help me.
Thanks!