333 |
protected Container contentPane; |
protected Container contentPane; |
334 |
|
|
335 |
protected JButton defaultButton; |
protected JButton defaultButton; |
336 |
|
|
337 |
|
/** |
338 |
|
* @since 1.4 |
339 |
|
*/ |
340 |
|
private int windowDecorationStyle = NONE; |
341 |
|
|
342 |
/** |
/** |
343 |
* DOCUMENT ME! |
* DOCUMENT ME! |
351 |
} |
} |
352 |
|
|
353 |
/** |
/** |
354 |
|
* @deprecated Replaced by <code>setJMenuBar()</code> |
355 |
|
*/ |
356 |
|
public void setMenuBar(JMenuBar m) |
357 |
|
{ |
358 |
|
setJMenuBar(m); |
359 |
|
} |
360 |
|
|
361 |
|
/** |
362 |
* DOCUMENT ME! |
* DOCUMENT ME! |
363 |
* |
* |
364 |
* @return DOCUMENT ME! |
* @return DOCUMENT ME! |
369 |
} |
} |
370 |
|
|
371 |
/** |
/** |
372 |
|
* @deprecated Replaced by <code>getJMenuBar()</code> |
373 |
|
*/ |
374 |
|
public JMenuBar getMenuBar() |
375 |
|
{ |
376 |
|
return getJMenuBar(); |
377 |
|
} |
378 |
|
|
379 |
|
/** |
380 |
* DOCUMENT ME! |
* DOCUMENT ME! |
381 |
* |
* |
382 |
* @return DOCUMENT ME! |
* @return DOCUMENT ME! |
590 |
defaultButton = newButton; |
defaultButton = newButton; |
591 |
firePropertyChange("defaultButton", oldButton, newButton); |
firePropertyChange("defaultButton", oldButton, newButton); |
592 |
} |
} |
593 |
|
|
594 |
|
/** |
595 |
|
* @since 1.4 |
596 |
|
*/ |
597 |
|
public int getWindowDecorationStyle() |
598 |
|
{ |
599 |
|
return windowDecorationStyle; |
600 |
|
} |
601 |
|
|
602 |
|
/** |
603 |
|
* @since 1.4 |
604 |
|
*/ |
605 |
|
public void setWindowDecorationStyle(int style) |
606 |
|
{ |
607 |
|
if (style != NONE |
608 |
|
&& style != FRAME |
609 |
|
&& style != INFORMATION_DIALOG |
610 |
|
&& style != ERROR_DIALOG |
611 |
|
&& style != COLOR_CHOOSER_DIALOG |
612 |
|
&& style != FILE_CHOOSER_DIALOG |
613 |
|
&& style != QUESTION_DIALOG |
614 |
|
&& style != WARNING_DIALOG) |
615 |
|
throw new IllegalArgumentException("invalid style"); |
616 |
|
|
617 |
|
int oldStyle = windowDecorationStyle; |
618 |
|
windowDecorationStyle = style; |
619 |
|
firePropertyChange("windowDecorationStyle", oldStyle, style); |
620 |
|
} |
621 |
} |
} |