java.lang.Object | +--java.awt.Component | +--java.awt.Container | +--java.awt.Window | +--java.awt.Dialog | +--javax.swing.JDialog | +--BrowserDialog
A BrowserDialog
is a specific JDialog
. The BrowserDialog asks the users for the absolute path of his browser application, that is to say the application linked to HTML files.
Like the JDialog component, BrowserDialog contains a JRootPane as it's only child. The contentPane
should be the parent of any children of the BrowserDialog.
The same priniciple holds true for setting layout managers, removing components, listing children, etc. All these methods should normally be sent to the contentPane
instead of to the JDialog. The contentPane
is always non-null. Attempting to set it to null generates an exception. The default contentPane
has a BorderLayout manager set on it.
Please see the JRootPane documentation for a complete description of the contentPane
, glassPane
, and layeredPane
components.
Warning: Serialized objects of this class will not be compatible with future Swing releases. The current serialization support is appropriate for short term storage or RMI between applications running the same version of Swing. A future release of Swing will provide support for long term persistence.
JOptionPane
, JRootPane
Constructor Summary | |
BrowserDialog() Creates a non-modal dialog with the title "Browser Application", a specific message and no owner frame. |
Method Summary | |
void |
browser_windowClosing(WindowEvent e) do ??. |
void |
textBrowser_actionPerformed(ActionEvent e) do ??. |
Methods inherited from class javax.swing.JDialog |
addImpl,
createRootPane,
dialogInit,
getAccessibleContext(),
getContentPane,
getDefaultCloseOperation,
getGlassPane,
getJMenuBar,
getLayeredPane,
getRootPane,
isRootPaneCheckingEnabled,
paramString,
processWindowEvent,
setContentPane,
setDefaultCloseOperation,
setGlassPane,
setJMenuBar,
setLayeredPane,
setLayout,
setLocationRelativeTo,
setRootPane,
setRootCheckingEnabled,
update
|
Methods inherited from class java.awt.Dialog |
addNotify,
getTitle,
isModal,
isResizable,
setModal,
setResizable,
setTitle,
show |
Methods inherited from class java.awt.Window |
addWindowListener,
applyResourceBundle,
applyResourceBundle,
dispose,
finalize,
getFocusOwner,
getInputContext,
getLocale,
getOwnedWindows,
getOwner,
getToolkit,
getWarningString,
isShowing,
pack,
postEvent,
processEvent,
removeWindowListener,
toBack,
toFront |
Methods inherited from class java.awt.Container |
add,
add,
add,
add,
add,
addContainerListener,
countComponents,
deliverEvent,
doLayout,
findComponentAt,
findComponentAt,
getAlignmentX,
getAlignmentY,
getComponent,
getComponentAt,
getComponentAt,
getComponentCount,
getComponents,
getInsets,
getLayout,
getMaximumSize,
getMinimumSize,
getPreferredSize,
insets,
invalidate,
isAncestorOf,
layout,
list,
list,
locate,
minimumSize,
paint,
paintComponents,
preferredSize,
print,
printComponents,
processContainerEvent,
remove,
remove,
removeAll,
removeContainerListener,
removeNotify,
setFont,
validate,
validateTree |
Methods inherited from class java.lang.Object |
clone,
equals,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Constructor Detail |
public BrowserDialog()
Creates a BrowserDialog
.
Method Detail |
public void browser_windowClosing(WindowEvent e)
e
- the WindowEvent.public void textBrowser_actionPerformed(ActionEvent e)
e
- the ActionEvent.