1 25 26 package net.yagga.miniinstaller.gui; 27 28 import java.awt.*; 29 import javax.swing.JPanel ; 30 31 36 public class VoidPanel extends JPanel implements InstallPanel{ 37 BorderLayout borderLayout1 = new BorderLayout(); 38 39 40 public VoidPanel() { 41 try { 42 jbInit(); 43 } 44 catch (Exception ex) { 45 ex.printStackTrace(); 46 } 47 } 48 49 void jbInit() throws Exception { 50 this.setLayout(borderLayout1); 51 refresh(); 52 } 53 54 public void refresh(){ 55 this.setBackground(InstallFrame.BK_COL); 56 this.setMaximumSize(InstallFrame.panelDim); 57 this.setPreferredSize(InstallFrame.panelDim); 58 this.setMinimumSize(InstallFrame.panelDim); 59 this.doLayout(); 60 } 61 public void setDims(Dimension d){ 62 this.setPreferredSize(d); 63 this.invalidate(); 64 } 65 66 } 67 | Popular Tags |