Plz help me in creating swing interface

Hi,
Iam new to swing.I have one Interface on swing.Now I want to add Jfilechooser object in my interface for selecting file from hard drive.So that I can upload this file through my servlet uploading programme.I want to set remote url also for saving the file.But I confused how I can do that.Plz guide me.
I try to create one interface but iam sure it is not the correct way.Can u plz try with my codes. Below r my codes:
import javax.swing.AbstractAction;
import javax.swing.Action;
import javax.swing.JToolBar;
import javax.swing.JButton;
import javax.swing.ImageIcon;
import javax.swing.JMenuItem;
import javax.swing.JCheckBoxMenuItem;
import javax.swing.JMenu;
import javax.swing.JFrame;
import javax.swing.JMenuBar;
import javax.swing.JTextArea;
import javax.swing.JPanel;
import javax.swing.JLabel;
import javax.swing.JScrollPane;
import javax.swing.JProgressBar;
import java.awt.*;
import java.awt.event.*;
import javax.swing.event.*;
import java.util.*;
import javax.swing.*;
import java.util.*;
import java.io.*;
import java.net.*;
import javax.swing.accessibility;
public class ActionDemo1 extends JFrame implements ActionListener
     JTextArea textArea,textArea1,textArea2,textArea3,textArea4,textArea5,textArea6,textArea7,
     textArea8,textArea9,textArea10,textArea11,textArea12,textArea13,textArea14,textArea15;
     private JProgressBar progressBar;          
     private JButton Button,Button1,Button2;     
     URL url;
     BufferedReader in;
     String str;
public ActionDemo1()
                    setTitle("Upload Interface");                               
                    addWindowListener(new WindowAdapter()
                         public void windowClosing(WindowEvent e)
                              System.exit(0);
     Container contentPane = getContentPane();          
     JMenuItem menuItem = null;
JToolBar toolBar = new JToolBar();
     JToolBar toolBar1 = new JToolBar();     
     JToolBar toolBar2 = new JToolBar();
     JToolBar toolBar3 = new JToolBar();
     JToolBar toolBar4 = new JToolBar();
     JToolBar toolBar5 = new JToolBar();
     JToolBar toolBar6 = new JToolBar();
     JToolBar toolBar7 = new JToolBar();
     JToolBar toolBar8 = new JToolBar();
     JToolBar toolBar9 = new JToolBar();
     JToolBar toolBar10 = new JToolBar();
     JMenu FirstMenu = new JMenu("File");
FirstMenu.setMnemonic(KeyEvent.VK_F);     
textArea = new JTextArea(5, 20);
     textArea1 = new JTextArea(2, 15);     
     textArea2 = new JTextArea(2, 15);
     textArea3 = new JTextArea(2, 15);     
     textArea4 = new JTextArea(7, 15);
     textArea5 = new JTextArea(7, 15);     
     textArea6 = new JTextArea(7, 15);
     textArea7 = new JTextArea(7, 15);
     textArea8 = new JTextArea(2, 15);
     textArea9 = new JTextArea(7, 15);
     textArea10 = new JTextArea(2, 15);
     textArea11 = new JTextArea(7, 15);
     textArea12 = new JTextArea(2, 15);
     textArea13 = new JTextArea(7, 15);
     textArea14 = new JTextArea(2, 15);
     textArea15 = new JTextArea(7, 15);
     JScrollPane scrollPane = new JScrollPane(textArea);
     progressBar=new JProgressBar();
     progressBar.setStringPainted(true);     
contentPane.setLayout(new GridLayout(2,3));
     JPanel panel1 = new JPanel();
     panel1.setLayout(new BorderLayout());
     panel1.setBackground(Color.blue);
     contentPane.add(panel1);
panel1.add(BorderLayout.NORTH, toolBar);
     panel1.add(scrollPane, BorderLayout.CENTER);
     panel1.add(progressBar,BorderLayout.SOUTH);     
     JPanel panel2 = new JPanel();     
     JLabel statusBar= new JLabel();
     panel2.setLayout(new GridLayout(1,1));     
     panel2.setBackground(Color.gray);     
     contentPane.add(panel2);
     JPanel panel3 = new JPanel();
     panel3.setLayout(new GridLayout(1,1));     
     panel3.setBackground(Color.blue);
     panel2.add(panel3);
     JPanel panel7 = new JPanel();
     panel7.setLayout(new BorderLayout());     
     panel7.setBackground(Color.blue);
     panel7.add(textArea2, BorderLayout.NORTH);     
     panel7.add(BorderLayout.CENTER, toolBar2);
     panel7.add(BorderLayout.SOUTH, textArea4);
     panel3.add(panel7);
     JPanel panel8 = new JPanel();
     panel8.setLayout(new BorderLayout());     
     panel8.setBackground(Color.blue);
     panel8.add(textArea3, BorderLayout.NORTH);     
     panel8.add(BorderLayout.CENTER, toolBar3);
     panel8.add(BorderLayout.SOUTH, textArea5);
     panel3.add(panel8);
     JPanel panel5 = new JPanel();
     panel5.setLayout(new BorderLayout());
     panel5.add(textArea1, BorderLayout.NORTH);
     panel5.add(BorderLayout.CENTER, toolBar5);
     panel5.add(BorderLayout.SOUTH, textArea7);          
     panel5.setBackground(Color.blue);
     panel3.add(panel5);
     JPanel panel6 = new JPanel();
     panel6.setLayout(new BorderLayout());
     panel6.add(toolBar1, BorderLayout.NORTH);          
     panel6.setBackground(Color.blue);
     panel6.setSize(new Dimension(5,5));
     panel6.add(BorderLayout.CENTER, toolBar4);
     panel6.add(BorderLayout.SOUTH, textArea6);
     panel3.add(panel6);
     JPanel panel4 = new JPanel();
     panel4.setLayout(new GridLayout(1,1));
     panel4.setBackground(Color.blue);     
     panel2.add(panel4);
     JPanel panel9 = new JPanel();
     panel9.setLayout(new BorderLayout());     
     panel9.setBackground(Color.blue);
     panel9.add(textArea8, BorderLayout.NORTH);     
     panel9.add(BorderLayout.CENTER, toolBar6);
     panel9.add(BorderLayout.SOUTH, textArea9);
     panel4.add(panel9);
     JPanel panel10 = new JPanel();
     panel10.setLayout(new BorderLayout());     
     panel10.setBackground(Color.blue);
     panel10.add(textArea10, BorderLayout.NORTH);     
     panel10.add(BorderLayout.CENTER, toolBar7);
     panel10.add(BorderLayout.SOUTH, textArea11);
     panel4.add(panel10);
     JPanel panel11 = new JPanel();
     panel11.setLayout(new BorderLayout());
     panel11.add(textArea12, BorderLayout.NORTH);
     panel11.add(BorderLayout.CENTER, toolBar8);
     panel11.add(BorderLayout.SOUTH, textArea13);          
     panel11.setBackground(Color.blue);
     panel4.add(panel11);
     JPanel panel12 = new JPanel();
     panel12.setLayout(new BorderLayout());
     panel12.add(toolBar9, BorderLayout.NORTH);          
     panel12.setBackground(Color.blue);
     panel12.setSize(new Dimension(5,5));
     panel12.add(BorderLayout.CENTER, toolBar10);
     panel12.add(BorderLayout.SOUTH, textArea15);
     panel4.add(panel12);
     //contentPane.setMaximumSize(new Dimension(600, 400));
     /*contentPane.setLayout(new BorderLayout());
     contentPane.setPreferredSize(new Dimension(400, 150));
     contentPane.add(toolBar, BorderLayout.NORTH);     
statusBar = new JLabel(" ");     
     contentPane.add(scrollPane, BorderLayout.CENTER);
     setContentPane(contentPane);*/     
     JMenuBar mb = new JMenuBar();
     setJMenuBar(mb);
mb.add(FirstMenu);     
menuItem = new JMenuItem("Quick connect", KeyEvent.VK_Q);
FirstMenu.add(menuItem);
     JMenu SecondMenu = new JMenu("Edit");
     SecondMenu.setMnemonic(KeyEvent.VK_E);     
menuItem = new JMenuItem("Suspend", KeyEvent.VK_S);
SecondMenu.add(menuItem);
mb.add(SecondMenu);
JMenu ThirdMenu = new JMenu("Compress");
     ThirdMenu.setMnemonic(KeyEvent.VK_C);     
menuItem = new JMenuItem("By Percentage", KeyEvent.VK_B);
ThirdMenu.add(menuItem);
mb.add(ThirdMenu);
JMenu FourthMenu = new JMenu("Help");
     FourthMenu.setMnemonic(KeyEvent.VK_H);     
menuItem = new JMenuItem("Help", KeyEvent.VK_B);
FourthMenu.add(menuItem);
mb.add(FourthMenu);
ImageIcon QuickConnect=new ImageIcon("images/Q_connect.gif");
JButton button=new JButton(QuickConnect);
button.setActionCommand("QuickConnect");
button.setToolTipText("Quick Connect");
button.addActionListener(this);
toolBar.add(button);
ImageIcon Reconnect=new ImageIcon("images/Reconnect.gif");
button=new JButton(Reconnect);
button.setActionCommand("Reconnect");
button.setToolTipText("Reconnect");
button.addActionListener(this);
toolBar.add(button);
ImageIcon Disconnect=new ImageIcon("images/Disconnect.gif");
button=new JButton(Disconnect);
button.setActionCommand("Disconnect");
button.setToolTipText("Disconnect");
button.addActionListener(this);
toolBar.add(button);
ImageIcon Upload=new ImageIcon("images/Upload.gif");
Button=new JButton(Upload);
Button.addActionListener(new ActionListener()
public void actionPerformed(ActionEvent ae)
String strCommand=ae.getActionCommand();
if(str.equals("Upload"))
/* this is where you write the code to call that servlet.
control reaches this point when the button is pressed */
try{
// you communicate with the servlet here
url = new URL("http://127.0.0.1:7001/servletUpload");
in = new BufferedReader(new InputStreamReader(url.openStream()));
str = in.readLine();
in.close();
}//end try
catch (Exception e1){}
toolBar.add(Button);
ImageIcon Suspend=new ImageIcon("images/Suspend.gif");
Button1=new JButton(Suspend);
//Button1.setActionCommand("Suspend");
Button1.setToolTipText("Suspend");
Button1.addActionListener(this);
toolBar.add(Button1);
ImageIcon Refresh=new ImageIcon("images/Refresh.gif");
button=new JButton(Refresh);
button.setActionCommand("Refresh");
button.setToolTipText("Refresh");
button.addActionListener(this);
toolBar.add(button);
ImageIcon DeleteItem=new ImageIcon("images/DeleteItem.gif");
button=new JButton(DeleteItem);
button.setActionCommand("DeleteItem");
button.setToolTipText("DeleteItem");
button.addActionListener(this);
toolBar.add(button);
ImageIcon Resume=new ImageIcon("images/Resume.gif");
Button2=new JButton(Resume);
//button.setActionCommand("Resume");
Button2.setToolTipText("Resume");
Button2.addActionListener(this);
toolBar.add(Button2);
ImageIcon FilePriority=new ImageIcon("images/FilePriority.gif");
button=new JButton(FilePriority);
button.setActionCommand("FilePriority");
button.setToolTipText("FilePriority");
button.addActionListener(this);
toolBar.add(button);
ImageIcon View=new ImageIcon("images/View.gif");
button=new JButton(View);
button.setActionCommand("View");
button.setToolTipText("View");
button.addActionListener(this);
toolBar.add(button);
ImageIcon Rename=new ImageIcon("images/Rename.gif");
button=new JButton(Rename);
button.setActionCommand("Rename");
button.setToolTipText("Rename");
button.addActionListener(this);
toolBar.add(button);
ImageIcon Scrolling=new ImageIcon("images/left.gif");
button=new JButton(Scrolling);
button.setActionCommand("Scrolling");
button.setToolTipText("Scrolling");
button.addActionListener(this);
toolBar1.add(button);
ImageIcon UScrolling=new ImageIcon("images/right.gif");
button=new JButton( UScrolling);
button.setActionCommand(" UScrolling");
button.setToolTipText("UScrolling");
button.addActionListener(this);
toolBar1.add(button);
ImageIcon Name=new ImageIcon("images/Name.gif");
button=new JButton( Name);
button.setActionCommand("Name");
button.setToolTipText("Name");
button.addActionListener(this);
toolBar2.add(button);
ImageIcon Date=new ImageIcon("images/Date.gif");
button=new JButton( Date);
button.setActionCommand("Date");
button.setToolTipText("Date");
button.addActionListener(this);
toolBar3.add(button);
ImageIcon Time=new ImageIcon("images/Time.gif");
button=new JButton( Time);
button.setActionCommand("Time");
button.setToolTipText("Time");
button.addActionListener(this);
toolBar4.add(button);
ImageIcon Size=new ImageIcon("images/Size.gif");
button=new JButton(Size);
button.setActionCommand("Size");
button.setToolTipText("Size");
button.addActionListener(this);
toolBar5.add(button);
ImageIcon TScrolling=new ImageIcon("images/left.gif");
button=new JButton(TScrolling);
button.setActionCommand("TScrolling");
button.setToolTipText("TScrolling");
button.addActionListener(this);
toolBar9.add(button);
ImageIcon DScrolling=new ImageIcon("images/right.gif");
button=new JButton( DScrolling);
button.setActionCommand(" DScrolling");
button.setToolTipText("DScrolling");
button.addActionListener(this);
toolBar9.add(button);
ImageIcon Name1=new ImageIcon("images/Name.gif");
button=new JButton( Name1);
button.setActionCommand("Name1");
button.setToolTipText("Name1");
button.addActionListener(this);
toolBar6.add(button);
ImageIcon Date1=new ImageIcon("images/Date.gif");
button=new JButton( Date1);
button.setActionCommand("Date1");
button.setToolTipText("Date1");
button.addActionListener(this);
toolBar7.add(button);
ImageIcon Time1=new ImageIcon("images/Time.gif");
button=new JButton( Time1);
button.setActionCommand("Time1");
button.setToolTipText("Time1");
button.addActionListener(this);
toolBar10.add(button);
ImageIcon Size1=new ImageIcon("images/Size.gif");
button=new JButton(Size1);
button.setActionCommand("Size1");
button.setToolTipText("Size1");
button.addActionListener(this);
toolBar8.add(button);
public void actionPerformed(ActionEvent e)
textArea.setText(e.getActionCommand());
public static void main(String[] args) {
ActionDemo1 frame = new ActionDemo1();
frame.pack();
frame.setSize(new Dimension(650, 400));
frame.setVisible(true);
Regards
Bikash

You may find this suggestion useless, but I thnk you should seriously consider tossing your IDE in the trash and getting a good text editor and hand coding Swing until you understand how Swing components work.
Take shortcuts when you understand where they will lead. You will find that hand coding really leads to a deeper understanding of any programming language.
While you're at it, why don't you consider whether you really need eleven (!) toolbars in your GUI. A GUI generally needs only one toolbar -- save some for later.

Similar Messages

  • I create. Apple. Id but asking review asking account information  n I can t sign in ,,,,,,,Plz help,,,,,?, I create. Apple. Id but asking review asking account information  n I can t sign in ,,,,,,,Plz help,,,,,?

    I create. Apple. Id but asking review asking account information  n I can t sign in ,,,,,,,Plz help,,,,,?, I create. Apple. Id but asking review asking account information  n I can t sign in ,,,,,,,Plz help,,,,,?

    You can't setup (create) an iCloud account using a PC. You must use an Apple device, a Mac or an iPhone etc. Once you have created an account you can sign in from your PC.

  • Plz help me to create a directory

    hi guys
    i'm trying to create directory to put xml files into it
    but i got error messages. as following
    SQL> create directory db2 as 'c:\az';
    Directory created.
    SQL> Grant all on directory db2 to public
    SQL> BEGIN
    2 DBMS_XMLSCHEMA.registerSchema(
    3 SCHEMAURL=>'http://homepagezz.com/Movies.xsd',
    4 SCHEMADOC=>bfilename('db2','Movies.xsd'),
    5 LOCAL =>false,
    6 GENTYPES=>false,
    7 GENTABLES=>FALSE,
    8 CSID=>nls_charset_id('AL32UTF8'));
    9 END;
    10 /
    BEGIN
    ERROR at line 1:
    ORA-22285: non-existent directory or file for FILEOPEN operation
    ORA-06512: at "SYS.DBMS_LOB", line 635
    ORA-06512: at "XDB.DBMS_XMLSCHEMA", line 127
    ORA-06512: at line 2
    so plz guys if u know help me

    ... bfilename('db2','Movies.xsd'), ...
    db2 must be in UPPERCASE. It is a directory object and therefore the name must be uppercased.
    ... bfilename('DB2','Movies.xsd'), ...

  • Plz help me for create connection

    Sir
    wellcome, i want to develop an single user application and i want to use oracle database
    instead of microsoft access.
    plz guide me which components of oracle database must be installed?
    can i use oracle database driver instead of jdbc-odbc bridge if it is possible where from i get and
    how can i use plz give me a example of code and how i set the path of database driver.
    if u have another sugesstion plz guide me that which database(cloudspace,hsqldb etc) i use
    ane wher cloudspace(free) available with driver and how use?
    i am very thankfull to u.
    actually i develop an application totaly plateformindependanet
    which run on 98,2000,and also xp but oracle for xp is not found me and i do not know how i configure
    oracle which run on xp.

    instead of microsoft access.
    plz guide me which components of oracle database must
    be installed?Use Oracle 8i or 9i Database server >> client optional
    can i use oracle database driver instead of jdbc-odbcUse a ConnectionLess DSN
    bridge if it is possible where from i get and Use oc4j.jar file and classes12.jar
    Search google.com on Using JDBC with Oracle for more information
    -Regards
    Manikantan

  • Plz help me to create pending sales order report

    Hi all,
               I need these INPUT AND OUTPUT FIELDS :
              Pending Sales Order Requirement Specification: 
              1.   Fields on selection screen (input screen) : Plant From to , Distribution channel From to , division  from to , date from to , Customer code from to.
              2.   Field in the output List :    Customer Code , Customer Name , Sales Order Number , sales Order Date , Material , open Qty , Scheduled  Qty , Deliver Qty , Balance Qty , Value , Total Value .

    Hi
    use the tables
    KNA1 -for Customer Number,Name (link KNA1-KUNNR  =VBAK-KUNNR)
    VBAK -Sales order Header (VKORG,VTWEG,SPART, AUDAT, KUNNR on selection screen) VBELn, AUDAT,NETWR for output fields
    VBAP -Sales Order item .Take WERKS(plant) for selection screen
    MATNR,KWMENG (qty) and NETWR  for Output
    VBEP- Schedule line data
    LIPS - Delivery data  equate lips-vgbel  and lips-vgpos with vbap-vbeln and vbap-posnr and fetch the Delivery qty
    OPEN qty  = Order Qty - Delivery Qty
    VBAP-KWMENG - LIPS-LFIMG
    Regards
    Anji

  • Regarding creating an interface in se24 and using in se38

    Hi,
       Plz could any body help me in creating an interface and using it in se38 with clear steps and saple code of se 38 how we write it.
    it is urgent plz help......
    Thanks,
    sana.

    You do know that in the context of SE24, interface is an object oriented term?
    DATA: my_obj TYPE REF TO zif_my_interface.
    CREATE DATA my_obj TYPE zcl_my_class.
    zcl_my_class implements zif_my_interface.
    matt

  • Plz help webdynpro issue

    hi guys,
    plz help me in creating my first webdynpro app
    i created 1 by using docs in sdn
    but afte finally activating
    i right clicked on webdynpro app and clicked test
    at dat time i am gettin this error
    you are not authorised to open this link
    http://copernic:0/sap/bc/webdynpro/sap/zz_00_sflight?sap-language-EN
    plz guide me how can i resolve it
    i m using citrix server to access sap
    so cannt tak help of basis guy

    Hi,
    make sure you've made all the necessary <a href="http://help.sap.com/saphelp_nw70/helpdata/en/43/e86de5008b4d9ae10000000a155369/frameset.htm">configuration</a> settings, especially the SICF settings.
    Regards, Heidi

  • Ora - 00600 error plz help urgent

    hello all sir plz. help would should i do.
    by mistake i made changes in spfile file.... after that i got this error
    any solution ?
    plz. help sir
    SQL> create pfile from spfile;
    create pfile from spfile
    ERROR at line 1:
    ORA-00600: internal error code, arguments: [733], [538970164], [pga heap], [],
    help sir
    waiting for reply

    first of all
    thanx for my reply
    sir i have bkp through rman but when i am connect to rman it give me error
    2. i have no pfile<sid>.ora file
    3. i try to start my database through pfile text file i got error..
    plz. reply sir what should i do.....
    how can i connect rman....
    C:\>set oracle_sid=db01
    C:\>rman target sys/oracle@db01
    Recovery Manager: Release 10.1.0.2.0 - Production
    Copyright (c) 1995, 2004, Oracle. All rights reserved.
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-00554: initialization of internal recovery manager package failed
    RMAN-04005: error from target database:
    ORA-12514: TNS:listener does not currently know of service requested in connect
    descriptor
    C:\>
    again thanx.
    i have full database bkp through rman.

  • Plz help using ms access as database,i want to create a login page in java

    hye frnz... plz help me m new to java
    m using ms access as database and try to create a login page where user type username and pw
    i had enter valid user entries in database i checked connectivity is working i want as user login the main window must open after checking username and pw field to database but
    now there is an error class not found exception sun:jdbc...... error
    plz help me i had stuck frm 4 days */
    import java.sql.DriverManager;
    import java.sql.Connection;
    import java.sql.Statement;
    import java.sql.ResultSet;
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    class Login extends JFrame
    //Component Declarations
    JLabel jlb1,jlb2;
         JTextField jtf1;
         JPasswordField jpf1;
         JButton jb1,jb2;
         //Constructor
         Login()
         //frame settings
              setTitle("Login Dialog");
              setLayout(new GridBagLayout());
              GridBagConstraints gbc = new GridBagConstraints();
              setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
              Dimension d= Toolkit.getDefaultToolkit().getScreenSize();
              setBounds(d.width/2-175,d.height/2-100,350,200);
              gbc.insets=new Insets(7,7,7,7);
         //adding components
              jlb1=new JLabel("User ID");
              gbc.gridx=0;
              gbc.gridy=0;
              add(jlb1,gbc);
              jlb2=new JLabel("Password");
              gbc.gridx=0;
              gbc.gridy=1;
              add(jlb2,gbc);
              jtf1=new JTextField(10);
              gbc.gridx=1;
              gbc.gridy=0;
              add(jtf1,gbc);
              jpf1=new JPasswordField(10);
              gbc.gridx=1;
              gbc.gridy=1;
              add(jpf1,gbc);
              jb1=new JButton("Login");
              gbc.gridx=0;
              gbc.gridy=2;
              add(jb1,gbc);
              jb1.addActionListener(new ActionListener()
                   public void actionPerformed(ActionEvent ae)
                   Connection conn=null;
                        Statement stmt=null;
                        boolean found=false;
                   try
                             Class.forName("sun.jdbc.driver.JdbcOdbcDriver");
                             String dataSourceName = "Inventory";
                             String dbURL = "jdbc:odbc:" + dataSourceName;
                             conn=DriverManager.getConnection(dbURL, "","");
                             stmt=conn.createStatement();
                             ResultSet rst=stmt.executeQuery("Select * from User");
                             System.out.println(jtf1.getText()+"/t"+jpf1.getPassword());
                             while(rst.next())
                                  System.out.println( rst.getString(1) +"/t"+ rst.getString(2));
              if(jtf1.getText().equals(rst.getString(1).trim()) && new String(jpf1.getPassword()).equals(rst.getString(2).trim()))
                                       found=true;
                                       rst.close();
                                       dispose();
                                       MainWindow mw= new MainWindow();     /*created min window object created to be opend after login but not working*/     
                                       break;
                             rst.close();
                             stmt.close();
                             conn.close();                    
                        catch(ClassNotFoundException e){System.out.print(e);}
                        catch(Exception e){System.out.print(e);}
                        if(found==false) /*this portion is executing and dialog box appears invalid name and pw with class not found exception sun:jdbc.......on console */
                             JOptionPane.showMessageDialog(null,"Invalid username or password",
                                  "Error Message",JOptionPane.ERROR_MESSAGE);
              jb2=new JButton("Clear");
              gbc.gridx=1;
              gbc.gridy=2;
              add(jb2,gbc);
              jb2.addActionListener(new ActionListener()
                   public void actionPerformed(ActionEvent ae)
                        jtf1.setText("");
                        jpf1.setText("");
                        jtf1.requestFocus();
              setSize(350,200);
              setVisible(true);
              jtf1.requestFocus();
         public static void main(String args[])
    Login l=new Login();
    Edited by: 795772 on Sep 19, 2010 4:44 AM

    795772 wrote:
    hye frnz... plz help me m new to java
    m using ms access as database and try to create a login page where user type username and pw
    i had enter valid user entries in database i checked connectivity is working i want as user login the main window must open after checking username and pw field to database but
    now there is an error class not found exception sun:jdbc...... error
    plz help me i had stuck frm 4 days */
    <snip>The subject of this forum is Oracle databases. How does your problem relate to that subject?
    Two bits of advice:
    1) Make sure you ask questions in a forum related to your problem.
    2) If you want to be taken seriously as a professional, drop the MS IM Speak and use the language of the forum. In this forum it is English, which is successfully used by many people for whom English is far from their native language.

  • I created an iCloud account and also had to get more space after I have done the purchase, I am unable to backup my phone! I have a stable wifi connection at home and all I see for hours and hours is "Backing Up .. Estimating time remaining"!!!!! Plz help

    I created an iCloud account and also had to get more space so after I have made the purchase, I am unable to backup my phone! I have a stable wifi connection at home and all I see for hours and hours is "Backing Up .. Estimating time remaining"!!!!! Plz help I'm unable to make the backup as I need to transfer all my data on my new iPhone 5S

    This may be caused by a corrupt existing backup that needs to be deleted, or by data on your device that is causing the backup to fail.  To troubleshoot these, try deleting your last iCloud backup (if you have one) by turning off iCloud Backup in Settings>iCloud>Storage & Backup, then tap Manage Storage, tap your device under Backups, then tap Delete Backup.  Then go back and turn iCloud Backup back on and try backing up again.
    If it still won't back up, you may have an app or something in your camera roll that is causing the backup to fail.  To locate which one, go to Settings>iCloud>Storage & Backup>Manage Storage, tap the name of your device under Backups, under Backup Options tap Show All Apps, then turn them all to Off (including camera roll) and try backing up again.  If the backup is successful, then the camera roll and/or one of your apps is causing the backup to fail and you'll have to located by process of elimination. Turn the camera roll On and try backing up again.  If it succeeds, turn some of your apps to On and try backing up again.  If it succeeds again, turn some more apps to On then try again; repeat this process until it fails.  Eventually you'll be able to locate the problem app and exclude it from your backup.
    In the meantime you can back up your phone to your computer by connect it, opening iTunes and going to File>Devices>Back Up.  Also be sure to transfer your purchases (File>Devices>Transfer Purchases).  Then set up your new phone and when given the option, choose Restore from iTunes Backup and follow the prompts to restore this backup to your new phone.  This will be much faster than using iCloud anyway.

  • Error 1430 occurred at Open/Create/Replace File in NI_Fuzzy_Logic_API.lvlib:FL Load Fuzzy System.vi- Untitled 3 Possible reason(s): LabVIEW: The path is empty or relative. You must use an absolute path. Not A Path how can i copy it in new vi plz help

    when i am copy the vi that is in find example>fuzzy>fuzzyEx with pi control the follwing error occuring 
    'error 1430 occured at open/create/replacefile in NI Fuzzy logic API.LVLIB FL LOAD FUZZY SYTEM.vi
    untitel 3 possible reason the pat is empty or relative you must se use an absolute patth <not apath>
    plz help me i only want that i can copy this vi in new vi but when i do so the above error occur and fuzzy logic cotroller is highlited 

    Hello Nofil,
    This is probably happening because you have made a copy of the VI without changing the name/ location on the disc. I have saved a copy of the VI for you, it is in LabVIEW 2010 SP1, please ask if you want this in a previous version.
    Regards
    Andrew George @ NI UK
    Attachments:
    Fuzzy Tanks with PI.vi ‏31 KB

  • Hi, I have moved to India from france and I am trying to update my payment options to the Indian visa card but it seems that no matter what I do I cant do it. I dont want to create a new ID..Plz Help!!!Just want to change my location and my payment detail

    Hi, I have moved to India from france and I am trying to update my payment options to the Indian visa card but it seems that no matter what I do I cant do it. I dont want to create a new ID..Plz Help!!!Just want to change my location and my payment details!! thanks in advance!!

    These are two possible approaches that will normally work to move an existing library to a new computer.
    Method 1
    Backup the library with this User Tip.
    Deauthorize the old computer if you no longer want to access protected content on it.
    Restore the backup to your new computer using the same tool used to back it up.
    Keep your backup up-to-date in future.
    Method 2
    Connect the two computers to the same network. Share your <User's Music> folder from the old computer and copy the entire iTunes library folder into the <User's Music> folder on the new one. Again, deauthorize the old computer if no longer required.
    Both methods should give the new computer a working clone of the library that was on the old one. As far as iTunes is concerned this is still the "home" library for your devices so you shouldn't have any issues with iTunes wanting to erase and reload.
    I'd recommend method 1 since it establishes an ongoing backup for your library.
    Note if you have iOS devices and haven't moved your contacts and calendar items across then you should create one dummy entry of each in your new profile and iTunes should  merge the existing data from the device.
    If your media folder has been split out from the main iTunes folder you may need to do some preparatory work to make it easier to move. See make a split library portable.
    Should you be in the unfortunate position where you are no longer able to access your original library or a backup then then seeRecover your iTunes library from your iPod or iOS device for advice on how to set up your devices with a new library with the maximum preservation of data.
    tt2

  • PLZ help in interfacing my VI with NI 5640

    I am interfacing Ni 5640 PCI with the example VI of the modulation toolkit "QAM transceiver" using the instrument driver of PCI 5640 not the labview FPGA driver
    My final constellation is with lot of errors.
    I am finding problems in setting the parameters of the PCI 5640. I am using the single tone generation VI at transmiter side and Spectrum measurement example Vi at RX side.
    parameters I am setting are
    at TX: 
    sampling rate of the complex cluster I am giving to ni 5640 R write waveform is 1600k S/s
    IQ rate giving to ni 5640 R configure generation is 1600k S/s
    Symbol rate is 100k Hz
    pulse shaping root raised cosine using 16 samples per symbol
    AT RX:
    what should be the span if i see in the example spectrum measurement or the IQ rate at the ni 5640 R configure acquisition
    how much samples to acquire?
    if my transmitted bits are 1044 and applying 4 QAM on them
    how should I resample my received array of IQ data????
    PLZ help or give me any example of a transceiver system interfaced with NI 5640r using instrument driver.

    good...yaar am too from AU
    so which dept r u from???and name..am from telecom A
    we r also doing 16 qam on dsp 6713, using labview...do meet me so dat we can resolve each others issues....
    regards
    wajahat Hassan

  • Plz help don't know how to create a query and link it to a UDF

    hi,
    i am new to business one and however hard i am trying to use a query to link it to a UDF, it is not working. i think i am doing the whole thing wrong,so ill just post one problem i have and if any one of u can explain to me in steps i may be able to learn to link other queries and UDFs.so plz help me out .
    problem:
    i want to display the account balance of every customer/vendor whenvever i open a marketing document. i have created a UDF for the marketing documents in the title with name and description 'account balance'.
    Now how do i link the customer/vendor name field to this UDF so that the query generated will show the account balance of the corresponding customer/vendor.plz tell me in steps as to what tables to choose ,what fields to choose, what conditions and relatoins to use in a query wizard
                                                                                    thank you

    hi,
    A/R invoice
    for name UDF:
    SELECT T0.CardName FROM OCRD T0 WHERE T0.CardCode = $[OINV.CardCode]
    for balance UDF:
    SELECT T0.Balance FROM OCRD T0 WHERE T0.CardCode = $[OINV.CardCode]
    A/P invoice
    for name UDF:
    SELECT T0.CardName FROM OCRD T0 WHERE T0.CardCode = $[OPCH.CardCode]
    for balance UDF:
    SELECT T0.Balance FROM OCRD T0 WHERE T0.CardCode = $[OPCH.CardCode]
    FOR OTHER FORMS ONLY CHANGE THE END OF THE QUERY    FOR Example
    $[OPCH.CardCode]
    OPCH  is the table name, change it to other table.
    save the query and set it to customer code for refresh in A/R invoice
    save the query and set it to Vendor code for refresh in A/P invoice
    regards
    sandip

  • Help: How to create a new interface in JDeveloper?

    I am a newbie for JDeveloper and have a simple question requiring your help. In JDeveloper, I can create workspace, project, class, applet, etc., by selecting various menu items. However, I can't find an menu item or toolbars so that I can create an interface in a project. I find an menu item(Wizard==>Implement Interface), but this is for implementing an existing interface, not for creating a new interface.

    This functionality is missing, you would need to create a class and then change it to an interface.

Maybe you are looking for

  • Id sync - AD to DS 5.2

    I have idsync for windows setup and syncing users between AD and DS 5.2 Question. If a new user is created in AD and sent over to DS5.2, how do I populate their uid, gid and homedir attributes with appropriate values? (i.e and uid & gid that don't pr

  • What is the minimum required for 10g RAC AIX 5.2L on a SAN

    We have the following 2 IBM p550's with AIX 5.2L Oracle 10g Hitachi SAN The questions I have are 1. Does one need any addtional software such as HACMP ? 2. Can one use just RAW 'disks' and not use ASM ? 3. Can one using just the raw 'disks' presented

  • TM can see a file saved in the future? I'm confused

    Hi All, I am have been using Time Machine for about a month. When I say using, I have never had to restore a file; my external drive just sits there doing its TM thing. Well, last night I needed to restore an important file and it didn't work. So eit

  • Interfacing LabVIEW 7 Express with VC

    My colleague has developed a Data aquisation software using VC++. I am required to build the user interface for it. How is it possible to call VC exe using LabVIEW 7. How can I pass parameters between the two. Please give some suggestions.

  • Formating number

    hi, in my jsp, somtimes when i display a float number, i have something like this 8.7E-4, i dont want this , iwould like to have 0.00087 instaed, and for all my jsp is there ant configuration to do, in the locale i think, have to use the fmt JSTL tha