Swing to Web

Hi,
I have a small Swing application.
Can I program some JSP etc. so that the application can be accessed via web?
Or is there a way to convert this small Swing app into web app?
Any help is appreciated.
Thanks in advance.
Prashant malik

Since you already have it written in Swing, you might want to look into Java Web Start:
http://java.sun.com/products/javawebstart/1.2/docs/developersguide.html

Similar Messages

  • How to use Swing in Web Applications

    Can you suggest me some good PDF or some good site for reading about using SWING in a Web Application.
    In our web application we plan to use JSP/Struts for the presentation layer. However there are a few screens that require some advanced UI like color coded assets and a graphical version of Outstanding Vs Available limit. We are wondering whether we should use SWING for these screens. Do you think this is a good idea or is there a better apprach to deal with this
    What are the disadvantages of using SWING VS JSP/Servlet in a Web environment. Is there a site or pdf where i can get information about this.

    As mentioned above, you could simply use an Applet, but I would discourage that approach.
    Although it's harder to have a good UI on the web, it's definitely possible (witness Gmail). You can do all sorts of clever things like building collapsible/expandable tree structures on the web with a little Javascript/CSS.
    Swing is much, much slower than regular HTML elements and the API for some Swing things is needlessly complicated (i.e. JTree).
    Could you be a bit more specific about the UI elements that you need? If you wanted to do something like Photoshop, well, it would be almost impossible on the web (to do it well at least), but many other applications are very do-able.

  • Swing GUI Web Service?

    Hi all,
    Is it possible to run a web service deployed with a GUI?
    For example, a user can enter their name on a website, and the name is added accordingly to a list within the GUI?
    Simple question I guess - Are there any simple example tutorials out there? I am using Tomcat.
    Thanks.

    Just to clarify:
    I want the user to be able to access a JSP page (can do this bit), which then makes a SOAP request to a web service deployed under Tomcat (can do this bit), and this request is then passed to a local application which performs various local processing before returning the original SOAP request (this is the bit I dont know how to do!).
    I hope this is clear! :-)

  • Classpath in Web Applications

    Dear all,
    I am fairly new to JSF. I used to develop Swing applications.
    It seems like I cannot get something right. Let's say my design is the following:
    1. database
    2. data access layer (hibernate)
    3. business layer to bring the pieces together
    4. swing layer / web layer
    I have just started working on the web layer. My business layer requires some configuration files (e.g. hibernate, logs etc...). Those are stored in a different project. Ideally, I would like to refer those files in the classpath of the web application without copying them.
    How can I do that?
    Thanks,
    Grege

    Thanks for your reply,
    That is the point, how do I modify the classpath of the webapp? I know the following are in there:
    - WEB-INF/classes
    - WEB-INF/lib
    But is that in the META-INF/MANIFEST.MF that I should add classpath entries?
    In Eclipse, I can link sources to the web project but I am not 100% satisfied with this option since the project must be rebuilt every time a config file changes.
    With Swing apps, I would just handle the classpath in my launching script...
    Thanks Again,
    Grege

  • Are there any Applet/Swing Case Studies

    We're trying to decide whether to change our company's OLTP product's UI from being HTML/JavaScript to Swing (applet or use Web Start for web based app). Is there anyone that uses Swing for their entire front end for a product that is accessed over the internet (not an intranet).
    Is development slower for Swing than HTML/JS; is app start-up and jar download too slow; are there proxy issues that are difficult to overcome? I'd appreciate any input that would help in this decision.
    Thanks,
    John

    We can incorporate Swings in Web Applications using Applets i.e Servlets /JSP.
    The pros are the Applets which are swing based download for the first time to the client side. If the user made any changes to these changes only those pages which are changed will be download which are cached.
    Concerns:
    If the cache is not updating properly once the applets are stored then the updations will not reflect in the web-page.
    Sufficient memory should be allocated for the Java - Cache memory.
    To overcome this drawbacks we can use JSF which is serve side component level scripting.
    -- Swaroop

  • Oracle Functional Testing for Web application

    Hi all,
    I am chandra and I want to know whether OTS will support Swings based web application ?
    I was trying to automate swings based application in OTS , but it is not supporting.
    if it support can you people say what changes should do in OTS setting ?
    With Regards,
    Chandraprasath Baskar

    HI
    OATS does not yet support swing based applications, there is an applet module in the pipeline. but I don't know when that will be available.
    Regards
    alex

  • Web / Desktop GUI API

    I am researching the possibility of and API that allows both dektop (Swing) and web (JSP) front-ends to be built from a single piece of source code. Does anyone know any projects that are currently looking at this?

    Hi bachan;
    Please try this search i belive you will find many think in it
    Also check
    Publicly Callable Business Process APIs in Release 11i & 12 [ID 121964.1]
    Regard
    Helios

  • JSP and Swing

    Hello friends,
    I am developing a web interface for a knowledge base. Now I have designed my interface in Java Swing. The main reason for choosing Swing is that I need JTree in my program.
    I would like to know whether we can use this swing files inside JSP? If not, How to create tree structure in JSP,in which nodes are added according to the values in the database?
    Another doubt is that, can we use swing for web applications?

    You can't use swing with JSP. JSP produces (mainly) HTML pages to run through the browser.
    With JSP no Java is run on the client machine, so Swing objects are out of the question.
    You have two options:
    1 - If you want to use swing, you will have to write it as an Applet / Application (run java on the client)
    2 - Investigate javascript/dhtml tree structures - there are several around. And it has been brought up several times on this forum.
    Good luck,
    evnafets

  • Alternate Web browser components

    Looking for Swing based Web browser components besides JEditorPane that can quickly display large HTML documents (>1MB). Preferably open source component that can be dropped into any Swing container. Any recommendations?

    Do you need CSS support? That makes a big difference, especially in the FREE market.
    Here's a link:
    http://today.java.net/pub/a/today/2004/05/24/html-pt1.html
    For a fee I would recommend either WebRenderer or NetClueSoft's Clue Browser or ICESoft's ICEBrowser.

  • Report Engine SDK - Rbean usage in standalone java application

    Post Author: Berndb
    CA Forum: JAVA
    In BOXI the rebean sdk is available in the Report Engine SDK.
    I remember that in the 6.5 world one could use RBEAN interface in a standalone java application.
    Is this still possible in BOXI R2?
    If yes can you supply a sample classpath which shows all libraries that needs to be assigned.
    Thanks in advance.
    bernd

    Post Author: datahog
    CA Forum: JAVA
    Ted's right, but for fun, take what you need from:
    <installation drive>:\Program Files\Business Objects\Tomcat\webapps\businessobjects\enterprise115\desktoplaunch\WEB-INF\lib
    and de-reference what's not needed when your project's done, but be careful.
    I've actually done some standalone Swing-based webi report renderers using https://xhtmlrenderer.dev.java.net/ + docHTMLView.getStringpart + TagSoup

  • Where can i find ADF BC application

    hi,
    i am using ADFBC Swing(not web app).
    i want to have an application like SRDemo but not web that i can learn how to do.
    thanks for help

    hi 7rouz
    (1) I've asked a similar question a while ago in this forum thread:
    "ADF Swing follow-on developer's guide"
    ADF Swing follow-on developer's guide
    (2) I'm not sure if this could still help you (or rather confuse you):
    "ADF JClient Component Demo"
    http://www.oracle.com/technology/sample_code/products/jdev/1012/jclient_guide/adf_jclientcomponentdemo.zip
    (This says to be "An Oracle JDeveloper 10.1.2 Demo" from "October 2004".)
    success
    Jan Vervecken

  • JAAS Authorization - Application Module

    I created a project based on the BC4J technology. The application module is configured for using the security : jbo.security.enforce=Must. This application module is also configured to deploy the user/password.
    When I used this application through a web application, I don't meet any problem.
    If I create a POJO class in the same project as BC4J in which I instantiate an instance in the application module pool, I receive the following message :
    oracle.jbo.JboException: JBO-29000: Unexpected exception caught: oracle.jbo.JboException, msg=JBO-33021: Failed authenticate user null.
    The java class in charge of instantiating the application module pool and get an instance of it works without any problem as soon as the security is not implemented.
    Hereafter you can find the method used :
    public ApplicationModule getApplicationModule()
    try{
    PoolMgr poolMgr = PoolMgr.getInstance();
    this.lg_ApplPool = poolMgr.findPool( this.lg_configPackage + "." + this.lg_configName, // name of the pool
    this.lg_configPackage, // name of the package
    this.lg_configName, // name of the configuration
    null);
    // SessionCookie Creation
    String timeStamp = (new java.util.Date()).toString();
    // for web application, replace timeStamp by ip address of the client
    this.lg_Cookie = lg_ApplPool.createSessionCookie(this.lg_applicationId,timeStamp,null);
    CordaEnvInfoProvider lEnvInfoProvider = new CordaEnvInfoProvider ("xxx","xxx");
    // this.lg_Cookie = lg_ApplPool.createSessionCookie(this.lg_applicationId,timeStamp,null);
    this.lg_Cookie.setEnvInfoProvider(lEnvInfoProvider);
    ApplicationModule lAM = this.lg_Cookie.useApplicationModule();
    return lAM;
    catch(Exception e)
    System.out.println("_CrdAppModulePoolMgr - exception : " + e.getMessage());
    e.printStackTrace();
    return null;
    After Having search quite a long time to find a solution, I have no more idea. The only thing I see now is to forget about Jaas if the application module has not to be used by a Java client not being a JClient (Swing) or a Web application.
    Could you let me know if
    1. jaas works with java client not being Swing or web application
    2. if so, could you give me more information about how to work with BC4J application module and security enforce to Must ?
    N.B.
    POJO Client :
    public class TestAppModulePoolMgr
    private ApplicationModule lg_Am = null;
    private CrdAppModulePoolMgr  lgCrdAppModulePoolMgr = null;
    private ApplicationPool lg_ApplPool = null;
    private SessionCookie lg_Cookie = null;
    public TestAppModulePoolMgr()
    this.lg_CrdAppModulePoolMgr = _CrdAppModulePoolMgr.getCrdAppModulePoolMgr();
    this.lg_CrdAppModulePoolMgr.setApplicationId("CrdGenerationAppModuleId");
    this.lg_CrdAppModulePoolMgr.setConfigName("_CrdGenerationAppModuleLocal");
    this.lg_CrdAppModulePoolMgr.setConfigPackage("CORDA_BSV");
    this.lg_Am = lg_CrdAppModulePoolMgr.getApplicationModule();
    this.lg_ApplPool = lg_CrdAppModulePoolMgr.getApplicationPool();
    this.lg_Cookie = lg_CrdAppModulePoolMgr.getApplicationSessionCookie();
    * @param args
    public static void main(String[] args)
    TestAppModulePoolMgr testAppModulePoolMgr = new TestAppModulePoolMgr();
    }

    Thank you.
    I use SSO authentication to test my application so have no users defined.
    Can I use the test-all user? If so, what is the password?

  • I'm a new java learner from china,how should I start my journey?

    I have never learned java before,how should I start it? Dose it hard to learn?
    At the beginning,which part of it should I learn?
    Thank you !

    Advice:
    1. Learn the basics with simple command line applications first. Don't worry about complicated topics like Swing, databases, Web applications, etc. for at six months
    2. After you learn how to write, compile & run programs with just a text editor & Java compiler, download & learn to use an Integrated Development Environment, such as Eclipse. Especially, learn how to use the debugger that comes with the IDE.
    3. Experiment with lots of small programs & examples. Learn by doing (and by making mistakes).
    4 Find others in your community who use Java & learn from them.

  • Java sdk debian ppc

    Hello,
    Im running Debian's PPC version of its OS. The only java sdk i can find for PPC
    is blackdown sdk 1.3.1 here ... http://penguinppc.org/projects/java/
    However , I write a lot of Swing apps :( Does anyone know if ther are any other
    SDKs avaliable for Linux PPC (One that supports swing and web start)
    Thanks,
    jd

    I did have the same problem until now,
    My System is a Sun Ultra 2, with Solaris 7 and a fresh installation of J2SE 1.4.1.
    After installation, I had the following problem
    $ java -version
    Error: failed /usr/j2se/jre/lib/sparc/client/libjvm.so, because ld.so.1: java: f
    atal: relocation error: file /usr/j2se/jre/lib/sparc/client/libjvm.so: symbol __
    1cG__CrunSregister_exit_code6FpG_v_v_: referenced symbol not found
    I just realized that Sun posted Patches for Java on Solaris.
    One of the Patches solved this problem.
    Here's the URL:
    http://sunsolve.sun.com/pub-cgi/show.pl?target=patches/patch-access
    Happy patching
    --PK

  • JSF with EJB

    Hi,
    I am new to JSF. I was wondering if anyone can shed some light on how to use JSF in J2ee environement? Will it be ActionListener's responsibility to update the model (communicate with EJB's)?
    Any help will be highly appreciated.
    Thanks,
    Paresh

    Hi,
    I am new to JSF. I was wondering if anyone can shed
    some light on how to use JSF in J2ee environement?
    Will it be ActionListener's responsibility toupdate
    the model (communicate with EJB's)?
    Any help will be highly appreciated.
    Thanks,
    PareshThere are of course many ways to address this
    question.
    I susspect the most common will be an Action's invoke
    method calling methods on a Session Facade [Core J2EE
    Patterns].
    So for example
    public String invoke() {
    // get myHome from a Service Locator [Core J2EE
    E Patterns]
    MyFacade facade = myHome.create();
    facade.doTheBizLogic(...);
    facade.remove();
    Hope this helps.
    -bd-This is indeed the sort of pattern that I expect will be quite popular. The nice thing is that it works for business logic implemented as EJBs, or as POJOs (plain old Java objects), or any other way that you like.
    From an architectural perspective, you'll do yourself a favor by isolating the functional part of your business logic into classes that do not depend on any given UI technology (i.e. the process of adding a new order for a particular customer is the same whether it's done in a client/server app based on Swing, a web application based on JavaServer Faces, or a web service based on JAX-RPC). Design your business logic so that it can be reused in any such environment.
    Craig McClanahan

Maybe you are looking for

  • Problem with skin for server side buttons.

    Hi, I have a problem with the skin for server side renderd buttons. In my CSS file I have : .AFButtonStartIcon:alias content:url(/skins/images/btns.JPG); .AFButtonEndIcon:alias content:url(/skins/images/btne.JPG); .AFButtonTopBackgroundIcon:alias con

  • Default logical system names for application and metadata in models.

    hi, I have a dbt in web dynpro java. When we create a model, we give the logical system names. When our developement is over, do we have to change these names because in test system and subsequently production system, the backends will be oviously di

  • SAPSCRIPT for Intrastat.

    Hi all experts! I have a question concerning sapscript and Intrastat. First some background information: Country's inside EU have to inform to the locally central Statistic bureau. This information can be printed out from SAP. For my case we have to

  • How To Delete a Row From a DataGrid

    Hai      I have attached a mxml in a txt format. because i am unable to attach the mxml, pl copy this txt file into flex and run the application.   1. Run the application.   2. Enter values in the textbox and click add, values will be added to the da

  • MS SQL Server Architecture (Query Processing)

     Explain Sql server Architecture for Select statement diagrammatically ?  Explain Sql server Architecture for Insert , update statements  diagrammatically ? bhagee