ClickBank1
ClickBank1

Swing Set Java

swing set java
help me to call a dialogbox in java swing…?

i ve setup liquid feel to the window… when this feel is set up i am unable to call a dialogbox or use any dialog box… it shows exception like u cant use JDialogBox in JFrame.. But when i set up in default windows style it works… I cant change my code much…I want to work as such ie dialog box should pop up on my action on a frame ..It should work when i ve setup liquid look and feel…i m so vexed.. i m in need of that style and also the same code..help me soon please

My opinion is :
Don’t use JDialog to show pop up in your program. How about if you try using JOptionPane.

For example :
(NOTE:Change null to targeted JFrame which you want pop up box appear in targeted JFrame )

import javax.swing.JOptionPane;

public class MyTestProgram
{
public static void main (String[] args)
{
JOptionPane.showMessageDialog( null,”Hello” );
}
}

I hope it help.

Java GUI- Add MENU BAR TUTORIAL,help Swing, JMenuBar, JMenu

eBay Logo  

12


12″ Manzanita Wood Swing Parrot Bird Perch Cage Set Amazon like Java MZ-SW12M


$10.30


Graphic Java 2: Mastering the Jfc, By Geary, 3Rd Edition, Volume 2: Swing


Graphic Java 2: Mastering the Jfc, By Geary, 3Rd Edition, Volume 2: Swing


$22.19


Graphic Java 2 is quite simply the most comprehensive guide to the Java Foundation Classes available. Written for experienced programmers looking for thorough and detailed explanations of the JFC libraries, Volume 2 covers all aspects of the swing framework. Swing is the long-awaited successor to the AWT’s heavyweight components. It provides many components that AWT developers could previously onl…

The Definitive Guide to SWT and JFACE


The Definitive Guide to SWT and JFACE


$49.97


Need to build stand-alone Java applications? The Definitive Guide to SWT and JFace will help you build them from the ground up. The book first runs down the Java GUI toolkit history. Then the book explains why SWT is superior and provides extensive examples of building applications with SWT. You’ll come to understand the entire class hierarchy of SWT, and you’ll learn to use all components in the…



Leave a Reply