Microsoft Office Word 2007 Upgrade Version for PC (1 Computers) (059-05442) Logo
Posted on May 28, 2009
Answered by a Fixya Expert

Trustworthy Expert Solutions

At Fixya.com, our trusted experts are meticulously vetted and possess extensive experience in their respective fields. Backed by a community of knowledgeable professionals, our platform ensures that the solutions provided are thoroughly researched and validated.

View Our Top Experts

Jnlp code for the java program

I need an jnlp code for a java program to launch it through webstrat technology. Java code is as follows mport java.awt.*; import java.awt.event.*; import javax.jnlp.*; public class AWTExample extends Frame { // Object fields private Button copyButton; private Button cutButton; private Button pasteButton; private Button exitButton; public AWTExample() { super("Simple AWT Example"); setSize(450, 250); addWindowListener( new WindowAdapter() { public void windowClosing(WindowEvent e) { System.exit(0); } } ); ActionListener buttonListener = new ActionListener() { public void actionPerformed(ActionEvent ae) { String action = ae.getActionCommand(); if (action.equals("Exit")) { dispose(); System.out.println("Exiting."); System.exit(0); } else { System.out.println(action); } } }; // Toolbar Panel Panel toolbarPanel = new Panel(); toolbarPanel.setLayout(new FlowLayout(FlowLayout.LEFT)); copyButton = new Button("Copy"); copyButton.addActionListener(buttonListener); toolbarPanel.add(copyButton); cutButton = new Button("Cut"); cutButton.addActionListener(buttonListener); toolbarPanel.add(cutButton); pasteButton = new Button("Paste"); pasteButton.addActionListener(buttonListener); toolbarPanel.add(pasteButton); add(toolbarPanel, BorderLayout.NORTH); // Bottom Panel Panel bottomPanel = new Panel(); exitButton = new Button("Exit"); exitButton.addActionListener(buttonListener); bottomPanel.add(exitButton); add(bottomPanel, BorderLayout.SOUTH); } public static void main(String[] args) { AWTExample mainFrame = new AWTExample(); mainFrame.setVisible(true); } } Please help me

1 Answer

Dalynn Turner

Level 2:

An expert who has achieved level 2 by getting 100 points

All-Star:

An expert that got 10 achievements.

MVP:

An expert that got 5 achievements.

Vice President:

An expert whose answer got voted for 100 times.

  • Expert 346 Answers
  • Posted on Jun 12, 2009
Dalynn Turner
Expert
Level 2:

An expert who has achieved level 2 by getting 100 points

All-Star:

An expert that got 10 achievements.

MVP:

An expert that got 5 achievements.

Vice President:

An expert whose answer got voted for 100 times.

Joined: Apr 03, 2008
Answers
346
Questions
3
Helped
169830
Points
755

From command prompt: You can also launch an application from a command prompt by typing javaws jnlp_url where jnlp_url is a url to the jnlp file of the application. Go to Start > Run > type "cmd". A command prompt window will appear. Type "javaws url_of_jnlp"

Add Your Answer

×

Uploading: 0%

my-video-file.mp4

Complete. Click "Add" to insert your video. Add

×

Loading...
Loading...

Related Questions:

0helpful
1answer

How do I enable java in win10

Acces the Java Control Panel:
you can find the Java Control Panel through the Windows Start menu.
  1. Launch the Windows Start menu
  2. Click on Programs (All Apps on Windows 10)
  3. Find the Java program folder
  4. Click Configure Java to launch the Java Control Panel
If you don't see the Java folder then assume Java is not installed o your computer, then go to https://www.java.com/fr/download/manual.jsp

  • In the Java Control Panel, click the Security tab.
  • Select the option Enable Java content in the browser.
  • Click Apply and then OK to confirm the changes.
  • Restart the browser to enable the changes.
Hope this help...
0helpful
1answer

What is jnlp file i cant open streaming quotes

Its a Java File, Need to download Java and set it up
3helpful
1answer

Hey plz help me java better ya .net ya oracle??

10 Reasons Why dotNET Is Better Than Java

This post is prompted by a post by SANDIP when he said something like "Java Is Dead" and some people were like attacking him for expressing his view.

I've been a fan of the Java technology for quite some time now. I remember literally copying a Java book when I didn't have the money to buy it.

But one thing I discovered with technology is that it's not always about love but it's more about power.
The bitter truth is when I compare java technology with CLI (popularly known as .NET), I see that Java is less powerfull in many areas.

I'll be using the words CLI and .NET interchangeably refferring to any implementation of the CLI (.NET, Mono or dotGnu)
This are some of my points.

1- In .NET you have a choice of languages to code with (C#,VB.NET, Java,Boo,Python e.t.c), producing the same type of compiled code but in Java one is limited to the java language. One may argue that jython is an alternative, but even the creator of jython who later created it's .NET version called IronPython admitted that .NET is a more powerful technology.

2, NET prgrams run at native speed while java is interpreted which makes java slower.Although java has Just In Time compilation but it stills run slower. With .NET you are not limited to JIT but have the option AOT or ahead of time compilation if you want to eliminate startup delays.

3. Calling native code in java is not a very clean process. You need to generate some stub files which makes the whole process cumbersome and dirty. In .NET you just declare that you are calling a native function from a specified library and just start calling it.

4. .NET languages are richer than Java. They have object oriented feature that are absent in java e.g properties,delegates,generics.

5. Java GUI programs look alien on the host operating system. Even if you use the OS's theme you still notice that the java widgets look out of place.

6. .NET in the form of Mono has brought a whole revolution on the linux desktop in form of great applications like beagle, tomboy, diva, iFolder, banshee e.t.c. This is something that java has failed to do despite the fact that it's been there long
before .NET

7. Many programs that would have been difficult to develop with java have been developed with .NET things like compilers (Mono's C# and VB.NET) 3D game engines (unity game engine) e.t.c

8. The CLI is an open standard maintained by an independent standards organization (E.C.M.A) while java is still governed by SUN microsystems.Even though java has recently been open-sourced, it's future will still be highly influenced by SUN.

9. You can code on the .NET platform using Java but you cannot code on Java platform using any of the .NET languages.

10. Using Mono's IKVM to call java code from .NET or convert java classes to .NET assemblies. This is so efficient that large java programs like the eclipse I.D.E have been runned on .NET.

This is not an exhaustive list but I believe 10 points are enough to send the message.

One more thing, feel free to criticize my views or even flame me.

----YOUR CHIRAG------
0helpful
1answer

Which language is best for project,java or .net

JAVA = Old Skool...... Dot Net, is Hip, Now.... Java.. works, sometimes, Dot Net, work, works most times.
1helpful
1answer

How to program calculator in java

Hello,
If the question is : how to make a programmable calculator run a program written in Java, the amswer is : you cannot. Maybe the newer ones.

But if you are looking for the source code of a Java applet that simulates a calculator, then maybe you should launch a Google search with keywords Java calculator and see what you get. I do not want to spoil your fun by supplying a link to what my search returned.
Hope it helps.
3helpful
1answer

Nokia 6650 series 40/GSM wont support exe and zip files-help!

Your phone supports Java Configuration . It can support archive files. But if your phone doesn't support .zip files, then try java archives files like .jar(java archive) , .jad(java application descriptors) or .jnlp(java network launch protocol).
These are all executable in your mobile & you can browse & download ur mobile widgets or applications with these extensions. These are also lighter versions and easy to install.

I hope this info satisfies u
yashrajsen
1helpful
5answers

Can anyone tell how run java program in cmd prompt???

Hi,

You need to type:

If it's a program.class

java program

or of it's a program.jar

java -jar program.jar

regards
0helpful
3answers

What is servlets?

Java Servlet technology provides Web developers with a simple, consistent mechanism for extending the functionality of a Web server and for accessing existing business systems. A servlet can almost be thought of as an applet that runs on the server side--without a face. Java servlets make many Web applications possible.  » Read More The reference implementation is included in the Java EE 5 SDK and also in the open-source Java Platform, Enterprise Edition (Java EE) application server, available through the GlassFish project, which you can download from java.net. The reference implementation source code is available from the servlet-sources project on java.net.
0helpful
1answer

Can't launch java application on windows vista

For free sony support go the link choose the produce and chat for free
http://esupport.sony.com/US/perl/support-contacts.pl

Thanks for using fixya. Hope this solution may have helped you.
Not finding what you are looking for?

236 views

Ask a Question

Usually answered in minutes!

Top Microsoft Computers & Internet Experts

Grand Canyon Tech
Grand Canyon Tech

Level 3 Expert

3867 Answers

k24674

Level 3 Expert

8093 Answers

Brad Brown

Level 3 Expert

19187 Answers

Are you a Microsoft Computer and Internet Expert? Answer questions, earn points and help others

Answer questions

Manuals & User Guides

Loading...