Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 4 of 4

Thread: launching a application to look like a web page

  1. #1
    Member
    Join Date
    Apr 2014
    Posts
    219
    Thanks
    8
    Thanked 2 Times in 2 Posts

    Default launching a application to look like a web page

    I have been working on a home database just to get more conforatble with things and someone stumbed me with a question. I was asked why I choose swing and why I did launch it on a server to make it look like a web page. How can I do this? What is the advantages of doing it that way apposed to a swing application?


  2. #2
    Crazy Cat Lady KevinWorkman's Avatar
    Join Date
    Oct 2010
    Location
    Washington, DC
    Posts
    5,424
    My Mood
    Hungover
    Thanks
    144
    Thanked 636 Times in 540 Posts

    Default Re: launching a application to look like a web page

    The advantage to a web application is that you can just point people to a URL to view your program. With a Swing application, you generally have to have people download a jar and run it, which means they have to have Java installed, etc.

    In the past you could just convert your Swing application to an applet, but that comes with its own set of hurdles now.

    Generally you wouldn't program a web application frontend in Java. You would use html/css/javascript instead. The server can be in Java though.
    Useful links: How to Ask Questions the Smart Way | Use Code Tags | Java Tutorials
    Static Void Games - Play indie games, learn from game tutorials and source code, upload your own games!

  3. #3
    Member
    Join Date
    Apr 2014
    Posts
    219
    Thanks
    8
    Thanked 2 Times in 2 Posts

    Default Re: launching a application to look like a web page

    I would need to use JavaEE for that right?

  4. #4
    Crazy Cat Lady KevinWorkman's Avatar
    Join Date
    Oct 2010
    Location
    Washington, DC
    Posts
    5,424
    My Mood
    Hungover
    Thanks
    144
    Thanked 636 Times in 540 Posts

    Default Re: launching a application to look like a web page

    Assuming you want your server to be in Java, then yeah, that's the general idea.

    Note that this would be a *complete overhaul* of your existing code. You'd basically have to start from scratch and redo the server stuff (that code might be mostly the same, but chances are you have to redo how it all fits together), and then redo all the GUI stuff in html. It's up to you whether it's worth all the effort just for a learning project.
    Useful links: How to Ask Questions the Smart Way | Use Code Tags | Java Tutorials
    Static Void Games - Play indie games, learn from game tutorials and source code, upload your own games!

Similar Threads

  1. Replies: 1
    Last Post: August 4th, 2014, 05:47 PM
  2. Implementation of web data into non-web Java Application
    By MikeJones in forum What's Wrong With My Code?
    Replies: 0
    Last Post: August 4th, 2014, 05:43 PM
  3. Java Web application Standards for web 2.0
    By srautpyaa in forum Java Theory & Questions
    Replies: 0
    Last Post: May 27th, 2013, 07:46 AM
  4. J2ME application not launching
    By vishal21 in forum Java ME (Mobile Edition)
    Replies: 0
    Last Post: November 22nd, 2010, 01:15 PM
  5. Saving .jsp page as .pdf file while generating report for struts based web application
    By ravindra_kumar_tiwari in forum JavaServer Pages: JSP & JSTL
    Replies: 3
    Last Post: August 12th, 2008, 09:32 AM