/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package sortingalgojava; import java.awt.*; import java.awt.event.*; import javax.swing.*; /** * * @author marck */ public abstract class drawUI implements ActionListener, KeyListener, declareUI{ static int loop = 0, inc = 20; static String warning = ""; static int pass = 0; public static void drawIT(){ drawFrame(); drawPanels(); drawtxtBox(); drawButtons(); drawPass(); mainframe.setVisible(true); } public static void drawFrame(){ mainframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); mainframe.setResizable(false); mainframe.setSize(800, 310); mainframe.setLocationRelativeTo(null); } public static void drawPanels(){ mainpanel.setLayout(null); mainpanel.setBackground(Color.DARK_GRAY); mainframe.add(mainpanel); vline.setBounds(385, 0, 2, 250); mainpanel.add(vline); hline.setBounds(10, 250, 780, 2); mainpanel.add(hline); footer.setBounds(10,260,800,13); footer.setOpaque(false); footer.setForeground(Color.GRAY); mainpanel.add(footer); } public static void drawtxtBox(){ for(loop = 0; loop