Diferencia entre revisiones de «SWT»
Sin resumen de edición |
|||
Línea 44: | Línea 44: | ||
} |
} |
||
</source> |
</source> |
||
==Referencias== |
|||
* {{Cite book | first1 = Steve | last1 = Northover | first2 = Mike | last2 = Wilson | title= SWT: The Standard Widget Toolkit, Volume 1 | publisher= [[Addison-Wesley]] | page = 592 | date = July 8, 2004 | isbn = 0-321-25663-8 | url = http://www.informit.com/store/product.aspx?isbn=0321256638 |idioma=inglés}} |
|||
* {{Cite book | first1 =Rob | last1 = Warner | first2 =Robert L. | last2 = Harris | title= The definitive guide to SWT and JFace | publisher=[[Apress]] | date=June 21, 2004 | page= 684 | isbn = 1-59059-325-1 | url = http://www.apress.com/book/view/1590593251 |idioma=inglés}} |
|||
* {{Cite book | first1 =Eric | last1 = Clayberg | first2 =Dan | last2 = Rubel | title=Eclipse: Building commercial-quality plug-in | publisher=[[Addison-Wesley Professional]] | date=April 1, 2006 | edition=2nd | page= 864 | isbn = 0-321-42672-X | url = http://www.informit.com/store/product.aspx?isbn=032142672X |idioma=inglés}} |
|||
* {{Cite book | first1 =Erich | last1 = Gamma | first2 =Kent | last2 = Beck | title= Contributing to Eclipse | publisher=[[Addison-Wesley]] | date=October 30, 2003 | page= 416 | isbn = 0-321-20575-8 | url = http://www.informit.com/store/product.aspx?isbn=0321205758 |idioma=inglés}} |
|||
* {{Cite book | first1 = Jim | last1 = D'Anjou | first2 = Scott | last2 = Fairbrother | first3 = Dan | last3 = Kehn | first4 = Pat | last4 = McCarthy | first5 = John | last5 = Kellerman | title = The Java Developers Guide to Eclipse | publisher = [[Addison-Wesley]] | date= November 5, 2004 | edition = 2nd | page= 1136 | isbn = 0-321-30502-7 | url = http://www.informit.com/store/java-developers-guide-to-eclipse-9780321305022 |idioma=inglés}} |
|||
* {{Cite book | author = Matthew Scarpino, Stephen Holder, Stanford Ng and Laurent Mihalkovic | title = SWT/JFace in Action | publisher = [[Manning]] | date = November 28, 2004 | isbn = 1-932394-27-3 | page = 496 | url = |idioma=inglés}} |
|||
== Enlaces externos == |
|||
* [http://www.eclipse.org/swt/ SWT main page] |
|||
* [http://wiki.eclipse.org/index.php/FAQ_Where_can_I_find_more_information_on_SWT%3F Further information on SWT] |
|||
* [http://www.eclipse.org/documentation/main.html Information on Eclipse], including SWT information within a "platform plug-in developer guide" |
|||
* [http://help.eclipse.org/stable/nftopic/org.eclipse.platform.doc.isv/reference/api/index.html SWT Javadoc API] documented at eclipse.org |
|||
* [http://www.cs.umanitoba.ca/~eclipse/ SWT tutorial and general documentation about eclipse] |
|||
* [http://paul.luminos.nl/update/485 Downloadable SWT Javadocs] |
|||
* [http://code.google.com/a/eclipselabs.org/p/swtqt/ SWT/Qt: SWT on Qt Jambi] |
|||
[[Categoría:Interfaces de programación de aplicaciones de Java]] |
[[Categoría:Interfaces de programación de aplicaciones de Java]] |
Revisión del 21:46 18 mar 2016
SWT | ||
---|---|---|
Parte de Eclipse | ||
![]() Eclipse IDE, con una aplicación basada en SWT | ||
Información general | ||
Tipo de programa | Widget toolkit para la plataforma Java | |
Desarrollador | Eclipse Foundation | |
Licencia | Eclipse Public License | |
Estado actual | Active | |
Información técnica | ||
Programado en | Java | |
Plataformas admitidas | máquina virtual Java | |
Versiones | ||
Última versión estable | 4.5.1 ( 09 de abril de 2015 (9 años, 2 meses y 20 días)) | |
Enlaces | ||
SWT (siglas en inglés de Standard Widget Toolkit) es un conjunto de componentes para construir interfaces gráficas en Java, (widgets) desarrollados por el proyecto Eclipse.
Recupera la idea original de la biblioteca AWT de utilizar componentes nativos, con lo que adopta un estilo más consistente en todas las plataformas, pero evita caer en las limitaciones de ésta.
La biblioteca Swing, por otro lado, está codificada enteramente en Java y frecuentemente se le acusa de no brindar una experiencia idéntica a la de una aplicación nativa. Sin embargo, el precio a pagar por esa mejora es la dependencia (a nivel de aspecto visual y no de interfaz de programación) de la aplicación resultante del sistema operativo sobre el cual se ejecuta. La interfaz del workbench de eclipse también depende de una capa intermedia de interfaz gráfica de usuario (GUI) llamada JFace que simplifica la construcción de aplicaciones basadas en SWT.
Ejemplo
![](http://upload.wikimedia.org/wikipedia/commons/thumb/9/96/Screenshot-swt-helloworld.png/220px-Screenshot-swt-helloworld.png)
El siguiente fragmento de código es una programa sencillo que muestra el texto Hola Mundo:
import org.eclipse.swt.*;
import org.eclipse.swt.widgets.*;
public class HolaMundo {
public static void main (String[] args) {
Display display = new Display();
Shell shell = new Shell(display);
Label label = new Label(shell, SWT.NONE);
label.setText("Hola Mundo");
label.pack();
shell.pack();
shell.open();
while (!shell.isDisposed()) {
if (!display.readAndDispatch()) display.sleep();
}
display.dispose();
}
}
Referencias
- Northover, Steve; Wilson, Mike (July 8, 2004). SWT: The Standard Widget Toolkit, Volume 1 (en inglés). Addison-Wesley. p. 592. ISBN 0-321-25663-8.
- Warner, Rob; Harris, Robert L. (June 21, 2004). The definitive guide to SWT and JFace (en inglés). Apress. p. 684. ISBN 1-59059-325-1.
- Clayberg, Eric; Rubel, Dan (April 1, 2006). Eclipse: Building commercial-quality plug-in (en inglés) (2nd edición). Addison-Wesley Professional. p. 864. ISBN 0-321-42672-X.
- Gamma, Erich; Beck, Kent (October 30, 2003). Contributing to Eclipse (en inglés). Addison-Wesley. p. 416. ISBN 0-321-20575-8.
- D'Anjou, Jim; Fairbrother, Scott; Kehn, Dan; McCarthy, Pat; Kellerman, John (November 5, 2004). The Java Developers Guide to Eclipse (en inglés) (2nd edición). Addison-Wesley. p. 1136. ISBN 0-321-30502-7.
- Matthew Scarpino, Stephen Holder, Stanford Ng and Laurent Mihalkovic (November 28, 2004). SWT/JFace in Action (en inglés). Manning. p. 496. ISBN 1-932394-27-3.
Enlaces externos
- SWT main page
- Further information on SWT
- Information on Eclipse, including SWT information within a "platform plug-in developer guide"
- SWT Javadoc API documented at eclipse.org
- SWT tutorial and general documentation about eclipse
- Downloadable SWT Javadocs
- SWT/Qt: SWT on Qt Jambi