by Dinesh Thakur Category: Swing


import java.awt.*;

import javax.swing.*;
public class JavaExampleSeperatorInJApplet extends JApplet
     JSeparator Sprtr = new JSeparator(JSeparator.VERTICAL);
     Dimension Dmnsn = Sprtr.getPreferredSize();
     public void init()
        Container Cntnr = getContentPane();
        Cntnr.setLayout(new FlowLayout());
        Cntnr.add(new JTextField("Welcome To Java"));
        Cntnr.add(new JTextField("Welcome To Java"));
        Sprtr.setPreferredSize(new Dimension(Dmnsn.width,80));
/*<APPLET CODE=JavaExampleSeperatorInJApplet.class WIDTH=400 HEIGHT=200></APPLET>*/
JSeparator Java Example

About Dinesh Thakur

Dinesh ThakurDinesh Thakur holds an B.C.A, 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.

Related Articles