by Dinesh Thakur Category: Swing


import java.awt.*;

import javax.swing.*;
import java.awt.event.*;
public class JavaExampleInternalDialogPaneInJApplet extends JApplet implements ActionListener
    private JButton BtnShw = new JButton("Show Internal Dialog");
    JDesktopPane DskTopPn = new JDesktopPane();
    public void init()
        Container Cntnr = getContentPane();
        Cntnr.add(BtnShw, BorderLayout.SOUTH);
        public void actionPerformed(ActionEvent e1)
           JOptionPane.showInternalMessageDialog(DskTopPn,"Welcome To java!","Dialog",JOptionPane.INFORMATION_MESSAGE);
/*<APPLET CODE =JavaExampleInternalDialogPaneInJApplet.class  WIDTH =360  HEIGHT=300 ></APPLET>*/
showInternalMessageDialog Example in Java

About Dinesh Thakur

Dinesh ThakurDinesh Thakur holds an B.SC (Computer Science), MCSE, MCDBA, CCNA, CCNP, A+, SCJP certifications. Dinesh authors the hugely popular blog. Where he writes how-to guides around Computer fundamental , computer software, Computer programming, and web apps. For any type of query or something that you think is missing, please feel free to Contact us.

Search Content

Popular Article