|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Objectjava.awt.Component
java.awt.Container
java.awt.Window
java.awt.Dialog
javax.swing.JDialog
helloagain.kanday.KandayPreferencesDialog
プログラムの設定を変更するダイアログ。
メッセージ表示ペーンの前景色、背景色を変更する。
レイアウトには、SpringLayout
を使用する。
画面デザイン概要 +--------------------------------+ |Preferences | <-- タイトル +--------------------------------+ |Foreground Color: ■ [Change] | <-- JLabel + JTextField + JButton |Background Color: □ [Change] | <-- 同上 | | | [Apply] [Cancel] | <-- JButton + JButton +--------------------------------+前景色と背景色の現在の色を表示するのに、空のJTextFieldを使用し、 backgroundに設定して実現している。 表示する文字は、
KandayPreferences
から取得している。
配置位置の設定(SpringLayout) +------------------------------------------+ |ダイアログのタイトル | +------------------------------------------+ | 1 |2 3 |4 5 |6 | |<->[ JLabel ]<->[JTextField]<->[JButton] | | ^^^^^^^^|^^^^^^^^^^^^^^| | | 7 |8 : 9 |10 11 |12 | |<->[JLabel] :<->[JTextField]<->[JButton] | | : | | :13 14 | | :<->[Apply]<->[Cancel] | | |15 |16 | +------------------------------------------+ [ 1] 10 pixel [ 6] 25 pixel [11] 10 pixel [16] -10 pixel [ 2] 25 pixel [ 7] 10 pixel [12] 20 pixel [ 3] 10 pixel [ 8] 20 pixel [13] 10 pixel [ 4] 25 pixel [ 9] 10 pixel [14] 25 pixel [ 5] 10 pixel [10] 20 pixel [15] -10 pixel
Created: Thu Jun 10 05:45:53 2004
SpringLayout
,
直列化された形式入れ子クラスの概要 |
クラス javax.swing.JDialog から継承した入れ子クラス |
javax.swing.JDialog.AccessibleJDialog |
クラス java.awt.Dialog から継承した入れ子クラス |
java.awt.Dialog.AccessibleAWTDialog |
クラス java.awt.Window から継承した入れ子クラス |
java.awt.Window.AccessibleAWTWindow |
クラス java.awt.Container から継承した入れ子クラス |
java.awt.Container.AccessibleAWTContainer |
クラス java.awt.Component から継承した入れ子クラス |
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy |
フィールドの概要 |
クラス javax.swing.JDialog から継承したフィールド |
accessibleContext, rootPane, rootPaneCheckingEnabled |
クラス java.awt.Component から継承したフィールド |
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
インタフェース javax.swing.WindowConstants から継承したフィールド |
DISPOSE_ON_CLOSE, DO_NOTHING_ON_CLOSE, EXIT_ON_CLOSE, HIDE_ON_CLOSE |
インタフェース java.awt.image.ImageObserver から継承したフィールド |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
コンストラクタの概要 | |
KandayPreferencesDialog(java.awt.Frame anOwner,
KandayPreferences aPreferences)
プログラムの設定を変更するダイアログを生成する。 |
クラス javax.swing.JDialog から継承したメソッド |
addImpl, createRootPane, dialogInit, getAccessibleContext, getContentPane, getDefaultCloseOperation, getGlassPane, getJMenuBar, getLayeredPane, getRootPane, isDefaultLookAndFeelDecorated, isRootPaneCheckingEnabled, paramString, processWindowEvent, remove, setContentPane, setDefaultCloseOperation, setDefaultLookAndFeelDecorated, setGlassPane, setJMenuBar, setLayeredPane, setLayout, setRootPane, setRootPaneCheckingEnabled, update |
クラス java.awt.Dialog から継承したメソッド |
addNotify, dispose, getTitle, hide, isModal, isResizable, isUndecorated, setModal, setResizable, setTitle, setUndecorated, show |
クラス java.awt.Window から継承したメソッド |
addPropertyChangeListener, addPropertyChangeListener, addWindowFocusListener, addWindowListener, addWindowStateListener, applyResourceBundle, applyResourceBundle, createBufferStrategy, createBufferStrategy, finalize, getBufferStrategy, getFocusableWindowState, getFocusCycleRootAncestor, getFocusOwner, getFocusTraversalKeys, getGraphicsConfiguration, getInputContext, getListeners, getLocale, getMostRecentFocusOwner, getOwnedWindows, getOwner, getToolkit, getWarningString, getWindowFocusListeners, getWindowListeners, getWindowStateListeners, isActive, isFocusableWindow, isFocusCycleRoot, isFocused, isShowing, pack, postEvent, processEvent, processWindowFocusEvent, processWindowStateEvent, removeWindowFocusListener, removeWindowListener, removeWindowStateListener, setCursor, setFocusableWindowState, setFocusCycleRoot, setLocationRelativeTo, toBack, toFront |
クラス java.awt.Container から継承したメソッド |
add, add, add, add, add, addContainerListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getContainerListeners, getFocusTraversalPolicy, getInsets, getLayout, getMaximumSize, getMinimumSize, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paint, paintComponents, preferredSize, print, printComponents, processContainerEvent, remove, removeAll, removeContainerListener, removeNotify, setFocusTraversalKeys, setFocusTraversalPolicy, setFont, transferFocusBackward, transferFocusDownCycle, validate, validateTree |
クラス java.awt.Component から継承したメソッド |
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isOpaque, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, reshape, resize, resize, setBackground, setBounds, setBounds, setComponentOrientation, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, setVisible, show, size, toString, transferFocus, transferFocusUpCycle |
クラス java.lang.Object から継承したメソッド |
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
コンストラクタの詳細 |
public KandayPreferencesDialog(java.awt.Frame anOwner, KandayPreferences aPreferences)
anOwner
- このダイアログの親となるフレームaPreferences
- 設定情報を保持するインスタンス
|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |