コード例 #1
0
 public void doLayout() {
   this.removeAll();
   HtmlLength[] rhl = this.rowHtmlLengths;
   HtmlLength[] chl = this.colHtmlLengths;
   Component[] fc = this.frameComponents;
   if (rhl != null && chl != null && fc != null) {
     Dimension size = this.getSize();
     Insets insets = this.getInsets();
     int width = size.width - insets.left - insets.right;
     int height = size.height - insets.left - insets.right;
     int[] colLengths = this.getAbsoluteLengths(chl, width);
     int[] rowLengths = this.getAbsoluteLengths(rhl, height);
     this.add(
         this.getSplitPane(
             this.htmlContext,
             colLengths,
             0,
             colLengths.length,
             rowLengths,
             0,
             rowLengths.length,
             fc));
   }
   super.doLayout();
 }