FolderSelectScreen.java 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  1. /*
  2. * Copyright (C) 2015 iZc
  3. *
  4. * This program is free software: you can redistribute it and/or modify
  5. * it under the terms of the GNU General Public License as published by
  6. * the Free Software Foundation, either version 3 of the License, or
  7. * (at your option) any later version.
  8. *
  9. * This program is distributed in the hope that it will be useful,
  10. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. * GNU General Public License for more details.
  13. *
  14. * You should have received a copy of the GNU General Public License
  15. * along with this program. If not, see <http://www.gnu.org/licenses/>.
  16. */
  17. package de.nplusc.izc.InstallPak;
  18. /**
  19. *
  20. * @author LH
  21. */
  22. public class FolderSelectScreen extends javax.swing.JFrame
  23. {
  24. /**
  25. * Creates new form FolderSelectScreen
  26. */
  27. public FolderSelectScreen()
  28. {
  29. initComponents();
  30. }
  31. /**
  32. * This method is called from within the constructor to
  33. * initialize the form.
  34. * WARNING: Do NOT modify this code. The content of this method is
  35. * always regenerated by the Form Editor.
  36. */
  37. @SuppressWarnings("unchecked")
  38. // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
  39. private void initComponents()
  40. {
  41. setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
  42. javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
  43. getContentPane().setLayout(layout);
  44. layout.setHorizontalGroup(
  45. layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
  46. .addGap(0, 400, Short.MAX_VALUE)
  47. );
  48. layout.setVerticalGroup(
  49. layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
  50. .addGap(0, 300, Short.MAX_VALUE)
  51. );
  52. pack();
  53. }// </editor-fold>//GEN-END:initComponents
  54. /**
  55. * @param args the command line arguments
  56. */
  57. public static void main(String args[])
  58. {
  59. /* Set the Nimbus look and feel */
  60. //<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) ">
  61. /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel.
  62. * For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html
  63. */
  64. try
  65. {
  66. for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels())
  67. {
  68. if ("Nimbus".equals(info.getName()))
  69. {
  70. javax.swing.UIManager.setLookAndFeel(info.getClassName());
  71. break;
  72. }
  73. }
  74. }
  75. catch (ClassNotFoundException ex)
  76. {
  77. java.util.logging.Logger.getLogger(FolderSelectScreen.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
  78. }
  79. catch (InstantiationException ex)
  80. {
  81. java.util.logging.Logger.getLogger(FolderSelectScreen.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
  82. }
  83. catch (IllegalAccessException ex)
  84. {
  85. java.util.logging.Logger.getLogger(FolderSelectScreen.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
  86. }
  87. catch (javax.swing.UnsupportedLookAndFeelException ex)
  88. {
  89. java.util.logging.Logger.getLogger(FolderSelectScreen.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
  90. }
  91. //</editor-fold>
  92. /* Create and display the form */
  93. java.awt.EventQueue.invokeLater(new Runnable()
  94. {
  95. public void run()
  96. {
  97. new FolderSelectScreen().setVisible(true);
  98. }
  99. });
  100. }
  101. // Variables declaration - do not modify//GEN-BEGIN:variables
  102. // End of variables declaration//GEN-END:variables
  103. }