Question about Microsoft Internet Explorer 7

1 Answer

About java swing..

How to make java program using swing?

Posted by on

1 Answer

  • Level 1:

    An expert who has achieved level 1.

    Mayor:

    An expert whose answer got voted for 2 times.

    Problem Solver:

    An expert who has answered 5 questions.

  • Contributor
  • 2 Answers

Hi, if you have a specific query about java Swing, I can try to help you. Please find a small java code with using swing as example.

import java.awt.BorderLayout;
import java.awt.Font;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;
import java.awt.event.WindowListener;
import javax.swing.AbstractAction;
import javax.swing.Action;
import javax.swing.ButtonGroup;
import javax.swing.ImageIcon;
import javax.swing.JButton;
import javax.swing.JCheckBoxMenuItem;
import javax.swing.JFrame;
import javax.swing.JMenu;
import javax.swing.JMenuBar;
import javax.swing.JMenuItem;
import javax.swing.JRadioButtonMenuItem;
import javax.swing.JToolBar;
public class ToolbarDemo extends JFrame {
public static final String FontNames[] = { "Serif", "SansSerif", "Courier" };
protected Font fonts[];
protected JMenuItem[] fontMenus;
protected JToolBar toolBar;
public ToolbarDemo() {
super("Toolbars & actions");
setSize(450, 350);
JMenuBar menuBar = createMenuBar();
setJMenuBar(menuBar);
setVisible(true);
}
protected JMenuBar createMenuBar() {
final JMenuBar menuBar = new JMenuBar();
JMenu mFile = new JMenu("File");
ImageIcon iconNew = new ImageIcon("file_new.gif");
Action actionNew = new AbstractAction("New", iconNew) {
public void actionPerformed(ActionEvent e) {
System.out.println("new action");
}
};
JMenuItem item = mFile.add(actionNew);
mFile.add(item);
menuBar.add(mFile);
toolBar = new JToolBar();
JButton saveButton = new JButton("Save");
toolBar.add(saveButton);

getContentPane().add(toolBar, BorderLayout.NORTH);
return menuBar;
}
public static void main(String argv[]) {
new ToolbarDemo();
}
}
Thanks and Regards,
Supa.

Posted on Mar 18, 2009

Add Your Answer

Uploading: 0%

my-video-file.mp4

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

×

Loading...
Loading...

Related Questions:

1 Answer

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

Oct 07, 2016 | Internet & Communication Software

1 Answer

Canr play pogo ongoogle chrome


You need to install Java (from https://www.java.com/en/download/) to be able to play Pogo games. After installation you might need to restart your browser and/or computer before it works.

But please be aware that Java is frequently used to attack your computer with malware. So always update Java as soon as possible and also make sure you're always running an up-to-date antivirus program. At least make your AV program update once a day ...

Apr 12, 2014 | Google Chrome

1 Answer

Im having trouble with java. The program I want to use says it is not enabled, but when I look, it is.


try to uninstall the Browser and the Java software which is installed and re-install it !

Aug 31, 2012 | Mozilla Firefox

2 Answers

I want java for programmng....so can u tell which java version to download and send the link for it?


Hi,

If you want to do standard programming, download the Java SDK (also known as JDK). If you want a free editor in which you can write code, compile it, test it and so forth, download the version with NetBeans. The link is: http://java.sun.com/javase/downloads/index.jsp

Jun 08, 2010 | Sun Java System Web Server 6.1...

1 Answer

My google chrome is not working it just says loading.i have un installed it then re installed it lots of times what is happening i am fed up with this.please help!!!


Dear sir,


"Its a java based conflict that chrome is battling, and has been since the very beginning. Obvious advice is to disable extensions, then disable java within chrome. Its almost a definite that you will see improvement afterwards, to further speed it up change to the google dns, disable HTTP scanning in your AV, and make sure you're not running any 3rd party java apps with google (unless its just the java applet from sun micro)

For lightweight browsing security use adthwart instead of adblock plus.
Internet Download Manager destroys google chrome at the moment so you will have to choose one or the other.(Makes chrome un manageable)

It seems that chrome definitely conflicts with other programs that use the internet in certain cases. So if it seems that it can't be chrome then it probably isn't. To know for sure shut down all programs except for chrome and see how it runs then, and if it still is slow then you have a java conflict."
Source(s): http://www.google.com/support/forum/p/Ch…

Apr 09, 2010 | Google Chrome

1 Answer

Where did i found java to turned on it...


To use Java on your computer, you first need to install it. After installation it will run whenever a program requires it to.

Click here to visit the Java website. You'll find the download link.

If you still have any problem, reply back.

Jan 29, 2010 | Allied Telesyn Internet & Communication...

1 Answer

Ple tell me how to run the "javac" command in my laptop iam already installed the 1 6 version of java, and I set path is "C:Program Files (x86)Javajre1.6.0_16in", "java" command is exetues but java c...


javac is the JavaCompiler, You've downloaded the Java Runtime. You need to download the SDK, which includes javac.
http://java.sun.com/javaee/downloads/index.jsp

Jan 24, 2010 | Sun Java System Web Server 6.1...

1 Answer

I have java downloaded but it is not listed in my internet explorer advanced settings. java is not working


is there a java entry in Control Panel?

try and reinstall it via Add/Remove programs, or download a newer version.

you might only have the development suite installed, instead of the client.

if there is Java in control panel, this should indicate it is installed.

Sep 23, 2009 | Sun Java System Web Server 6.1...

2 Answers

I can get into yahoo mail but when I click on my inbox I get a loading sign and nothing happens


you can try optimizing your browser. if you're using internet explorer, click on tools > internet options. on the middle part of the general tab, under browsing history, click on delete and make sure you delete all temporary internet files and cookies. if it doesn't work, try another browser like firefox (download it for free at www.mozilla.com) or google chrome. if you're still having the same problem, then the problem is with yahoo.

Jun 04, 2009 | Microsoft Internet & Communication...

2 Answers

Java code


hello thahira,

ya i can assist u.
first u decide the back end. example(database or property files).
With the help of database you can easily updat eor retrieve the details. I'm here to assist you

Mar 30, 2008 | Shopnovell iFolder 1.0 Software Media Kit...

Not finding what you are looking for?
Microsoft Internet Explorer 7 Logo

Related Topics:

159 people viewed this question

Ask a Question

Usually answered in minutes!

Top Microsoft Internet & Communication Software Experts

Les Dickinson
Les Dickinson

Level 3 Expert

18299 Answers

Brian Sullivan
Brian Sullivan

Level 3 Expert

27725 Answers

demecoj

Level 2 Expert

52 Answers

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

Answer questions

Manuals & User Guides

Loading...