|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.awt.Component
java.awt.Container
java.awt.Window
java.awt.Dialog
javax.swing.JDialog
proyecto.preferencias.SeleccionarFuente
public class SeleccionarFuente
SeleccionarFuente
El cuadro de diálogo Selector de fuente se utiliza para seleccionar fuentes
que se van a aplicar a un tipo de palabra reservada. En nuestra GUI tenemos
lo necesario para la selección de la fuente como se puede observar en los
tres paneles que lo forma nuestra GUI:
Font
,
Serialized FormNested Class Summary |
---|
Nested classes/interfaces inherited from class javax.swing.JDialog |
---|
JDialog.AccessibleJDialog |
Nested classes/interfaces inherited from class java.awt.Dialog |
---|
Dialog.AccessibleAWTDialog, Dialog.ModalExclusionType, Dialog.ModalityType |
Nested classes/interfaces inherited from class java.awt.Window |
---|
Window.AccessibleAWTWindow |
Nested classes/interfaces inherited from class java.awt.Container |
---|
Container.AccessibleAWTContainer |
Nested classes/interfaces inherited from class java.awt.Component |
---|
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
Field Summary | |
---|---|
(package private) String |
currentFont
The current font. |
(package private) int |
currentSize
The current size. |
(package private) int |
currentStyle
The current style. |
boolean |
ok
The ok. |
(package private) String[] |
sizeList
The size list. |
(package private) String[] |
styleList
The style list. |
Fields inherited from class javax.swing.JDialog |
---|
accessibleContext, rootPane, rootPaneCheckingEnabled |
Fields inherited from class java.awt.Dialog |
---|
DEFAULT_MODALITY_TYPE |
Fields inherited from class java.awt.Component |
---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface javax.swing.WindowConstants |
---|
DISPOSE_ON_CLOSE, DO_NOTHING_ON_CLOSE, EXIT_ON_CLOSE, HIDE_ON_CLOSE |
Fields inherited from interface java.awt.image.ImageObserver |
---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Method Summary | |
---|---|
Font |
getCurrentFont()
Obtener el current font. |
static void |
main(String[] args)
MAIN. |
void |
setCurrentFont(Font font)
Modificar la propiedad current font. |
static Font |
showDialog(Window parent,
Font font)
Nuevo construtor sin título asociado. |
static Font |
showDialog(Window parent,
String title,
Font font)
Show dialog. |
Methods inherited from class java.awt.Dialog |
---|
addNotify, getModalityType, getTitle, hide, isModal, isResizable, isUndecorated, setModal, setModalityType, setResizable, setTitle, setUndecorated, setVisible, show, toBack |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
String[] styleList
String[] sizeList
String currentFont
int currentStyle
int currentSize
public boolean ok
Method Detail |
---|
public Font getCurrentFont()
public void setCurrentFont(Font font)
font
- La propiedad current fontpublic static Font showDialog(Window parent, String title, Font font)
parent
- the parenttitle
- the titlefont
- the font
public static Font showDialog(Window parent, Font font)
parent
- the parentfont
- the font
public static void main(String[] args)
args
- Parametros de la linea de comandos
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |