Skip to content

Instantly share code, notes, and snippets.

@HashRaygoza
Created February 13, 2020 00:27
Show Gist options
  • Select an option

  • Save HashRaygoza/6f70a3498d538533fc95fbc808f7e6a2 to your computer and use it in GitHub Desktop.

Select an option

Save HashRaygoza/6f70a3498d538533fc95fbc808f7e6a2 to your computer and use it in GitHub Desktop.
Clase principal de la prueba de lector de banda magnética
package com.hash.databaseio.doclistener;
import java.awt.EventQueue;
import javax.swing.JFrame;
import javax.swing.UIManager;
import javax.swing.UnsupportedLookAndFeelException;
public class App {
public static void main(String[] args) {
new App();
}
public App() {
EventQueue.invokeLater(new Runnable() {
@Override
public void run() {
try {
UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
} catch (ClassNotFoundException | InstantiationException | IllegalAccessException | UnsupportedLookAndFeelException ex) {
ex.printStackTrace();
}
JFrame frame = new JFrame("Prueba banda magnética");
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
frame.add(new PanelPrincipal());
frame.pack();
frame.setLocationRelativeTo(null);
frame.setVisible(true);
}
});
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment