@@ -57,8 +57,8 @@ public final class COMObjectWindow extends javax.swing.JDialog {
57
57
* @param archiveService
58
58
* @throws java.io.IOException
59
59
*/
60
- public COMObjectWindow (final ArchivePersistenceObject comObject , final boolean editable ,
61
- final ArchiveStub archiveService ) throws IOException {
60
+ public COMObjectWindow (final ArchivePersistenceObject comObject ,
61
+ final boolean editable , final ArchiveStub archiveService ) throws IOException {
62
62
initComponents ();
63
63
64
64
if (comObject == null ) {
@@ -166,15 +166,12 @@ public COMObjectWindow(final ArchivePersistenceObject comObject, final boolean e
166
166
}
167
167
}
168
168
169
- if (editable ) {
170
- this .button .setText ("Submit" );
171
- } else {
172
- this .button .setText ("Close" );
173
- }
169
+ this .button .setText (editable ? "Submit" : "Close" );
174
170
175
171
componentsPanel .revalidate ();
176
172
componentsPanel .repaint ();
177
- this .setPreferredSize (new Dimension (800 ,670 ));
173
+ this .setPreferredSize (new Dimension (700 , 600 ));
174
+ this .pack ();
178
175
this .setVisible (true );
179
176
}
180
177
@@ -236,9 +233,11 @@ private void initComponents() {
236
233
button = new javax .swing .JToggleButton ();
237
234
238
235
setTitle ("COM Object" );
239
- setMinimumSize (new java . awt . Dimension ( 650 , 550 ) );
236
+ setMinimumSize (null );
240
237
setResizable (false );
241
238
239
+ topPanel .setPreferredSize (null );
240
+
242
241
objIdentification .setHorizontalAlignment (javax .swing .SwingConstants .CENTER );
243
242
objIdentification .setText ("Domain:" );
244
243
objIdentification .setHorizontalTextPosition (javax .swing .SwingConstants .CENTER );
@@ -319,7 +318,7 @@ public void actionPerformed(java.awt.event.ActionEvent evt) {
319
318
320
319
componentsPanel .setMinimumSize (new java .awt .Dimension (0 , 0 ));
321
320
componentsPanel .setName ("" ); // NOI18N
322
- componentsPanel .setPreferredSize (new java . awt . Dimension ( 575 , 200 ) );
321
+ componentsPanel .setPreferredSize (null );
323
322
324
323
objectBodyButton .setText ("View Object Body" );
325
324
objectBodyButton .addActionListener (new java .awt .event .ActionListener () {
@@ -547,9 +546,8 @@ public void actionPerformed(java.awt.event.ActionEvent evt) {
547
546
548
547
getContentPane ().add (componentsPanel , java .awt .BorderLayout .CENTER );
549
548
550
- bottomPanel .setMaximumSize (new java .awt .Dimension (30 , 32767 ));
551
549
bottomPanel .setName ("" ); // NOI18N
552
- bottomPanel .setPreferredSize (new java . awt . Dimension ( 575 , 40 ) );
550
+ bottomPanel .setPreferredSize (null );
553
551
554
552
button .setText ("Submit" );
555
553
button .addActionListener (new java .awt .event .ActionListener () {
0 commit comments