Results 1 to 6 of 6

Thread: Jms + swing

  1. #1
    Join Date
    Jul 2010
    Posts
    53

    Jms + swing

    Can you explain why most professional Java projects based on J2EE (choice of Java / Web) rather than thick-client that can develop in Swing or SWT? Is the market trend to prefer J2EE SWT / Swing grows stronger over time? Swing also has other strengths, such as advanced features, the possibility of extending the components, an adaptation of the rendering of components, etc. ... Swing is an API mature, proven and well known. Unfortunately, these two major flaws are its use of machine resources and slow implementation of applications using it. Any idea?

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

    Re: Jms + swing

    Reason is a website is much easier to deploy enterprise. Nothing to install on client machines, except for a link if the user does not know the concept of URL.
    One might think the java web start, but companies have yet bcp an old version of java on their personal computers. Besides that, the advantage of J2EE is to centralize information (one server). If you want to do this in Swing, you must be

    * implement your network layer: huge loss of time, not counting the bugs
    * you use an existing technology, style rmi, which is not provided at all for this kind of use. It is for example impossible to cancel an ongoing action with rmi.

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

    Re: Jms + swing

    Well already you can certainly make a J2EE application with Swing / SWT. Swing / SWT is only the presentation layer. As Antoine_935 said it prefers a web presentation layer, partly due to the deployment client (non-existent in this case, unlike the thick clients). After that, it depends a bit on what you want to do, the machinery of your users and if you hand over. Java Web Start works from Java 1.4 it seems to me, so it leaves a lot of possibilities.

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

    Re: Jms + swing

    SWT offers an intermediate approach: use as much as possible components of the system and implement other components in Java. SWT is written in Java and uses the JNI technology to call the native components. SWT uses as much as possible the native components of the system when they are presented, if they are rewritten in Java. Data for each component are also stored as much as possible in the native component, thus limiting the data stored in the corresponding Java objects.

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

    Re: Jms + swing

    Also the three advantages of SWT are timeliness, resources, smaller machines in performance and a beautifully rendered graphics components of the system used since it uses native components. This last point is particularly true for graphical environments whose appearance is changed. Despite this dependence on the graphics system of the runtime API of SWT is the same whatever the platform used. In addition to depend on the system used during the execution, SWT has another little problem. Not using pure Java objects, it is not possible to rely on the garbage collector to free memory components created manually. To free this memory, it is necessary to use the dispose method () for components instantiated when they are no longer useful.

  6. #6
    Join Date
    Feb 2010
    Posts
    796

    Re: Jms + swing

    The Swing library provides many features for managing the Human Machine Interface (or GUI, Graphical User Interface) of an application from the AWT library. The program DocumentViewer following implements the Swing component class JEditorPane that can view HTML files (or even edit them). This class works very simple: just use the method setPage () which takes as parameters the URL of the file to view. Like HTML pages displayed must comply with version 3.2 of HTML, this component also allows you to view HTML frames.

Similar Threads

  1. Applets V/s Swing in JAVA
    By "Dritan" in forum Software Development
    Replies: 3
    Last Post: 14-12-2010, 09:04 AM
  2. What are JFC and Swing?
    By DANIEL 602 in forum Software Development
    Replies: 5
    Last Post: 14-02-2010, 04:11 AM
  3. How to use HTML in Swing Components?
    By Silent~Kid in forum Software Development
    Replies: 4
    Last Post: 12-02-2010, 03:55 AM
  4. what is the difference between Swing and Awt?
    By Deepest BLUE in forum Software Development
    Replies: 4
    Last Post: 27-11-2009, 06:52 PM
  5. Print in java using Swing
    By Sheenas in forum Software Development
    Replies: 3
    Last Post: 18-11-2009, 09:50 AM

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,711,656,363.29849 seconds with 17 queries