1 16 package org.apache.log4j.lf5.viewer; 17 18 import javax.swing.*; 19 import java.awt.*; 20 21 27 28 30 public class LogFactor5LoadingDialog extends LogFactor5Dialog { 31 35 39 43 47 public LogFactor5LoadingDialog(JFrame jframe, String message) { 48 super(jframe, "LogFactor5", false); 49 50 JPanel bottom = new JPanel(); 51 bottom.setLayout(new FlowLayout()); 52 53 JPanel main = new JPanel(); 54 main.setLayout(new GridBagLayout()); 55 wrapStringOnPanel(message, main); 56 57 getContentPane().add(main, BorderLayout.CENTER); 58 getContentPane().add(bottom, BorderLayout.SOUTH); 59 show(); 60 61 } 62 66 70 74 } | Popular Tags |