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
172262
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...

239 views

Ask a Question

Usually answered in minutes!

Top Microsoft Computers & Internet Experts

Sudeep Chatterjee
Sudeep Chatterjee

Level 3 Expert

3269 Answers

Grand Canyon Tech
Grand Canyon Tech

Level 3 Expert

3869 Answers

Brad Brown

Level 3 Expert

19190 Answers

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

Answer questions

Manuals & User Guides

Loading...