Created
February 13, 2020 00:27
-
-
Save HashRaygoza/6f70a3498d538533fc95fbc808f7e6a2 to your computer and use it in GitHub Desktop.
Clase principal de la prueba de lector de banda magnética
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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