?
Solved

How can I use HTML to show a welcome screen in a java application?

Posted on 2010-04-02
7
Medium Priority
?
356 Views
Last Modified: 2013-12-29
Dear Experts,

I can use JEditor or anything, haven't started the project yet!

I would like to use an HTML page as the WELCOME screen when the Java app is loaded.

I've seen many other software do this before, the HTML page would ideally be on my server for me to modify but placing it on their hard disk when they install the program is acceptable too.

How can I have a HTML perform options in the Java application? (open settings and run searches - basically do what JButtons do)

Thanks!
0
Comment
Question by:Drace
  • 3
  • 3
7 Comments
 
LVL 1

Author Comment

by:Drace
ID: 29574340

Not exactly,

I want a JEditor Pane or an entire HTML page with Icons with hyperlinks on it (inside the application, think of it as the background when there are no open windows).

when the user clicks the Icon/Hyperlink they execute A Java command.


I already have the buttons and code, I just need to make a HTML page and link it to Jbutons.

I would only need to set Jbutton.doClick() but I don't know the part before that.

Thanks!
0
 
LVL 29

Expert Comment

by:chilternPC
ID: 29587752
this comment I found:
"On IE4 or better, you can't call java.* methods directly from Javascript or Jscript. IE javascript can only access the public methods of an applet (a class derived from java.applet.Applet) but don't have a general access to other java classes . So the solution is simple, wrap the java.* call in a public method of a "dummy" Applet.
for the whole lot see..
http://www.rgagnon.com/topics/java-js.html
0
The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

 
LVL 1

Author Comment

by:Drace
ID: 29589582

I don't get it.

sorry.

Sounds to me like it's worrying about a Browser (IE or Firefox) and I don't have that concern.

I'm using a JAVA Application (not an applet) and I want to use HTML Icons and links to execute commands (jbutton commands) within the software

This has absolutely nothing to do with the internet or permissions , it has to do with JEditorPane.
0
 
LVL 75

Expert Comment

by:Michel Plungjan
ID: 29633864
0
 
LVL 1

Author Comment

by:Drace
ID: 29636964

No, I want to use an JEditor Pane to view HTML code which executes Java commands (simple ones like Jbutton.doClick() )
0
 
LVL 75

Accepted Solution

by:
Michel Plungjan earned 2000 total points
ID: 29637462
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When crafting your “Why Us” page, there are a plethora of pitfalls to avoid. Follow these five tips, and you’ll be well on your way to creating an effective page.
There's never been a better time to become a computer scientist. Employment growth in the field is expected to reach 22% overall by 2020, and if you want to get in on the action, it’s a good idea to think about at least minoring in computer science …
This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.
The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.
Suggested Courses

601 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question