Results 1 to 6 of 6

Thread: Running the Java Swing application in a Web browser

  1. #1
    Join Date
    Apr 2010
    Posts
    71

    Running the Java Swing application in a Web browser

    I want to develop a thin clients is fashionable and offers great facilities for deployment and access to a multitude of services through a client commonplace: the Web browser. However, this model does not lend itself to all applications. Some indeed require a very high interactivity or special rendering techniques (sophisticated graphics, 3D ...). Please help. Thanks in advance.

  2. #2
    Join Date
    Feb 2008
    Posts
    1,852

    Re: Running the Java Swing application in a Web browser

    From its inception, Java has prepared a library of graphical components: AWT (Abstract Windowing Toolkit). These components were based on native controls of the local operating system (Windows, Mac, Unix) Java AWT making efficient enough. Unfortunately, this approach posed some difficulties in terms of portability and scalability. Since Java 2 (JDK 1.2.2), Sun encourages developers to use Java Swing instead of AWT. This new library is much richer than before and provides much better portability, and for good reason: all graphical elements (from simple button to the spreadsheet) are rewritten in Java and rely only on basic primitives (traced lines, colors ...) to realize their display screen.

  3. #3
    Join Date
    May 2008
    Posts
    2,297

    Re: Running the Java Swing application in a Web browser

    The Swing components are of good quality: they meet a lot of good Object Oriented design practices (design pattern), their "look and feel is fully customizable, and the range of available components is rich enough to meet the main needs. See for yourself (these images are from the Java Tutorial from Sun Microsystems): Java Swing is actually part of a more ambitious framework, Java Foundation Classes (JFC), which includes drag and drop, copy and paste, view and 2D animation (Java 2D) image processing (Java Advanced Imaging), and that perceived quality PostScript.

  4. #4
    Join Date
    May 2008
    Posts
    2,389

    Re: Running the Java Swing application in a Web browser

    Swing is an innovation appeared in JDK1.1 as an extension of the latter and as part of Java 2 SDK 1.2 and 1.3. With Swing, it is possible to create more attractive applets filled with buttons of images, a single user interface regardless of the platform high, the possibility of changing the appearance of all interface elements, the support for adaptive technology and other things. One day perhaps you'll be tempted to create a Swing applet to do so and if you get a clean result, as was the case for me, you'll want see the applet appear on your site.

  5. #5
    Join Date
    Oct 2005
    Posts
    2,393

    Re: Running the Java Swing application in a Web browser

    You need to add, as usual, the APPLET tag with the attribute code to indicate where the child class of Class JApplet, which contains a method init must be called by the browser to initialize the applet. However, you'll soon realize that instead of the applet in Internet Explorer, a blank rectangle appear! Internet Explorer 4, 5 and even 5.5 does not support Java 2! It is a glaring lack weighs heavily, but we must live with that.

  6. #6
    Join Date
    Feb 2010
    Posts
    644

    Re: Running the Java Swing application in a Web browser

    A nice way to create graphical user interfaces user friendly is to enable the drag & drop everything you want in , from and within the same application . MacOS X is the perfect example of good use of drag & drop. Every time I tried dragger something and the dropper in something else , it worked. Except sure, if you try to do something stupid style dropper a text file on the icon of a game Ofcourse Windows and Linux allows applications to implement the drag & drop, but they lack something that Mac OS X already has : very cool visual effects . For example, dragger an image from Safari , web browser , lets you see a pretty translucent thumbnail of the object.

Similar Threads

  1. Print in java using Swing
    By Sheenas in forum Software Development
    Replies: 3
    Last Post: 18-11-2009, 09:50 AM
  2. Java Swing and MySQL
    By shelton141 in forum Software Development
    Replies: 1
    Last Post: 22-09-2009, 08:50 AM
  3. drawPolygon in java Swing?
    By JagdishP in forum Software Development
    Replies: 3
    Last Post: 07-08-2009, 11:33 PM
  4. Message Box example for Java Swing
    By Visala28 in forum Software Development
    Replies: 3
    Last Post: 31-07-2009, 05:30 PM
  5. Java swing help with repaint()
    By grudge in forum Software Development
    Replies: 4
    Last Post: 23-07-2009, 03:41 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,713,492,128.36413 seconds with 17 queries