Can anyone help me to solve this code , its in a swing , jseparator...

hey
can any one solve this code ??
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
public class File1 extends JFrame
          public static void showgui()
               frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
               JLabel emptyLabel = new JLabel("");
     emptyLabel.setPreferredSize(new Dimension(640, 480));
     frame.getContentPane().add(emptyLabel, BorderLayout.CENTER);
               JButton b1= new JButton("JENIS");
               add(b1);
               b1.setBounds(350,220,120,20);
               JSeparator jE =new JSeparator(JSeparator.HORIZONTAL);
               jE.setBounds(350, 205, 120, 20);
               add(jE);
               add(new JSeparator(JSeparator.HORIZONTAL));
               JButton b2= new JButton("MODI");
               add(b2);
               b2.setBounds(100,210,100,100);
               frame.pack();
     frame.setVisible(true);
public static void main(String[] args)
     javax.swing.SwingUtilities.invokeLater(new Runnable()
          public void run()
               showgui();
actually i want to use jseparator , so if this cant be solved , send me another code that uses jseparator and gives the vertical / horizontal line between two buttons??
Its urgent ,
waiting for reply............

Hi,
Is this ok?
public class NewJFrameSep extends javax.swing.JFrame {
        public NewJFrameSep() {
        initComponents();
    private void initComponents() {
        jSeparator1 = new javax.swing.JSeparator();
        jButton1 = new javax.swing.JButton();
        jButton2 = new javax.swing.JButton();
        getContentPane().setLayout(null);
        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
        getContentPane().add(jSeparator1);
        jSeparator1.setBounds(110, 120, 170, 100);
        jButton1.setText("jButton1");
        getContentPane().add(jButton1);
        jButton1.setBounds(160, 80, 71, 23);
        jButton2.setText("jButton2");
        getContentPane().add(jButton2);
        jButton2.setBounds(160, 140, 71, 23);
        pack();
    public static void main(String args[]) {
        java.awt.EventQueue.invokeLater(new Runnable() {
            public void run() {
                new NewJFrameSep().setVisible(true);
   private javax.swing.JButton jButton1;
    private javax.swing.JButton jButton2;
    private javax.swing.JSeparator jSeparator1;
}regards
dina

Similar Messages

  • I have the iPhone 4 recently became weak Wi-Fi where I can not use the Internet only when sitting Bejjani router, Can anyone help me in solving this problem please iPhone 4, iOS 7.0.3

    I have the iPhone 4 recently became weak Wi-Fi where I can not use the Internet only when sitting Bejjani router, Can anyone help me in solving this problem please
    iPhone 4, iOS 7.0.3

    There's a whole lot to read in your post, and frankly I have not read it all.
    Having said that, this troubleshooting guide should help:
    http://support.apple.com/kb/TS1538
    In particular, pay attention to the mobile device support sections near the bottom, assuming you have already done the items above it.

  • ITunes producer error 3000 character content of element "file_name" invalid. Can anyone help me out? This happens when i try and submit an epub file, i haven't had this before.

    Can anyone help me out? This happens when i try and submit an epub file, i haven't had this before. "iTunes producer error 3000 character content of element "file_name" invalid."
    This is the full message

    You really need to put your codes between the
    [\code] tags
    see http://forum.java.sun.com/features.jsp#Formatting
    for more infoCode tags might make it look a little better, but there's still too darn much code. We're volunteers, after all. It'd be a lot of work to review all of this stuff. Can you demonstrate your problem with something smaller? Learn out how to do a combo box with just a page or two and then appy that to your big problem. That's how I'd do it. - MOD

  • Can  you help me to solve this problem (user-exit for xd02)

    Hi!
    can  you help me to solve this problem?
    transaction XD02
    To pass the length of the field to 7 max    for    KNA1-SORT   (Search criterion 1 )
    To pass the length of the field to 4  max   for   ADRC-SORT2  (Search criterion 2)
    It is not possible to save  the customer card as long as the search criterion is not univocal
    I seek one to use-exit .
    Thanks.

    Hi,
    Check the exit SAPMF02D.
    Regards,
    Surinder

  • HT4863 I have an error message coming up when trying to send an email which says 'sending the message failed because you're exceeding the limit' can anyone help me to resolve this please

    I have an error message coming up when trying to send an email which says 'sending the message failed because you're exceeding the limit' can anyone help me to resolve this please

    Try reentering the password in your iCloud mail settings.

  • While updating iphone software to 5.0.1, I am getting error message that Iphone cound not be updated because the firmware file is not compatible. Can anyone help me to resolve this issue.

    While updating iphone software to 5.0.1, I am getting error that Iphone could not be updated because the firmware file not compatible.
    Can anyone help me to resolve this issue.

    Using iTunes 10.5.2.11 on a PC running 64 bit Windows 7
    First did a full back up of  iphone using iTunes
    Put iphone into Recovery Mode ( http://support.apple.com/kb/ht1808 ). Erases all user data and settings!
    Disconnected USB cable from iphone
    Powered off iphone by holding down Sleep/Off button until slider appeared, slid to off, waited until screen dark
    Pressed and kept holding Home button while plugging cable back into phone
    I still saw the graphic on the iphone that said to plug into iTunes, so I unplugged and re-plugged cable. (I may have released the Home button too soon)
    Recovery Mode alert came up in iTunes.
    Followed all iTunes prompts to restore phone - it downloaded and sucessfully installed iOS 5.0.1
    iphone did not appear in iTunes due to missing pairing file (that made me nervous)
    iphone was now at factory settings. I followed prompts on iphone screen to start reactivation process
    Eventually the iphone asked if I wanted to restore from a back-up (whew!)
    A window opened in iTunes and I was able to select my previous back-up file for the restore
    A full restore from back-up then occured
    I also allowed a carrier settings update to occur when prompted (not sure that happens in all cases)
    When the restore was done I had to re-enter some passwords, but everything was there
    iOS is now 5.0.1 (9A406). The whole process took about an hour.

  • I just got the iPhone 5.  It's completely synced and working.  All my contacts are loaded.  However, caller ID is not working when I receive a call or a text.  Can anyone help me out with this?

    I just got the iPhone 5. It's completely synced and working.  All my contacts are loaded.  However, caller ID is not working when I receive a call or a text.  Can anyone help me out with this?

    Well, assuming all of the above, Notifications, etc., it just might be time for a visit to the Apple tore genius center for a session with the techs.  See if it is a fault in the hardware or just an iOS reinstall is the answer.
    One more thing you could try, backup so you have a record of content, then restore to factory conditions be an Erase All Contents and Settings.  Then restore from the backup you just made.  That has helped some with WiFi problems, may be it would work with your problems.
    But with that behavior of another app with problems, the geniuses looks like a less stressful thing to do.

  • HT1338 I have a macbook Pro i7 mid november 2010. I am wondering if i can exchange my notebook with the latest one. Can anyone help me out with this query please.

    I have a macbook Pro i7 mid november 2010. I am wondering if i can exchange my notebook with the latest one. Can anyone help me out with this query please.

    You can sell your existing computer using eBay, Craigslist or the venue of your choice. You could then use the proceeds to purchase a new computer.

  • HT201269 Can anyone assist me to solve this issue? how to purchase apps from Apple Store using in Afghanistan?

    Dear All,
       I use my iPhone here in Afghanistan, and location of my Apple ID is set to US, I want to purchase some apps from Apple Store but when i enter my credit card details so it ask me for US's Credit Card, Even i could not find Afghanistan in the list of countries.
    Can anyone assist me to solve this issue?
    Thank You.

    Sorry, but there is no iTunes Store for Afghanistan and you are not allowed to use the iTunes Store of any other country, so unless you physically go to another country and have a valid payment method issued in that country (an Afghani credit card will not be accepted), you cannot purchase apps.
    Regards.

  • HT1937 MY TELEPHONE STOLEN TODAY AND THE SERIAL NO. JR130L26DZZ I WANT TO CLEAR EVERY THING INSIDE THIS TELEPHONE PLEASE & THE I CLOUD CAN'T HELP ME PLEASE SOLVE THIS

    MY TELEPHONE STOLEN TODAY AND THE SERIAL NO. JR130L26DZZ I WANT TO CLEAR EVERY THING INSIDE THIS TELEPHONE PLEASE & THE I CLOUD CAN'T HELP ME PLEASE SOLVE THIS today ASAP
    delete every thing and if you can damged the software no problem because i have many important thing

    And if you didn't set up Find My iPhone, or it's not appearing in the Find My iPhone section of iCloud.com, then there's no way you can wipe the iPhone remotely. If, however, you set up a screenlock password, then someone would need to restore the iPhone to get past the passcode which will erase everything on the iPhone, and if you set the option to erase the iPhone after ten failed attempts at the passcode, your data is even more inaccessible.
    By the way, please be aware that you are not communicating with Apple when you post in these forums. These are user-to-user support forums, so in almost all cases the only people who will reply to your posts are, like me, your fellow users.
    Regards.

  • I recently used an external hard drive to back up photos etc from my mac, I didn't do a full system back up. Since then a finder window titled 'client node' keeps popping up every time i hit the spacebar. Can anyone help me please stop this happening?

    I recently used an external hard drive to back up photos etc from my mac, I didn't do a full system back up. Since then a finder window titled 'client node' keeps popping up every time i hit the spacebar. Can anyone help me please stop this happening?

    Click on it, choose Get Info from the File menu, and check the format.
    If it's formatted as NTFS, reformat it as MS-DOS, exFAT, or Mac OS Extended (Journaled) as desired, or install software such as Paragon NTFS on the computer.
    If it's formatted as FAT32 or exFAT, use the Disk Utility's Repair Disk command on it; this may also happen for a flash drive which is about to fail.
    If it's formatted as Mac OS Extended, click Authenticate and provide your administrator password, or change the permissions on that specific folder in its Get Info window.
    (109318)

  • My change to small screen facility has suddenly stopped working. Can anyone help as I use this a lot.

    the change to small screen icon in top right hand corner of screen has stopped working. Can anyone help.

    When you use the maximize/restore button, the window is restored to its last size. Some websites use a script to enlarge the window to its maximum size so when you switch from maximized to restored you hardly notice any change. You may have to manually resize the window by dragging the lower right corner. Does that help, or is the button just completely not working??

  • Can anybody help me to troubleshoot this code

    According to this code i must get the same number as o/p. But shift and add seems not functioning well.Can anybody help me to troubleshoot

    Hello Pushpa,
    Thank you for contacting National Instruments.
    Which code are you specifying
    Just make your problem clearly and elaborated
    you can send me your code & If you might want to contact the developer of your application, contact - [email protected]
    Have a great day.
    Regards~
    Mathews
    [email protected]

  • Can anyone help me to explain sample code in the KM sample

    Hi all ,I read a sample of resposity manager ,
    public class Node{
    protected List getProperties() throws ResourceException
              properties.add(SystemPropertyFactory.createHiddenProperty(false));
              properties.add(SystemPropertyFactory.createReadOnlyProperty(false));
                                    return properties;
    this is a short description of the customized reposiory manager Node code .
    I don't understand SystemPropertyFactory.createReadOnlyProperty(false); meaning
    the above programming API 's meanning ,can anyone explain to me ,it will used in which situdation?
    if I set SystemPropertyFactory.createReadOnlyProperty(true); so what's difference between these two method ?

    Hi,
    Is this ok?
    public class NewJFrameSep extends javax.swing.JFrame {
            public NewJFrameSep() {
            initComponents();
        private void initComponents() {
            jSeparator1 = new javax.swing.JSeparator();
            jButton1 = new javax.swing.JButton();
            jButton2 = new javax.swing.JButton();
            getContentPane().setLayout(null);
            setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
            getContentPane().add(jSeparator1);
            jSeparator1.setBounds(110, 120, 170, 100);
            jButton1.setText("jButton1");
            getContentPane().add(jButton1);
            jButton1.setBounds(160, 80, 71, 23);
            jButton2.setText("jButton2");
            getContentPane().add(jButton2);
            jButton2.setBounds(160, 140, 71, 23);
            pack();
        public static void main(String args[]) {
            java.awt.EventQueue.invokeLater(new Runnable() {
                public void run() {
                    new NewJFrameSep().setVisible(true);
       private javax.swing.JButton jButton1;
        private javax.swing.JButton jButton2;
        private javax.swing.JSeparator jSeparator1;
    }regards
    dina

  • Can you help me to solve this problem?

    i run this dcl in command window:
    alter table t storage (freelists 3) ;
    then oracle tell moe this error :
    ORA-10620: Operation not allowed on this segment
    but as i know ,the database version which is above 9i can support this dcl.
    my database version is oracle 10G release 2,the version is ok.
    so i am so maze,can you help me ? thank you very much!

    What does:
    select tablespace_name, segment_space_management
    from all_tablespaces
    where tablespace_name in
      select tablespace_name
      from all_tables
      where table_name = 'T'
    ;return?

Maybe you are looking for