Revision 2547 org.gvsig.tools/library/trunk/org.gvsig.tools/org.gvsig.tools.dynform/org.gvsig.tools.dynform.spi/src/main/java/org/gvsig/tools/dynform/spi/dynform/AbstractJDynForm.java

View differences:

AbstractJDynForm.java
310 310
        formPanel.setBorder(BorderFactory.createEmptyBorder(4, 4, 4, 4));
311 311
        JScrollPane scroll = new JScrollPane(formPanel);
312 312
        Dimension size = formPanel.getPreferredSize();
313
        if( this.formWidth<100 ) {
314
            if( size.width>800 ) {
315
                this.formWidth = 800;
316
            } else {
317
                this.formWidth = size.width;
318
            }
319
        }
320 313
        if( this.formHeight<100 ) {
321 314
            if( size.height>450 ) {
322 315
                this.formHeight = 450;
......
324 317
                this.formHeight = size.height;
325 318
            }
326 319
        }
320
        if( this.formWidth<100 ) {
321
            if( size.width>800 ) {
322
                this.formWidth = 800;
323
            } else {
324
                this.formWidth = size.width;
325
            }
326
        }
327 327
        
328 328
        if (useScrollBars) {
329 329
            int scrollBarWidth = scroll.getVerticalScrollBar().getPreferredSize().width;
......
489 489
        this.context = context;
490 490
    }
491 491

  
492
    protected abstract JComponent getFieldsContainer();
493 492
}

Also available in: Unified diff