JDialog creation in Jbuilder

I have created a Jdialog and set various component on it throughDesign of Jbuilder.Now after creating the GUI,when i press Control Z,an empty Dialog comes up which is same as the one i created.

Is there any bea newsgroup for JBuilder, as far as there's a JBuilder Weblogic
Edition version launched or should I try in Borland's newgroups?
"Slava Imeshev" <[email protected]> wrote:
Hi Ignacio,
I suggest contacting Borland support or posting this question in the
related
jbuilder newsgroup.
Regards,
Slava Imeshev
"Ignacio" <[email protected]> wrote in message
news:[email protected]..
Hi,
I have installed Weblogic Server 7.0 and Jbuilder 8. I configure Weblogicas the
application server, but there is one service (Jar Creation) which isnever
enabled.
Why? Isn't it possible to create JAR files for weblogic as I did inJbuilder 6?
Should I use any weblogic specific tool for doing so?
The JAR files I create with Jbuilder8 don't contain the stub and skeletonclasses
I need!!!! In Jbuilder6 it was not necessary to specify a serverapplication for
every service, just one for all, and it worked fine, generating everythingI needed
in my JAR.
Help!!!!

Similar Messages

  • Jar creation from JBuilder file structure

    Hi,
    I've got a program written in jBuilder 4. It does not have the jar creation feature.
    So I've created a jar manually, but I'm having problems finding the main class from the manifest.
    I've created the manifest with no problems:
    Manifest-Version: 1.0
    Main-Class: Application1
    Created-By: me
    Where Application1 is the name of my main class. I've even tried chnging the file path to Application1 such as:
    Main-Class: programfile/classes/programname/Application1
    But whenever I create the jar and double click on it I get an error saying that cannot find main class.
    Does anybody know how to access the main class from a program created in JBuilder???
    Cheers for any help,
    Al

    Cheers for the suggestion, but I managed to sort the problem.
    For anyone else out there who's trying to jar a JBuilder file manually:
    You only need to jar the "class" folder that JBuilder creates for you, not ther entire project. (If you have a file containing images then that will need to be included as well).
    If you've not named your main class the same as the pakage name, then the mane of your main class is packagename.main
    For example if your package is called "Program" and your main class is called "Main" then you need to include the following line in the manifest:
    Main-Class: Program.Main
    Hopes this helps someone.
    Al

  • Weblogic jar creation in Jbuilder 8

    Hi,
    I have installed Weblogic Server 7.0 and Jbuilder 8. I configure Weblogic as the
    application server, but there is one service (Jar Creation) which is never enabled.
    Why? Isn't it possible to create JAR files for weblogic as I did in Jbuilder 6?
    Should I use any weblogic specific tool for doing so?
    The JAR files I create with Jbuilder8 don't contain the stub and skeleton classes
    I need!!!! In Jbuilder6 it was not necessary to specify a server application for
    every service, just one for all, and it worked fine, generating everything I needed
    in my JAR.
    Help!!!!

    Is there any bea newsgroup for JBuilder, as far as there's a JBuilder Weblogic
    Edition version launched or should I try in Borland's newgroups?
    "Slava Imeshev" <[email protected]> wrote:
    Hi Ignacio,
    I suggest contacting Borland support or posting this question in the
    related
    jbuilder newsgroup.
    Regards,
    Slava Imeshev
    "Ignacio" <[email protected]> wrote in message
    news:[email protected]..
    Hi,
    I have installed Weblogic Server 7.0 and Jbuilder 8. I configure Weblogicas the
    application server, but there is one service (Jar Creation) which isnever
    enabled.
    Why? Isn't it possible to create JAR files for weblogic as I did inJbuilder 6?
    Should I use any weblogic specific tool for doing so?
    The JAR files I create with Jbuilder8 don't contain the stub and skeletonclasses
    I need!!!! In Jbuilder6 it was not necessary to specify a serverapplication for
    every service, just one for all, and it worked fine, generating everythingI needed
    in my JAR.
    Help!!!!

  • Deleting JAR Creation on JBuilder

    I used the Archive Wizard on JBuilder to create some archives that are created during building. But now I want to stop one from being created, how do I do it??? JBuilder doesn't seem to offer any way of keeping track of archives after you set one up.

    Never mind, had that lefttop menu sized down, inadvertantly looked there and saw em listed next to the classes

  • JAR creation JBuilder

    I'm trying to create a .jar file with this manifext file:
    Manifest-Version: 1.0
    Name: classes\Testing.class
    Main-Class: classes.Testing
    (JBuilder created the manifest file but I added the Name: Line)
    The problem is no matter what I try for Main-Class whenever I run the program I get a "main class could not be found" error. The Testing.java is in a folder called "src" and the Testing.class is in a folder called "classes".
    Please help I've been trying to do this for hours now!
    P.S. And yes theres a carriage return after main-class

    Which it probably isn't unless a package is a folder which I doubt. You doubt? Is it in a package/folder or isn't it? Does your Testing.java file have "package XXX;" as its first line? If so, it should be in package XXX. If not, it's in the default package, and the class name is "Testing".
    so then what would I put there just "Testing"?This is Java 101. Better go read about packages and how to compile classes that have them.
    The class name should be "Testing.class". If it has a main(), then Main-Class should be "Testing".
    %

  • Configuring JBuilder JDK's

    Hello again,
    Well my CLASSPATH is now perfectly set and I can Compile my
    code of MySql in Java 1.4.1 but now the problem is with my JBuilder
    I changed the configuration of my project from the JDK from 1.3 the
    default JBuilder JDK to the Java 1.4.1 but when I make my project it
    gives me the following error
    Warning #: 910 : cannot check class java.awt.event.ItemEvent; class file has wrong version 48.0; assuming package java.awt.event is stable; use of -nomakestable is recommended
    Warning #: 910 : cannot check class gsales.SalesFrm$1; problem with import: class file has wrong version 48.0; assuming package gsales is stable; use of -nomakestable is recommended
    What's the problem?

    I tried to compile my project with the command line Java tools but ended up in the following errors
    SalesFrm.java:79: cannot resolve symbol
    symbol  : class Login_Dialog
    location: class gsales.SalesFrm
       Login_Dialog login = new Login_Dialog();
       ^
    SalesFrm.java:79: cannot resolve symbol
    symbol  : class Login_Dialog
    location: class gsales.SalesFrm
       Login_Dialog login = new Login_Dialog();
                                ^
    Note: SalesFrm.java uses or overrides a deprecated API.
    Note: Recompile with -deprecation for details.
    2 errorsThese are the two classes:
    Login_Dialog.java
    package gsales;
    import java.awt.*;
    import javax.swing.*;
    import java.awt.event.*;
    import java.sql.Connection;
    import java.sql.DriverManager;
    import java.sql.SQLException;
    public class Login_Dialog extends JDialog {
      JPanel panel1 = new JPanel();
      JPanel south = new JPanel(new FlowLayout(FlowLayout.CENTER));
      JPanel center = new JPanel(new GridLayout(2,1));
      BorderLayout borderLayout1 = new BorderLayout();
      JButton Login_But = new JButton();
      JButton Cancel_But = new JButton();
      JPanel userpane = new JPanel();
      JPanel passpane = new JPanel();
      JLabel User_Label = new JLabel();
      JLabel Pass_Label = new JLabel();
      JLabel Top = new JLabel();
      JTextField UserName = new JTextField();
      JPasswordField Password = new JPasswordField();
      String user, pass;
      public Login_Dialog(Frame frame, String title, boolean modal) {
        super(frame, title, modal);
        try {
          jbInit();
          pack();
        catch(Exception ex) {
          ex.printStackTrace();
      public Login_Dialog() {
        this(null, "Sales Login", false);
      void jbInit() throws Exception {
        panel1.setLayout(borderLayout1);
        this.setResizable(false);
        this.setModal(true);
        Login_But.setFont(new java.awt.Font("SansSerif", 1, 30));
        Login_But.setMaximumSize(new Dimension(150, 49));
        Login_But.setPreferredSize(new Dimension(133, 49));
        Login_But.setText("OK");
        Login_But.addActionListener(new java.awt.event.ActionListener() {
          public void actionPerformed(ActionEvent e) {
            UserLogin(e);
        Cancel_But.setFont(new java.awt.Font("SansSerif", 1, 30));
        Cancel_But.setText("Cancel");
        Cancel_But.addActionListener(new java.awt.event.ActionListener() {
          public void actionPerformed(ActionEvent e) {
            onCancel(e);
        User_Label.setText("User Name: ");
        Pass_Label.setText("Password: ");
        UserName.setPreferredSize(new Dimension(150, 21));
        Top.setFont(new java.awt.Font("Dialog", 1, 40));
        Top.setPreferredSize(new Dimension(206, 80));
        Top.setHorizontalAlignment(SwingConstants.CENTER);
        Top.setHorizontalTextPosition(SwingConstants.CENTER);
        Top.setText("User Login");
        Password.setText("");
        Password.setPreferredSize(new Dimension(150, 21));
        user = UserName.getText();
        pass = Password.getPassword().toString();
        getContentPane().add(panel1);
        panel1.add(Top, BorderLayout.NORTH);
        panel1.add(south, BorderLayout.SOUTH);
        panel1.add(center,BorderLayout.CENTER);
        userpane.add(User_Label,null);
        userpane.add(UserName, null);
        passpane.add(Pass_Label, null);
        passpane.add(Password, null);
        center.add(userpane, null);
        center.add(passpane, null);
        south.add(Login_But, null);
        south.add(Cancel_But, null);
      void onCancel(ActionEvent e) {
          System.exit(0);
      void UserLogin(ActionEvent e) {
      Connection con;
      try{
       Class.forName("com.mysql.jdbc.Driver");
      catch (Exception se){
      se.printStackTrace();
      try{
       con = DriverManager.getConnection("jdbc:mysql://localhost/test?user="+user+"&password="+pass);
       System.out.println(con.toString());
       catch (Exception se){
        se.printStackTrace();
       this.setVisible(false);
    }and here is the last class
    SalesFrm.java
    package gsales;
    import java.awt.*;
    import javax.swing.*;
    import javax.swing.border.*;
    import java.awt.event.*;
    import java.util.Date;
    import java.text.SimpleDateFormat;
    import java.sql.SQLException;
    public class SalesFrm extends JFrame {
      SimpleDateFormat DMY = new SimpleDateFormat("dd-MM-yyyy");
      JLabel TopLabel = new JLabel();
      JLabel DatLabel = new JLabel();
      JLabel NumLabel = new JLabel();
      JLabel DescLabel = new JLabel();
      JLabel AmntLabel = new JLabel();
      JLabel QtyLabel = new JLabel();
      JLabel PricLabel = new JLabel();
      JLabel NoItmLabel = new JLabel();
      JLabel TotalLabel = new JLabel();
      GridLayout grd = new GridLayout(7,1);
      Container myPane;
      Panel NorthPane = new Panel();
      Panel CenterPane = new Panel();
      Panel EastPane = new Panel();
      Panel SouthPane = new Panel();
      BorderLayout brdr = new BorderLayout();
      //Make the TextFields Public
      public JTextField DateFld = new JTextField();
      public JTextField NoFld = new JTextField();
      public JTextField Desc1 = new JTextField();
      public JTextField Desc2 = new JTextField();
      public JTextField Desc3 = new JTextField();
      public JTextField Desc4 = new JTextField();
      public JTextField Desc5 = new JTextField();
      public JTextField Desc6 = new JTextField();
      public JTextField Qty1 = new JTextField();
      public JTextField Qty2 = new JTextField();
      public JTextField Qty3 = new JTextField();
      public JTextField Qty4 = new JTextField();
      public JTextField Qty5 = new JTextField();
      public JTextField Qty6 = new JTextField();
      public JTextField Amount1 = new JTextField();
      public JTextField Amount2 = new JTextField();
      public JTextField Amount3 = new JTextField();
      public JTextField Amount4 = new JTextField();
      public JTextField Amount5 = new JTextField();
      public JTextField Amount6 = new JTextField();
      public JTextField Pric1 = new JTextField();
      public JTextField Pric2 = new JTextField();
      public JTextField Pric3 = new JTextField();
      public JTextField Pric4 = new JTextField();
      public JTextField Pric5 = new JTextField();
      public JTextField Pric6 = new JTextField();
      public JTextField TotalAmt = new JTextField();
      public JLabel StatusBar = new JLabel();
      public JLabel InfoBar = new JLabel();
      public Choice NoItm = new Choice();
      FlowLayout flowLayout1 = new FlowLayout();
      JButton OKbutton = new JButton();
      Border border1;
      JButton Canbutton = new JButton();
      TitledBorder titledBorder1;
      TitledBorder titledBorder2;
    public SalesFrm() {
        try {
               jbInit();
        catch(Exception e) {
          e.printStackTrace();
      public static void main(String[] args) {
       Login_Dialog login = new Login_Dialog();
        SalesFrm sale1 = new SalesFrm();
       login.setVisible(true);
        if (login.setVisible(false))
               sale1.setVisible(true);
        //sale1.setVisible(true);
      private void jbInit() throws Exception {
      //Initialize The Main Container
        myPane = this.getContentPane();
        border1 = BorderFactory.createBevelBorder(BevelBorder.RAISED,Color.lightGray,Color.white,Color.gray,Color.lightGray);
        titledBorder1 = new TitledBorder("");
        titledBorder2 = new TitledBorder("");
        this.setDefaultCloseOperation(3);
        this.setSize(new Dimension(753, 437));
        this.setTitle("<<NetWare>>  General Sales");
      //TopLabel Settings
        TopLabel.setFont(new java.awt.Font("SansSerif", 1, 20));
        TopLabel.setForeground(Color.red);
        TopLabel.setOpaque(true);
        TopLabel.setHorizontalAlignment(SwingConstants.CENTER);
        TopLabel.setHorizontalTextPosition(SwingConstants.CENTER);
        TopLabel.setText("General Sales");
      //Other Labels
       DatLabel.setText("Date: ");
       NumLabel.setText("Invoice No: ");
       QtyLabel.setText("Quantity:");
       DescLabel.setText("Description:");
       AmntLabel.setText("Amount:");
       PricLabel.setText("Price:");
       NoItmLabel.setText("No. of Items:");
       TotalLabel.setText("Total Amount: ");
       QtyLabel.setHorizontalAlignment(SwingConstants.CENTER);
       QtyLabel.setHorizontalTextPosition(SwingConstants.CENTER);
       DescLabel.setHorizontalAlignment(SwingConstants.CENTER);
       DescLabel.setHorizontalTextPosition(SwingConstants.CENTER);
       AmntLabel.setHorizontalAlignment(SwingConstants.CENTER);
       AmntLabel.setHorizontalTextPosition(SwingConstants.CENTER);
       PricLabel.setHorizontalAlignment(SwingConstants.CENTER);
       PricLabel.setHorizontalTextPosition(SwingConstants.CENTER);
       TotalLabel.setHorizontalAlignment(SwingConstants.CENTER);
       TotalLabel.setHorizontalTextPosition(SwingConstants.CENTER);
       //Status and Info
       StatusBar.setText("Status Bar");
       InfoBar.setBorder(titledBorder2);
        InfoBar.setMaximumSize(new Dimension(500, 29));
        InfoBar.setPreferredSize(new Dimension(210, 29));
        InfoBar.setText("Info Bar");
      //Descn
        Desc1.setNextFocusableComponent(Qty1);
        Desc1.setPreferredSize(new Dimension(160, 21));
        Desc2.setNextFocusableComponent(Qty2);
        Desc2.setPreferredSize(new Dimension(160, 21));
        Desc3.setNextFocusableComponent(Qty3);
        Desc3.setPreferredSize(new Dimension(160, 21));
        Desc4.setNextFocusableComponent(Qty4);
        Desc4.setPreferredSize(new Dimension(160, 21));
        Desc5.setNextFocusableComponent(Qty5);
        Desc5.setPreferredSize(new Dimension(160, 21));
        Desc6.setNextFocusableComponent(Qty6);
        Desc6.setPreferredSize(new Dimension(160, 21));
        //Qtyn
        Qty1.setNextFocusableComponent(Pric1);
        Qty1.setPreferredSize(new Dimension(80, 21));
        Qty1.setHorizontalAlignment(SwingConstants.RIGHT);
        Qty2.setNextFocusableComponent(Pric2);
        Qty2.setPreferredSize(new Dimension(80, 21));
        Qty2.setHorizontalAlignment(SwingConstants.RIGHT);
        Qty3.setNextFocusableComponent(Pric3);
        Qty3.setPreferredSize(new Dimension(80, 21));
        Qty3.setHorizontalAlignment(SwingConstants.RIGHT);
        Qty4.setNextFocusableComponent(Pric4);
        Qty4.setPreferredSize(new Dimension(80, 21));
        Qty4.setHorizontalAlignment(SwingConstants.RIGHT);
        Qty5.setNextFocusableComponent(Pric5);
        Qty5.setPreferredSize(new Dimension(80, 21));
        Qty5.setHorizontalAlignment(SwingConstants.RIGHT);
        Qty6.setNextFocusableComponent(Pric6);
        Qty6.setPreferredSize(new Dimension(80, 21));
        Qty6.setHorizontalAlignment(SwingConstants.RIGHT);
        //Amountn
        Amount1.setNextFocusableComponent(Desc2);
        Amount1.setPreferredSize(new Dimension(105, 21));
        Amount1.setHorizontalAlignment(SwingConstants.RIGHT);
        Amount2.setNextFocusableComponent(Desc3);
        Amount2.setPreferredSize(new Dimension(105, 21));
        Amount2.setHorizontalAlignment(SwingConstants.RIGHT);
        Amount3.setNextFocusableComponent(Desc4);
        Amount3.setPreferredSize(new Dimension(105, 21));
        Amount3.setHorizontalAlignment(SwingConstants.RIGHT);
        Amount4.setNextFocusableComponent(Desc5);
        Amount4.setPreferredSize(new Dimension(105, 21));
        Amount4.setHorizontalAlignment(SwingConstants.RIGHT);
        Amount5.setNextFocusableComponent(Desc6);
        Amount5.setPreferredSize(new Dimension(105, 21));
        Amount5.setHorizontalAlignment(SwingConstants.RIGHT);
        Amount6.setPreferredSize(new Dimension(105, 21));
        Amount6.setHorizontalAlignment(SwingConstants.RIGHT);
        //Pricn
        Pric1.setNextFocusableComponent(Amount1);
        Pric1.setPreferredSize(new Dimension(80, 21));
        Pric1.setHorizontalAlignment(SwingConstants.RIGHT);
        Pric2.setNextFocusableComponent(Amount2);
        Pric2.setPreferredSize(new Dimension(80, 21));
        Pric2.setHorizontalAlignment(SwingConstants.RIGHT);
        Pric3.setNextFocusableComponent(Amount3);
        Pric3.setPreferredSize(new Dimension(80, 21));
        Pric3.setHorizontalAlignment(SwingConstants.RIGHT);
        Pric4.setNextFocusableComponent(Amount4);
        Pric4.setPreferredSize(new Dimension(80, 21));
        Pric4.setHorizontalAlignment(SwingConstants.RIGHT);
        Pric5.setNextFocusableComponent(Amount5);
        Pric5.setPreferredSize(new Dimension(80, 21));
        Pric5.setHorizontalAlignment(SwingConstants.RIGHT);
        Pric6.setNextFocusableComponent(Amount6);
        Pric6.setPreferredSize(new Dimension(80, 21));
        Pric6.setHorizontalAlignment(SwingConstants.RIGHT);
      //DateFld
        DateFld.setFont(new java.awt.Font("SansSerif", 1, 12));
        DateFld.setMinimumSize(new Dimension(60, 21));
        DateFld.setPreferredSize(new Dimension(80, 21));
        DateFld.setHorizontalAlignment(SwingConstants.RIGHT);
        Date dt = new Date();
        String date = DMY.format(dt);
        DateFld.setText(date);
        //NoFld
        NoFld.setFont(new java.awt.Font("SansSerif", 1, 12));
        NoFld.setMinimumSize(new Dimension(60, 21));
        NoFld.setPreferredSize(new Dimension(80, 21));
        NoFld.setText("Number");
        NoFld.setHorizontalAlignment(SwingConstants.RIGHT);
      //NorthPane Settings
        NorthPane.setLayout(brdr);
        Panel in1 = new Panel();
        Panel in2 = new Panel();
        Panel NSPane = new Panel();
        OKbutton.setFont(new java.awt.Font("Dialog", 0, 18));
        OKbutton.setBorder(BorderFactory.createRaisedBevelBorder());
        OKbutton.setMaximumSize(new Dimension(100, 60));
        OKbutton.setPreferredSize(new Dimension(90, 32));
        OKbutton.setActionCommand("OK");
        OKbutton.setText("OK");
        Canbutton.setFont(new java.awt.Font("Dialog", 0, 18));
        Canbutton.setBorder(BorderFactory.createRaisedBevelBorder());
        Canbutton.setMaximumSize(new Dimension(100, 50));
        Canbutton.setPreferredSize(new Dimension(90, 32));
        Canbutton.setText("Cancel");
        StatusBar.setBorder(titledBorder1);
        StatusBar.setMaximumSize(new Dimension(800, 29));
        StatusBar.setPreferredSize(new Dimension(400, 29));
        TotalAmt.setHorizontalAlignment(SwingConstants.RIGHT);
        NoItm.addItemListener(new java.awt.event.ItemListener() {
          public void itemStateChanged(ItemEvent e) {
            ItemSelect(e);
        NorthPane.add(TopLabel,BorderLayout.CENTER);
        in1.add(DatLabel);
        in1.add(DateFld);
        in2.add(NumLabel);
        in2.add(NoFld);
        NSPane.add(in2, BorderLayout.WEST);
        NSPane.add(in1, BorderLayout.EAST);
        NorthPane.add(NSPane, BorderLayout.SOUTH);
      //CenterPane Settings
        Panel DescPane = new Panel();
        Panel amntPane = new Panel();
        Panel QtyPane = new Panel();
        Panel PricPane = new Panel();
        DescPane.setLayout(grd);
        QtyPane.setLayout(grd);
        amntPane.setLayout(grd);
        PricPane.setLayout(grd);
        DescPane.add(DescLabel, null);
        DescPane.add(Desc1, null);
        DescPane.add(Desc2, null);
        DescPane.add(Desc3, null);
        DescPane.add(Desc4, null);
        DescPane.add(Desc5, null);
        DescPane.add(Desc6, null);
        QtyPane.add(QtyLabel, null);
        QtyPane.add(Qty1, null);
        QtyPane.add(Qty2, null);
        QtyPane.add(Qty3, null);
        QtyPane.add(Qty4, null);
        QtyPane.add(Qty5, null);
        QtyPane.add(Qty6, null);
        PricPane.add(PricLabel,null);
        PricPane.add(Pric1,null);
        PricPane.add(Pric2,null);
        PricPane.add(Pric3,null);
        PricPane.add(Pric4,null);
        PricPane.add(Pric5,null);
        PricPane.add(Pric6,null);
        amntPane.add(AmntLabel,null);
        amntPane.add(Amount1, null);
        amntPane.add(Amount2, null);
        amntPane.add(Amount3, null);
        amntPane.add(Amount4, null);
        amntPane.add(Amount5, null);
        amntPane.add(Amount6, null);
        CenterPane.add(DescPane);
        CenterPane.add(QtyPane);
        CenterPane.add(PricPane);
        CenterPane.add(amntPane);
       //EastPane Settings
       EastPane.setLayout(new BorderLayout());
       //JLabel empty = new JLabel();
       Panel NoItmPane = new Panel();
       Panel TotPane = new Panel();
       NoItmPane.setLayout(flowLayout1);
       NoItm.addItem("1");
       NoItm.addItem("2");
       NoItm.addItem("3");
       NoItm.addItem("4");
       NoItm.addItem("5");
       NoItm.addItem("6");
       NoItm.setSize(new Dimension(20 , 21));
       NoItm.select(5);
       TotalAmt.setPreferredSize(new Dimension(120, 21));
       NoItmPane.add(NoItmLabel);
       NoItmPane.add(NoItm);
       EastPane.add(NoItmPane, BorderLayout.NORTH);
       TotPane.add(TotalLabel);
       TotPane.add(TotalAmt);
       EastPane.add(TotPane, BorderLayout.SOUTH);
       //SouthPane Settings
       SouthPane.setLayout(new BorderLayout());
       GridLayout grd1 = new GridLayout(2, 1);
       Panel butPane = new Panel();
       Panel StatPane = new Panel();
       StatPane.add(StatusBar);
       StatPane.add(InfoBar);
       butPane.setLayout(grd1);
       SouthPane.add(butPane, BorderLayout.EAST);
        butPane.add(OKbutton);
        butPane.add(Canbutton);
       SouthPane.add(StatPane, BorderLayout.SOUTH);
         //Add all into the main Container
        myPane.add(NorthPane, BorderLayout.NORTH);
        myPane.add(EastPane, BorderLayout.EAST);
        myPane.add(CenterPane, BorderLayout.CENTER);
        myPane.add(SouthPane, BorderLayout.SOUTH);
        //ItemSelect
      void ItemSelect(ItemEvent e) {
        String getItm;
        getItm =(String) e.getItem();
        int Itm = Integer.parseInt(getItm);
        switch (Itm) {
        case 1 : Desc2.setVisible(false);
                 Desc3.setVisible(false);
                 Desc4.setVisible(false);
                 Desc5.setVisible(false);
                 Desc6.setVisible(false);
                 Qty2.setVisible(false);
                 Qty3.setVisible(false);
                 Qty4.setVisible(false);
                 Qty5.setVisible(false);
                 Qty6.setVisible(false);
                 Pric2.setVisible(false);
                 Pric3.setVisible(false);
                 Pric4.setVisible(false);
                 Pric5.setVisible(false);
                 Pric6.setVisible(false);
                 Amount2.setVisible(false);
                 Amount3.setVisible(false);
                 Amount4.setVisible(false);
                 Amount5.setVisible(false);
                 Amount6.setVisible(false);
                 break;
        case 2 : Desc2.setVisible(true);
                 Desc3.setVisible(false);
                 Desc4.setVisible(false);
                 Desc5.setVisible(false);
                 Desc6.setVisible(false);
                 Qty2.setVisible(true);
                 Qty3.setVisible(false);
                 Qty4.setVisible(false);
                 Qty5.setVisible(false);
                 Qty6.setVisible(false);
                 Pric2.setVisible(true);
                 Pric3.setVisible(false);
                 Pric4.setVisible(false);
                 Pric5.setVisible(false);
                 Pric6.setVisible(false);
                 Amount2.setVisible(true);
                 Amount3.setVisible(false);
                 Amount4.setVisible(false);
                 Amount5.setVisible(false);
                 Amount6.setVisible(false);
                 break;
        case 3 : Desc2.setVisible(true);
                 Desc3.setVisible(true);
                 Desc4.setVisible(false);
                 Desc5.setVisible(false);
                 Desc6.setVisible(false);
                 Qty2.setVisible(true);
                 Qty3.setVisible(true);
                 Qty4.setVisible(false);
                 Qty5.setVisible(false);
                 Qty6.setVisible(false);
                 Pric2.setVisible(true);
                 Pric3.setVisible(true);
                 Pric4.setVisible(false);
                 Pric5.setVisible(false);
                 Pric6.setVisible(false);
                 Amount2.setVisible(true);
                 Amount3.setVisible(true);
                 Amount4.setVisible(false);
                 Amount5.setVisible(false);
                 Amount6.setVisible(false);
                 break;
        case 4 : Desc2.setVisible(true);
                 Desc3.setVisible(true);
                 Desc4.setVisible(true);
                 Desc5.setVisible(false);
                 Desc6.setVisible(false);
                 Qty2.setVisible(true);
                 Qty3.setVisible(true);
                 Qty4.setVisible(true);
                 Qty5.setVisible(false);
                 Qty6.setVisible(false);
                 Pric2.setVisible(true);
                 Pric3.setVisible(true);
                 Pric4.setVisible(true);
                 Pric5.setVisible(false);
                 Pric6.setVisible(false);
                 Amount2.setVisible(true);
                 Amount3.setVisible(true);
                 Amount4.setVisible(true);
                 Amount5.setVisible(false);
                 Amount6.setVisible(false);
                 break;
        case 5 : Desc2.setVisible(true);
                 Desc3.setVisible(true);
                 Desc4.setVisible(true);
                 Desc5.setVisible(true);
                 Desc6.setVisible(false);
                 Qty2.setVisible(true);
                 Qty3.setVisible(true);
                 Qty4.setVisible(true);
                 Qty5.setVisible(true);
                 Qty6.setVisible(false);
                 Pric2.setVisible(true);
                 Pric3.setVisible(true);
                 Pric4.setVisible(true);
                 Pric5.setVisible(true);
                 Pric6.setVisible(false);
                 Amount2.setVisible(true);
                 Amount3.setVisible(true);
                 Amount4.setVisible(true);
                 Amount5.setVisible(true);
                 Amount6.setVisible(false);
                 break;
        case 6 : Desc2.setVisible(true);
                 Desc3.setVisible(true);
                 Desc4.setVisible(true);
                 Desc5.setVisible(true);
                 Desc6.setVisible(true);
                 Qty2.setVisible(true);
                 Qty3.setVisible(true);
                 Qty4.setVisible(true);
                 Qty5.setVisible(true);
                 Qty6.setVisible(true);
                 Pric2.setVisible(true);
                 Pric3.setVisible(true);
                 Pric4.setVisible(true);
                 Pric5.setVisible(true);
                 Pric6.setVisible(true);
                 Amount2.setVisible(true);
                 Amount3.setVisible(true);
                 Amount4.setVisible(true);
                 Amount5.setVisible(true);
                 Amount6.setVisible(true);
                 break;
    }

  • Does JDialog setVisible create a new threaD?

    I am having a problem with my program and it seems that it may be because my call to JDialog setVisible is creating a new thread. In my program I have a JDialog which is a creation wizard that puts some specific files in the specified directory. After this is done I try and zip up the contents and bundle the zip file with some other files. My problem is that if I don't place a dialog after my call JDialog setVisible() then not all the right files will be in the newly created zip. It seems to me this is likely happening because the call to setVisible is creating a new thread and operation is continuing before the wizard is done placing all the right files in the directory. Does this make sense? Does setVisible create its own thread?

    In the future Swing related questions should be posted in the Swing forum.
    No a new thread is not created. setVisible() displays the dialog. If the dialog is modal then statements after the setVisibile are not executed until the dialog is closed. If the dialog is not modal, then the statements execute right away.

  • Invocation error when compiling in jbuilder

    Hello, I am trying to copmile my RMI server class in jbuilder4 but I get an error called "Invocation Error".
    The class I am trying to compile is a very simple RMI based code class.
    Would anyone know what Invocation Error would realte to so that I would know where to even start.
    Also, I can see where O can make general settings for compiling in jbuilder4 but I can't find where I can edit rmic settings. Any ideas?
    Thanks
    Ivan

    I wonder if this will help.
    "Note: JBuilder 4 will automatically run rmic on those files designated for sub and skeleton creation. Right click the file and look under Properties/Build."
    http://www.exciton.cs.rice.edu/JavaResources/Rmi/default.htm

  • How to import wsdl in jbuilder or myeclipse

    Hi,
    I'm trying to make the web service client work. I have been searching on the subject, but not been able to do so.. Please tell me how to import a WSDL link (which I have) in Jbuilder or MyEclipse.
    Thanks,
    Katie

    >>>Could you give me any pointer how to achieve the ED creation in NWDS?
    Import as external definition is planned for 7.5.
    Before you start working on NWDS may be have a look at the below blog ( Including comments )
    From Swing to Eclipse: My two months experience on NWDS 7.31

  • Calling GUI jar from C++ and setting parent for JDialog

    Hi,
    i am calling a GUI jar from in C++ code using ShellExecuteEx API as follows.
    l_sei->cbSize=sizeof(SHELLEXECUTEINFO);
              l_sei->fMask = SEE_MASK_NOCLOSEPROCESS;
              l_sei->hwnd =l_hwndFound;          
              l_sei->lpVerb = "open";
              l_sei->lpFile = "java";     
              l_sei->lpParameters ="test.jar";
              l_sei->lpDirectory = NULL;
              l_sei->nShow = SW_HIDE;
              l_sei->hInstApp = NULL;
              ShellExecuteEx(l_sei);This GUI opens up from the parent application .
    The problem i am facing is the jar runs as an independent application. I want to set application as the parent window for my GUI.
    The frame is a JDialog. Can i set a parent for a JDialog? So that doing Alt+Tab would not open the GUI on any window other than the parent application.
    thanks.

    Well, you can certainly set a parent for a JDialog (an owner, anyway, since it isn't a "parent" in the GUI hierarchy)... but that won't necessarily make the windows task switch together.
    Now, the real problem is that the "parent" needs to be a Java Dialog or Frame object in the same JRE as the dialog, and in order to get what OS-specific task switching features can be provided by AWT, it needs to be set at the Dialog's creation. Since a JDialog does have a native peer at some level, (although I'm not sure if it actually would be a native dialog window), you might be able to use the Java Invocation API instead of ShellExecuteEx to set up the JAR, watch for the JDialog to be created, and then link its peer through native code... but I don't think there's any easy way to do what you want, since Java windows aren't even supposed to be aware of native ones.

  • JDialog owner

    Hi All,
    I have a non modal dialog in my Swing application that may be kept opened (or be closed / opened at any time). It provides both specific functionality and access to common application data.
    For whatever reason, I need this dialog to be the top window of my application (unless modal dialog is opened, in this case � it will be on top). I achieved it by specifying my main application window as owner to the dialog (on creation � new JDialog(myMainFrame)). I did not have other non-modal windows in my application and all worked fine.
    I am now writing a feature that allows the user to view & manipulate data in popup windows (frames). None or several such popup windows may be opened at any time.
    My challenge: I want to keep the described dialog on top of the currently active popup window! It feels to me like the popup window is now the owner of the dialog but I don�t know how to change the dialog�s owner�
    Any thoughts?
    Thanks!!

    Hi,
    Thank you for your reply.
    However, I already tried it with little success.
    The toFront method shifts focus to the dialog therefore by bringing it toFront (invoking toFront on it) each time another application window gains focus (is moved to front) I make it the only active application window.
    Unless I have missed something here, this won�t work for me.
    Regards,

  • JBuilder .exe focus problem

    I have a swing application of a JFrame with a JMenuBar and JTextfields, JButtons, etc... It works great as a standalone application, or when run as an executable .jar. The problem is when I use JBuilder 7 Native Executable Builder and make a .exe out of the application. It also works fine, but when I click on a JMenuItem that does not bring up a JDialog, just performs a function, it performs the function, but refuses thereafter to give focus to the JTextfields and JTextArea, unless I click on a JButton to bring up a JDialog or JFileChooser, close, then the JTextfields accept focus again (what a workaround!!).
    I have added code for a JTextField to requestFocus, grabFocus after the function was performed, and even had the SwingFocusManager disabled, all of which still did not allow focus after the function was performed.
    Once again, this is only in the .exe version of my application- the other "normal" ways run fine. Has anyone else had this problem? Has anyone thought up a solution, or is this just a JBuilder unfixable for their cool neat new feature??
    Thanks for any ideas,
    Jim

    Well, your that did not work either. I think it is not anything to do with the code necessarily- as it is not always reproducible!!- The only commonality is that it occurs only with JBuilders .exe created from the source code- all else works fine. And then, the .exe only has this focus problem on my Dell Inspiron laptop running win 2k- strange- and not always (the first time works-sometimes- and then not afterwards- even when shut down and restarted!!) maybe I'll knock it up to just a OS/Platform problem....well I'll give you the duke anyway for the try-
    Jim

  • Centralize JDialog

    HOW CAN I MANAGE THAT WHEN I CLICK ON A JBUTTON IN THE MAINFRAME(JFRAME) TO OPEN A JDIALOG IT APPEARS IN THE CENTRAL OF THE JFRAME?
    AND HOW CAN I CENTRALIZE THE MAINFRAME(JFRAME) IN THE SCREEN BY STARTING THE APPLICATION?

    This is what JBuilder would do to put your frame to the center of the screen..
    Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
    Dimension frameSize = frame.getSize();
    if (frameSize.height > screenSize.height) {
    frameSize.height = screenSize.height;
    if (frameSize.width > screenSize.width) {
    frameSize.width = screenSize.width;
    frame.setLocation((screenSize.width - frameSize.width) / 2, (screenSize.height - frameSize.height) / 2);
    for dialog to be in the center of the frame..
    dlg.setLocation((frmSize.width - dlgSize.width) / 2 + loc.x, (frmSize.height - dlgSize.height) / 2 + loc.y);

  • Fields in Creation of free goods VBN1

    hi everybody,
    Can somebody expalin in detail the fields in creation of free goods(T-vbn1) like free goods quantity,additional quantity,documnet quantity and calculation rule....
    <b>Please dont copy paste anything form SAP help....I read that one......</b>
    I would appreciate if u explain with your sentence..
    Will reward point if it helps.
    Ghassan

    Hi Gafoor,
    Material
    Material, for which free goods is to be
    granted
    Minimum quantity
    Minimum quantity for which free
    goods can be granted
    From
    Quantity of sales material
    FGQ--- Quantity unit of free goods material
    Free goods -- Quantity of free goods with reference to the quantity and quantity unit of the sales material.
    AQU - Quantity unit of the free goods additional quantity
    Rule - Calculation rule
    Prorata
    whole units
    unit related
    D -- Delivery controlling -  it tells how you can manage the delivery of free goods with respect to the main item ordered.
    Additional material -  Additional material (only available for entry in exclusive free goods)
    Hope it helps. Please reward if helpful.
    Thanks & Regards
    Sadhu Kishore

  • Account determination error - in creation of invoice

    Hello experts,
    i have an error in creation of invoice, after( pgi post goods issue)
    will you please help me out to solve this error.
    thanks & Regards,
    yogesh raina

    hello sir,
    After going throuth this path it shows no gl account in account determination chart
    as below
    Condition type     Message     Description
      ZPR0                                  123     Access KOFI not carried out (initialized field)
    Access     Message     Description
    10     123     Access KOFI not carried out (initialized field)
    20     121     No G/L account found in Account determination type KOFI
    30     123     Access KOFI not carried out (initialized field)
    40     121     No G/L account found in Account determination type KOFI
    50     121     No G/L account found in Account determination type KOFI
    60     123     Access KOFI not carried out (initialized field)

Maybe you are looking for

  • Command line parameters and Shell Script -- URGENT

    Hi folks, I am facing some problem in the Shell script and the command line parameter. The scenario is -- I am picking a file from a directory, whose path is <b>/interfaces/xid/receive/filename.dat</b> I have to encrypt filename.dat and move it to an

  • Hr table for blocked personnel no.

    Dear Frendz, Can anyone help me with table name that shows all the blocked personnel no. Regards, Ameet

  • Display Settings - Restore Defaults?

    Apple 20" Studio Display and G5 running Tiger. Out of nowhere my screen became substantially brighter but only for colors that are grey or silver. Then of course I messed around with the display settings and now I cannot see silver or grey colors sin

  • Transfer WISM Access Point license to another type of controller

    Guys, Is it possible to transfer Access Point license from existing wism to another type of controller ? For example my client have existing wism with support for 300 access point and the plan will be migrated to Cisco WLC 5508, can the access point

  • How do i get ads and pop ups off my computer?

    Mac Book Pro Processor 2.66 GHz Intel Core 2 Duo Version 10.0.1 How do I get ads and pop ups off my computer?