Simulator.java 3.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. /*
  2. * To change this license header, choose License Headers in Project Properties.
  3. * To change this template file, choose Tools | Templates
  4. * and open the template in the editor.
  5. */
  6. package tools.mips;
  7. /**
  8. *
  9. * @author EUGENIO CARVALHO
  10. */
  11. public class Simulator extends javax.swing.JFrame {
  12. /**
  13. * Creates new form Simulator
  14. */
  15. public Simulator() {
  16. initComponents();
  17. }
  18. /**
  19. * This method is called from within the constructor to initialize the form.
  20. * WARNING: Do NOT modify this code. The content of this method is always
  21. * regenerated by the Form Editor.
  22. */
  23. @SuppressWarnings("unchecked")
  24. // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
  25. private void initComponents() {
  26. setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
  27. javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
  28. getContentPane().setLayout(layout);
  29. layout.setHorizontalGroup(
  30. layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
  31. .addGap(0, 658, Short.MAX_VALUE)
  32. );
  33. layout.setVerticalGroup(
  34. layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
  35. .addGap(0, 536, Short.MAX_VALUE)
  36. );
  37. pack();
  38. }// </editor-fold>//GEN-END:initComponents
  39. /**
  40. * @param args the command line arguments
  41. */
  42. public static void main(String args[]) {
  43. /* Set the Nimbus look and feel */
  44. //<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) ">
  45. /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel.
  46. * For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html
  47. */
  48. try {
  49. for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {
  50. if ("Nimbus".equals(info.getName())) {
  51. javax.swing.UIManager.setLookAndFeel(info.getClassName());
  52. break;
  53. }
  54. }
  55. } catch (ClassNotFoundException ex) {
  56. java.util.logging.Logger.getLogger(Simulator.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
  57. } catch (InstantiationException ex) {
  58. java.util.logging.Logger.getLogger(Simulator.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
  59. } catch (IllegalAccessException ex) {
  60. java.util.logging.Logger.getLogger(Simulator.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
  61. } catch (javax.swing.UnsupportedLookAndFeelException ex) {
  62. java.util.logging.Logger.getLogger(Simulator.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
  63. }
  64. //</editor-fold>
  65. /* Create and display the form */
  66. java.awt.EventQueue.invokeLater(new Runnable() {
  67. public void run() {
  68. new Simulator().setVisible(true);
  69. }
  70. });
  71. }
  72. // Variables declaration - do not modify//GEN-BEGIN:variables
  73. // End of variables declaration//GEN-END:variables
  74. }