SDL/Swing Projects have a resources directory with the following structure:
Path | Description |
|---|---|
/resources/ | The resources root |
/resources/ui_global.properties | A config file with the required setting of controller_package=(name of the package containing all controllers) |
/resources/components/ | Directory for SDL UI definitions used by UI.build(String componentName) and UI.startApplication(String title, String componentName). Note: "name" does not include the .sdl extension. |
/resources/icons/ | A directory for images accessed via the "icon" attribute on components such as buttons and via UI.getIcon(String name) |
/resources/patterns/ | A directory for images used for tiled backgrounds accessed via UI.getPattern(String name) |
/resources/styles/ | Root for style related files |
/resources/styles/paints.sdl | A file containing definitions for colors, patterns and gradients |
/resources/styles/style_parts.sdl | A file containing definitions for fonts, borders and icons |
/resources/styles/styles.sdl | A file containing style definitions |
See Styles for information about defining paints, style parts and styles.