Example #1
0
  public ExplorerWindow() {
    int width = Integer.parseInt(config.getString("explorer.sizeX"));
    int height = Integer.parseInt(config.getString("explorer.sizeY"));
    JFrame frame = new JFrame("Explorer");
    frame.setSize(width, height);
    Rectangle bounds = frame.getGraphicsConfiguration().getBounds();
    frame.setLocation(0, (int) ((bounds.height / 2) - (frame.getHeight() / 2)));

    Component leftSide = new LeftTree();
    rightSide = new Inspector();
    ((Inspector) rightSide).getCanvas();
    JSplitPane splitPane = new JSplitPane(JSplitPane.HORIZONTAL_SPLIT, leftSide, rightSide);
    splitPane.setOneTouchExpandable(true);
    splitPane.setDividerLocation(200);
    frame.setContentPane(splitPane);

    // Display the window.
    frame.setVisible(true);
  }
Example #2
0
 /**
  * locationHeaderが期待の値であることを確認します。
  *
  * @param inspector ロジック
  * @return TResponse
  */
 public TResponse inspect(Inspector inspector) {
   inspector.inspect(this);
   return this;
 }