JFace
| JFace | ||
|---|---|---|
| Parte de Eclipse | ||
|
The Eclipse IDE, a JFace-based application | ||
| Información general | ||
| Tipo de programa | widget toolkit para la plataforma Java | |
| Desarrollador | Eclipse Foundation | |
| Licencia | Eclipse Public License | |
| Estado actual | Activo | |
| Idiomas | Multilenguaje | |
| Versiones | ||
| Última versión estable | 3.9.1 (25 de julio de 2013 (12 años, 10 meses y 15 días)) | |
| Enlaces | ||
JFace es un conjunto de widgets para realizar interfaces de usuario construido sobre SWT. Fue desarrollado por IBM para facilitar la construcción del entorno de desarrollo Eclipse, pero su uso no está limitado a éste.
JFace proporciona una serie de construcciones muy frecuentes a la hora de desarrollar interfaces gráficas de usuario, tales como cuadros de diálogo, evitando al programador la tediosa tarea de lidiar manualmente con los widgets de SWT.
Ejemplo
El siguiente es un programa básico que utiliza JFace:
import org.eclipse.jface.window.ApplicationWindow;
import org.eclipse.swt.SWT;
import org.eclipse.swt.widgets.*;
public class HolaMundo extends ApplicationWindow {
public static void main(String[] args) {
new HolaMundo().run();
}
public HolaMundo() {
super(null);
}
public void run() {
setBlockOnOpen(true);
open();
Display.getCurrent().dispose();
}
protected Control createContents(Composite parent) {
Label label = new Label(parent, SWT.CENTER);
label.setText("Hola, Mundo");
return label;
}
}
Bibliografía
- Scarpino, Matthew; Holder, Stephen; Ng, Stanford; Mihalkovic, Laurent (28 de noviembre de 2004), SWT/JFace in Action: GUI Design with Eclipse 3.0 (en inglés) (1ª edición), Manning Publications, p. 496, ISBN 1-932394-27-3.
- Li Guojie, Jackwind (11 de febrero de 2005), Professional Java Native Interfaces with SWT/JFace (en inglés) (1ª edición), Wrox Press, p. 528, ISBN 0-470-09459-1, archivado desde el original el 26 de diciembre de 2014, consultado el 17 de marzo de 2016.
- Harris, Robert; Warner, Rob (21 de junio de 2004), The Definitive Guide to SWT and JFACE (en inglés) (1ª edición), Apress, p. 684, ISBN 1-59059-325-1, archivado desde el original el 31 de julio de 2009, consultado el 17 de marzo de 2016.
Enlaces externos
- Wiki JFace (en inglés).
- Rich clients with the SWT and JFace (en inglés).
- Using the Eclipse GUI outside the Eclipse Workbench, Part 1: Using JFace and SWT in stand-alone mode, by Adrian Emmenis, IBM (en inglés).
- Using the Eclipse GUI outside the Eclipse Workbench, Part 2: Using the JFace image registry, by Adrian Emmenis, IBM (en inglés).
Content Disclaimer
Informasi ini disarikan dari Wikipedia dan disajikan kembali untuk tujuan edukasi. Konten tersedia di bawah lisensi CC BY-SA 3.0. Kami tidak bertanggung jawab atas ketidakakuratan data yang bersumber dari kontribusi publik tersebut.
- The information displayed on this website is sourced in part or in whole from Wikipedia and has been adapted for the purpose of restating it. We strive to provide accurate and relevant information, however:
- There is no guarantee of absolute accuracy. Wikipedia is an open, collaborative project that can be edited by anyone, so information is subject to change.
- It is not intended to constitute professional advice. The content displayed is for informational and educational purposes only. For important decisions (e.g., medical, legal, or financial), please consult a professional.
- Content copyright. Wikipedia is licensed under the Creative Commons Attribution-ShareAlike License (CC BY-SA). This means that content may be reused with appropriate attribution and shared under a similar license.
- Responsible use. Any risk arising from the use of information from this website is entirely the responsibility of the user.