how to store Usability related values (Font, Dimension, Color,…) in properties file using ResoucesBundles
问题 I'm able to fetch the Strings using a properties file and ResourceBundle class using ResourceBundle.getString() . And even able to fetch int and float objects also using: int a = (int) ResourceBundle.getObject("IntKey"); float b = (float) ResourceBundle.getObject("FloatKey"); But I want to know to how to fetch some complex objects like fonts? Font font = (Font) ResourceBundle.getObject("FontKey"); But how to store the Font values in properties file? can I store the object like: new Font(