コード例 #1
0
ファイル: BoxInfo.java プロジェクト: olliver/FBEditor
  /**
   * This is the default constructor
   *
   * @throws InvalidFirmwareException
   * @throws IOException
   * @throws WrongPasswordException
   */
  public BoxInfo(String boxName, String firmwareVersion, String modVersion) {
    super();

    this.setSize(500, 300);
    this.setTitle("BoxInfo");
    this.setIconImage(FBEdit.getInstance().getImageFromJAR("/icon.gif"));
    this.setContentPane(getJPanel());
    this.setLocationRelativeTo(FBEdit.getInstance().getframe());
    this.setVisible(true);

    setPanelText(boxName, firmwareVersion, modVersion);
  }
コード例 #2
0
ファイル: BoxInfo.java プロジェクト: olliver/FBEditor
 /**
  * This method initializes fbeditorPane
  *
  * @return javax.swing.fbeditorPane
  */
 private JEditorPane getJEditorPane() {
   if (fbeditorPane == null) {
     try {
       String url =
           (new StringBuilder("http://"))
               .append(FBEdit.getInstance().getbox_address())
               .append("/cgi-bin/system_status")
               .toString();
       fbeditorPane = new JEditorPane(url);
     } catch (IOException e) {
       e.printStackTrace();
     }
   }
   return fbeditorPane;
 }