Example #1
0
 /**
  * Start the colouring mode: show a file browser set to the colouring folder.
  *
  * @see FileBrowserDialog
  */
 public static void colouringMode() {
   FileBrowserDialog imageFileBrowser =
       new FileBrowserDialog(
           uiStrings.getString("ImageFileBrowserHeaderText"),
           Settings.colouringFolder,
           ".png",
           Settings.fileBrowserColumns,
           Settings.fileBrowserRows);
   imageFileBrowser.addListener(instance);
   TouchClient.add(imageFileBrowser);
 }
Example #2
0
 /**
  * Show a file browser set to the save folder.
  *
  * @see FileBrowserDialog
  */
 public static void load() {
   FileBrowserDialog saveFileBrowser =
       new FileBrowserDialog(
           uiStrings.getString("SaveFileBrowserHeaderText"),
           Settings.saveFolder,
           SaveFile.SAVE_FILE_EXT,
           Settings.fileBrowserColumns,
           Settings.fileBrowserRows);
   saveFileBrowser.addListener(instance);
   TouchClient.add(saveFileBrowser);
 }