HTML for a GUI?  Possible, but probable?

I am familiar with Swing and JTextPane to render HTML pages within an application, but I would like to take my application a step further by making my entire GUI one large JTextPane (or any other method of displaying HTML) and all the buttons be part of an HTML file with <IMG> tags and other links that interface directly with my application. Can someone with any experience in this give me some direction as to how I should go about this and even if it's a reasonable solution?
The primary reason I'd like to do this is for my application I want to give users the ability to change the appearance of their interface, or just create multiple "skins" for them to change between given the complexity of what actually must be done on the HTML end.
Thank you,
Matt

You can implement your own HyperlinkListener interface which will process all user's clicks.
Also you can access to all HTML inner componens (buttons, textfields etc.) using following:
After adding HTML to your textPane use
Component[] containers=textPane.getComponents();
You obtain list of containers (one container for one component).
and
Component innerComponent=((Container)containers[0]).getComponent(0);
System.err.println(innerComponent.getClass().getName());
after that just perform typecast to button or textfiled or whatever and add your listener to this object.
Hope this helps
Best regards
Stas

Similar Messages

  • UWL: enabling the web GUI for html for work items

    Hi,
        We have configured UWL in portal. All the backend work items are appearing in the UWL iView in portal.
    But when we click on some of the work items SAP GUI opens instead of web GUI for html.
    Does any one have information what needs to be configured in UWL configuration xml file so as to enable the web GUI for html for rest of the work items?
    Regards
    Sk

    Hi,
        We have configured UWL in portal. All the backend work items are appearing in the UWL iView in portal.
    But when we click on some of the work items SAP GUI opens instead of web GUI for html.
    Does any one have information what needs to be configured in UWL configuration xml file so as to enable the web GUI for html for rest of the work items?
    Regards
    Sk

  • I try to create an html for IPad. The html page contains an element overlapping a video, now it works as for view but the focus is still with video. This denies the event of overlapping element from occuring. Can please anyone help to solve this issue?

    I try to create an html for IPad. The html page contains an element overlapping a video, now it works as for view but the focus is still with video. This denies the event of overlapping element from occuring. Can please anyone help to solve this issue?

    Hello,
    '''Try Firefox Safe Mode''' to see if the problem goes away. Safe Mode is a troubleshooting mode, which disables most add-ons.
    ''(If you're not using it, switch to the Default theme.)''
    * On Windows you can open Firefox 4.0+ in Safe Mode by holding the '''Shift''' key when you open the Firefox desktop or Start menu shortcut.
    * On Mac you can open Firefox 4.0+ in Safe Mode by holding the '''option''' key while starting Firefox.
    * On Linux you can open Firefox 4.0+ in Safe Mode by quitting Firefox and then going to your Terminal and running: firefox -safe-mode (you may need to specify the Firefox installation path e.g. /usr/lib/firefox)
    * Or open the Help menu and click on the '''Restart with Add-ons Disabled...''' menu item while Firefox is running.
    [[Image:FirefoxSafeMode|width=520]]
    ''Once you get the pop-up, just select "'Start in Safe Mode"''
    [[Image:Safe Mode Fx 15 - Win]]
    '''''If the issue is not present in Firefox Safe Mode''''', your problem is probably caused by an extension, and you need to figure out which one. Please follow the [[Troubleshooting extensions and themes]] article for that.
    ''To exit the Firefox Safe Mode, just close Firefox and wait a few seconds before opening Firefox for normal use again.''
    ''When you figure out what's causing your issues, please let us know. It might help other users who have the same problem.''
    Thank you.

  • I have install last update for i pod(ios5) but during installation there was one problem....i have restore my ipod and now i have lost all my buyed music!!Is not possible download it....?What are the details, including any error messages, related to your

    I have install last update for i pod(ios5) but during installation there was one problem....i have restore my ipod and now i have lost all my buyed music!!Is not possible download it....?What are the details, including any error messages, related to your question?

    Have you not got the music on your computer and/or on backups on, for example, external drives or CDs/DVDs ?

  • Can I open .pmd files in indesign? And how? Since indesign is a "substitute" for PageMaker it should/must be possible, but I don't know how to do it

    Can I open .pmd files in indesign? And how? Since indesign is a "substitute" for PageMaker it should/must be possible, but I don't know how to do it

    CS6 was the last version capable of opening Pagemaker files. It's included with Cloud subscriptions, so if you don't have it installed (or an earlier version) you can download it from your cloud subscription.
    To open them you use File > Open..., but the quality of conversion can range between nearly perfect and total garbage, depending on the PM file and the status of links (unembed images before trying to convert).

  • How can I use pdf pack to convert cubase documents  (music scores)  into pdfs? I am looking for the former possibility to install acrobat like a printer but i don't have this option with "pdf pack". Can you help?

    How can I use pdf pack to convert cubase documents  (music scores)  into pdfs? I am looking for the former possibility to install acrobat like a printer but i don't have this option with "pdf pack". Can you help?

    Hi mariab,
    What format are those music scores (I'm not familiar with cubase documents). But, it may be that Adobe PDF Pack doesn't support that format. In that case, Acrobat is the way to go. You can then print your files to PDF as you'd like. You're welcome to try Acrobat for free for 30 days to see whether it's going to work for you. If you decide it is, and you'd like to use it going forward, you could convert your PDF Pack subscription into an Acrobat subscription.
    Best,
    Sara

  • Most of my iPhone 4 memory is taken up with "other" there is no reason for this. I have tried to clear as much history as possible but cannot reduce the size of this.

    Most of my iPhone 4 memory is taken up with "other" there is no reason for this. I have tried to clear as much history as possible but cannot reduce the size of this.

    Try
    Do a reset (Hold Sleep/Wake and Home buttons about 10 secs or more till Apple logo appears)

  • I have held on to AppleWorks for as long as possible but Lion no longer supports it. Is there an app out there that converts AppleWorks to something Lion recognizes?

    HELP!  I have held on to AppleWorks for as long as possible but Lion no longer supports it. Is there an app out there that converts AppleWorks to something Lion recognizes?

    You can use Apple's iWorks suite of programs (Pages, Numbers, and Keynote) to do most of it in Lion.
    Pages will open AppleWorks 6 word processing documents.
    Numbers will open AW 6 spreadsheets.
    Keynote will open AW 6 presentations.
    You may already have those apps on your machine if you acquired it recently. If not, you can get them individually from the Mac Apple Store via download at about US$20 each; or on disk from the Apple Store for about US$80.
    Note - with regard to word processing documents, Pages will open AW 6 versions, but not any earlier versions (such as AW 5 or ClarisWorks). So, be sure to update all you docs to AW 6 before transferring them to the Lion-booted machine.

  • Searching for a GUI testing tool

    Hi all,
    I would like to create automated GUI tests for my Flex Air application which uses the 4.12 Apache Flex SDK. Unfortunately the most appealing testing tool is Flex Monkey which is not supported anymore by Gorilla Logic. Is there a way to make it work with the latest Flex SDK or do you know a tool that can be used for the same purpose and is able to leverage the latest Apache Flex SDK's automation library?

    See https://bugs.eclipse.org/bugs/show_bug.cgi?id=114159.
    "Paul Slauenwhite" <[email protected]> wrote in message
    news:g2o9dp$n8a$[email protected]..
    > Hi Hans,
    > Note, the AGR only supports Eclipse applications and not RCP/SWT
    > applications.
    >
    > An AGR recording is an XML macro containing events on widgets for
    > playback. Only verification hooks are implemented in Java code.
    >
    > Paul
    > "Hans Schwaebli" <[email protected]> wrote in message
    > news:be7ec383d2fbbae62ebcc7dd79fa3f11$[email protected]..
    >> We are searching for a GUI test tool or framework for testing RCP
    >> applications.
    >>
    >> I downloaded the TPTP version of Eclipse
    >> (eclipse-rcp-europa-winter-win32.zip) and installed the latest TPTP
    >> (webinstall). But I discovered that I only can do HTTP recording then.
    >>
    >> We need to record SWT events instead. Is this possible with TPTP?
    >>
    >> It seems to be possible according to
    >> http://www.eclipse.org/tptp/test/documents/userguides/Intro- Auto-GUI.html#2.0
    >>
    >> But there is no wizard "TPTP Automated GUI Tests" in my Eclipse. Why not?
    >>
    >> Another question is, whether that only records in XML or if it can be
    >> recorded as Java statements too?
    >>
    >
    >

  • Incoming Email not working for one web app, but IS working for others in same farm.

    I have enabled incoming email in a large multi-web application farm running SharePoint 2013 SP1 and the Feb 2015/March 2015 CUs that were pushed down in Windows Updates.  It works just fine for two web applications, but it will not work for one particular
    web application. I see the email land in the /drop folder. If I remove the email address from the library in http://nonworkingapp web
    application and use it on a library in a http://working web application, then the email is processed successfully. Conversely,
    if I take an address from a library in http://working and move it to a library inhttp://nonworkingapp it
    does not work. I've tried multiple site collections on http://nonworkingapp. This rules out any SMTP issues, etc. and means
    the issue is bound to this web application. Permissions are the same between the "non-working" and "working" locations: domain users are members on the site, and the library inherits permissions from the site.  The App Pool and Timer
    Service accounts have rights to the folder and to the library.
    The error in the ULS log is the typical error processing message, but it gives no additional information even though I have enabled Verbose logging.
    The Incoming E-Mail service has completed a batch. The elapsed time was 00:00: 00.0156294. The service processed 2 message(s) in total. Errors occurred processing 2 message(s): Message ID: Message
    ID:
    Typically, you see "alias not found" or some permissions or quota issue here, but this issue is NOT the same as those. In this case NO additional information is provided in ULS.
    Edit: running stsadm.exe -o refreshdms -url http://one/failing/site fixed some similar issues where "Unknown alias" was
    reported even though the list did have an alias (see here:http://blogs.technet.com/b/vinitt/archive/2009/07/15/e-mail-enabled-list-alias-information-is-not-synchronized-between-configuration-database-and-content-database.aspx).
    This did not fix the issue for the case mentioned above.
    What could possibly be the issue preventing incoming email from working on this one web application?

    Thanks for your reply.  Incoming E-Mail was running on all 3 WFE, however I do not think this was the cause.  As noted, _other_ emails send to http://workingapp are working just fine.  I can send two emails - one to a library on http://workingapp
    and another on http://notworkingapp.  The email to http://notworkingapp will sit in the drop folder, while the one to http://workingapp will be processed correctly.  In addition, the ULS log on WFE1 indicates an attempt to process the file fails.
     So clearly, the timer job on WFE1 is running and attempting to process the file.  For kicks, I disabled the service on WFE2 and WFE3, but with no change in the behavior.
    WRT to #1, I have done this already (as noted in the original post).  I can remove an alias from http://workingapp and place it on http://nonworkingapp and it is not processed.  If I return it to http://workingapp it is processed.  In other
    words, I go into Library Settings -> Incoming Email for a working library, and copy the alias, then disable incoming email for that library.  I then go to Library Settings -> Incoming Email for a non-working library, enable incoming email, and paste
    the alias.  Once done, emails sent to the alias are not processed.  I then do the reverse, and it works again.
    On #2, I have already tried multiple libraries on http://nonworkingapp (also as noted in the original post).
    In my environment, incoming email does not work for any library on http://nonworkingapp, but does work for any library on http://workingapp.  Troubleshooting listed above has ruled out any problem with basic mail server configuration or library settings
    - the problem is bound to http://nonworkingapp
    I'm not sure what you mean by "steps to reproduce the issue".  If I knew that, I would probably be able to solve the issue.  The best I could come up with to describe the situation would be:
    Set up SP 2010 in a three-node configuration with multiple web apps
    Enable incoming email and confirm it works
    Migrate to a SP2013 SP1 farm in a three node configuration.
    Enable a new email alias for a library
    Observe that it doesn't work for one web application.
    Obviously, it's pretty unlikely that attempting that in a lab would actually have the same result.

  • How to send Html Mail through navigateToUrl() with contentType "text/html" for Android ?

    Isn't it possible to send Html Mail through navigateToUrl() with contentType "text/html" for Android ? please suggest any workaround
    Thanks

    AHHHH
    What you can do to make HTML for Apple Mail is to make it in an HTML editor, open it with Safari use CMD+i - a new mail message will appear in a moment with the web page in the email body.
    You can't do any major editing in Mail, you'll have to go back to the HTML file. But it works.
    You can also use Copy (from a web page) and then (Edit) Paste as HTML (that what Paste as HTML is for, not for creating HTML email). You can also user Paste as HTML to copy/paste a HTML email you receive or part of a HTML email.

  • Requiring several database queries for my GUI - where to put the reads?

    Requiring several database queries for my GUI
    Hi all,
    I am to create a GUI with a couple of drop downs
    These are populated from database queries, as well as the main program reading from the database based on all inputs in the GUI.
    Should I put all database reads into a class as seperate methods.
    e.g,
    one method for the database read to populate the first combo box.
    a second method to take the choice from combobox 1 and read from the database to populate combobox 2
    a third method to then perform the main database read based on GUI selections from the above two methods..
    is this the 'right' way to do it.
    my GUI would then be in a sperate class.
    or should I sperate the 3 database reads into 3 different classes?
    thanks in advance,
    Matt

    BigDaddyLoveHandles wrote:
    walker8 wrote:
    You might also read some info on three tier design using MVC (Model, View, Control) if i recall correctly.
    Here's an article by Martin Fowler on GUI architecture: [http://martinfowler.com/eaaDev/uiArchs.html]
    awesome! that's just what i needed. i haven't read all of it yet but it gives me ideas about the classes i need.
    regards
    walker8

  • NWBC 3.0: Only HTML for ERP 6 EHP4?

    Hello Folks. Can't find a forum for NWBC - hope this one is fine. Looking at implementing NBWC 3.0 for a customer. Somewhat confused about something. Browsed, I guess, 20 notes and docs but still no definitive answer. Please help if you can.
    Seems NWBC 3.0 will run only HTML for ERP 6.0 - even with EHP4.  It will run GUI for Windows only as from EHP5.  Are these statements true?
    Thanks,
    Alan.

    Hi alan,
    The thing is SAPGUI is needed when you are going to work with NWBC for Desktop.
    Because NWBC for Desktop is for power users and not for light users. I mean who uses SAP applications tremendously in day to day life when compared to a normal user who will use once or twice or not frequently.
    But i get some problems. I am also on the same NWBC 3.0 with EHP5.0 installed.
    But the problem is I am not getting the Desktop search and other features like mentioned in the following youtube link:
    Particularly the first screen in the following link:
    [http://www.youtube.com/watch?v=Hld-xGkYCAo&feature=related|http://www.youtube.com/watch?v=Hld-xGkYCAo&feature=related]
    Please let me know, whether you get all these features in your screen or how to get these features.
    Are all these features supported by NWBC as plug-ins or it is a BSP, WDA like application.
    Best Regards,
    Suresh

  • HTML for multi-archive applet

    Could someone point me to some sample HTML for running an applet? Examples litter the web but I can't find anything that meets the following criteria:
    1. Valid XHTML 1.1 (uses 'object' tag).
    2. References multiple JAR files.
    3. Applet class not in default package.
    4. Executes successfully on latest versions of both Internet Explorer and Firefox.

    >
    I've made the app available via JNLP as well but was hoping to provide a version that would not require any user confirmations ..>Any JWS app. that requires 'user confirmations' would also require the end user to 'confirm' the digitally signed applet code.
    >
    ..and will remain embedded in a web page. >From 1.6.0_10+, an applet configured by JNLP can remain 'embedded in a web page'.
    >
    ..I don't understand why such a seemingly straightforward task entails a "heap of trouble" anyway. I got it working in Firefox with the following:
    I'm probably just missing some minor tweak for IE?>Out of just two browsers, probably on a single OS, you are already experiencing 'technical difficulties' with 50% of the target browsers. Multiply that to 4 major browsers across 3 OS' and you end up with 12 browser/JRE combos. Add to that odd little eccentricities in particular browser builds (e.g. at one time an entire page and applet would be reloaded in FF if the user scrolled 'up' - that is just one of my favourite quirks, not so much a rare one).
    That is (the tip of the iceberg) of why I mentioned it was a "heap of trouble" embedding an applet in a web page.
    Having said that, I am not able to advise on any tweak for IE. I am running Ubuntu, and on the occasions I deploy applets, I do it in HTML 4.01 Transitional (HTML 3.2 with styles added), and use the applet element.

  • Need advice in writing forum component for a GUI application

    Hello,
    I need to write a forum component for a GUI application, that is a visual component that would have all the usual forum functionality - creating threads, posting replies, editing, logging in, etc. I'm planning to use some existing forum engine on a JBoss/Tomcat server. So I do not need a web-interface for a forum, but I need find some engine written in java with a clear interface that I could use in my app. I tried JForum (http://www.jforum.net) first, but it seems it doesn't have open API I could utilize.
    Could anyone please suggest appropriate engine, possibly anyone knows of open-source forum GUI apps I can look at?

    Google? You've never heard of Google? Seriously? Did you just get Internet access yesterday?
    http://www.google.com

Maybe you are looking for

  • Photoshop trial cs6 on windows xp will not startup

    I downloaded the photoshop cs6 trial on my computer running windows XP and I am getting an error message and the program continuously force closes after loading.  What do I do?

  • Can you call a plsql application process from a validation?

    Can you call an on-demand plsql application process from a page validation? Thank you, Gayle

  • Hide 'Home Logout Preferences....' links in a OAF page.

    Hi guys: I need to develop a customization as following: Add controlling logic on a standard OAF page's button before submit, if the data cannot pass the check logic, it will open a new window and show the failed data. now , I have customized a new O

  • ECC6 IDOC - XI System Config

    Hi Guys, We are doing some testing on a new interface where IDOCs are sent to XI. On R/3 in We02 the idocs show successful but it's not going to XI. Where do I check on R/3 where (which XI system) the IDOCs are setup to go? Thanks, Jan

  • Speaker turns off?

    Every couple of weeks my Droid Maxx will become silent, for no reason. Although its screen display shows that the volume is at maximum setting. But the phone will not 'ring' plus I get "music playback error" message trying to play a song. Turning the