Jbuilder to jdk

hello everybody,
Im using JBulider2 to build GUI for our project which uses a lot of classes which do not work on JDK 1.2. The program works fine with Jbuilder,but not with core java. I have used deployment wizard provided in Jbuilder to deploy all files into a jar file.And jar files swingall & jbcl are included in c:\mydir.
After that I have set the classpaths . But after doing all these things Im not able to run on jdk.
Please give me some suggestions for deploying it onto core java.
Thank u
vikram

you have to tell java where the classes are... jbuilder does all this for you.. and in the classess you have to assign which directory they are all in i.e:
package my_directory;
where you declare the classes that you are using.
when you run the java program or even compile it you have to do something like the following:
java run.class -classpath c:\programsource\files\are\here;c:\programsource\files\are\andhere
for more info type java -? to get the help up
if you want any other info pls email me at [email protected]
thanks
david

Similar Messages

  • Using a JSpinner in JBuilder

    I am new to using JBuilder and I am trying to use a JSpinner in my application but I am unable to compile and I get this message:
    "Frame1.java": Error #: 300 : class JSpinner not found in class testing.Frame1 at line 41, column 3
    I am using JBuilder 6 with java virtual machine java.vm.version 1.3.1-b24 and I am have the following import statements:
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.event.*;
    import javax.swing.*;
    import javax.swing.table.AbstractTableModel;
    import java.util.Hashtable;
    import javax.swing.JScrollPane;
    Is there any way for me to use a JSpinner with this version of JBuilder or any advice, please help. Thanks.

    HI... Try JBuilder 8 & jdk 1.4.1. Im not sure but i think that the JSpinner wasnt implemented all the way in jdk's past 1.4

  • JBuilder/jdk1.4 beta issues?

    Has anyone had success getting the beta2 of the 1.4 jdk to work with JBuilder? I get a wierd "Wrong" version compiler error when I use it. If I set up JBuilder to actually run under the 1.4 jdk, then I get a "class not found" for java.lang.Object.
    I know this is Borland's issue, but I was hoping someone here had had some success with it?
    Thanks!
    Nathan Teske
    [email protected]

    Please, please, somebody come up with a fix for this. I haven't tried it yet because I don't want to break JBuilder, but I really want to use both JBuilder and JDK 1.4 when it becomes final.

  • JBuilder: Failed to Load Super Class java.lang.Object

    Hi I am a beginner of JBuilder. When I tried to compile some samples from JBuilder, the compiling failed because "Failed to Load Super Class java.lang.Object." Any clue to fix the bug?
    Mark

    Hi
    Thanks for you guys' help. I found that when I create a project, the JBuilder's JDK homepath pointed by default to a JDK directory not existed. Therefore, I modified the JDK homepath through Tools/Configure JDKs. Then it worked.

  • Urgent!!! cut function in JTextArea is not working

    In my project, I am using a JTextArea. To remove a particular text in text area, i was selecting the text and I was using cut() function to cut the selected text. This functionality was working fine when I was running the the project on JBuilder. But when I run the same without using JBuilder( on jdk). It doesn't work i.e the text doen't get cut. But there are no errors.
    Is cut() function a JBuilder library function?If it is so, How do I accomplish the same task without using
    cut() ? Please help me...

    and what if you use the javax.swing.text.DefaultEditorKit copy-cut-paste default actions for text components ?
    copyButton = new JButton(new DefaultEditorKit.CopyAction());
    Such an action can be set to a Button, Popup,...
    Regards,
    Stephane

  • How to use jdk1.4 + jbuilder5

    In Jbuilder, Configure jdk for jdk1.4. And from Borland Open Tools website download the CompileFile1.5 .
    Install this tool, you can compile java file using jdk1.4\bin\javac in Jbuilder.
    Perhaps you would deselect Jbuilder Option: "Project->Default Project Properties->Run->Compile before running" and "Compile before debugging".
    Then you can compile and run java file using jdk1.4.

    The problem is, I need rmic as well - and that is NOT done by this (otherwise very useful) tool. Of course, I can do it by hand each time - but in that case: why use an IDE anyway?
    Has anyone got a solution for this itty bitty problem?

  • JSTL escapeXml() function not working. . .

    Hi all,
    I have a problem trying to use the function �escapeXml()� from the functions tag library, my code is below. I have added JSTL1.1, both standard.jar and jstl.jar, to my project. I have placed the fn.tld in the WEB-INF directory and web.xml contains corresponding entries. Everything compiles etc.
    I am using JBuilder 2005; JDK 1.4.2, Tomcat 5.0 (Servlet 2.4 + JSP 2.0), Java 2 DSK v1.2 & later.
    When I web run the project it�s like the servlet container is not processing this function and it is returned to the browser as regular text, i.e. �${fn:escapeXml(product.productName)}�
    Maybe it is something silly that I�m doing (or not doing) but I would really appreciate some help if possible.
    Thanks in advance!
    Graham
    <%@ page errorPage="list_error.jsp" %>
    <%@ page language="java" contentType="text/html" %>
    <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
    <%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
    <%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>
    <html>
    <head>
    <title>list</title>
    </head>
    <body bgcolor="#ffffff">
    <h1>Product List</h1>
    <jsp:useBean id="list" class="htunes.ProductListBean" scope="request" />
    <p>
    <table border=0>
    <c:forEach items="${list.productList}" var="product">
    <tr>
    <td>${fn:escapeXml(product.productName)}</td>
    </tr>
    </c:forEach>
    </table>
    </p>
    </body>
    </html>

    Sorry for not formatting the code. Here goes!
    <%@ page errorPage="list_error.jsp" %>
    <%@ page language="java" contentType="text/html" %>
    <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
    <%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
    <%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>
    <html>
    <head>
    <title>list</title>
    </head>
    <body bgcolor="#ffffff">
    <h1>Product List</h1>
    <jsp:useBean id="list" class="htunes.ProductListBean" scope="request" />
    <p>
      <table border=0>
        <c:forEach items="${list.productList}" var="product">
          <tr>
            <td>${fn:escapeXml(product.productName)}</td>
          </tr>
        </c:forEach>
      </table>
    </p>
    </body>
    </html>

  • Deployment on different machine

    Hi,
    i've developed a small app with 2 session beans and a gui-client which uses some gif's for the buttons etc. and the Borland jbcl for some layouts.
    On the machine where i developed the app (Win NT 4, SP6), i could deploy and run the app and anything is fine. But when i try to deploy the app on another machine (Win 2K with identical installation of JBuilder and JDK's including directories and paths) and run, the gui-client can't find any of the graphics and jbcl-components. Both machines are identically configured except the OS, both machines using JSDK 1.3.1 and J2EE 1.3.01.
    Where is my failure?
    thx,
    A.T.

    I've the same problem. Look at this message (no response since now but how know...) :
    http://forum.java.sun.com/thread.jsp?forum=136&thread=177326&start=0&range=15#574673

  • Problems JList and DefaultListModel

    Hi!
    I've got a problem with the removing of items from a DefaultListModel.
    Assume this:
    public class ImageList extends JList implements DropTargetListener {
    private DefaultListModel dlm = new DefaultListModel();
    public void setListData(ArrayList al) {
    for(...) {
    //do some stuff here
    dlm.addElement(al.get(i));
    this.setModel(dlm);
    }In the main Frameclass are an instance of ImageList and a JButton for deleting a selected item from the list.
    content of the actionPerfomed-method of JButton:
    DefaultListModel model = (DefaultListModel)customContentPane.imageList.getModel();
    int index = customContentPane.imageList.getSelectedIndex();
    if(index!=-1) {
    imageData.remove(index);
    model.remove(index);
    }I'm developing with JBuilder and JDK 1.3.0_02 and there the removing works fine!
    But with JDK 1.4.1-rc-b19 i'm getting an ArrayIndexOutOfBoundsException when i try to delete the last item. The exceptions says index: 0, size: 0!
    But same code works without any problem with 1.3!!
    Does anybody knows a solution?
    Thanks in advance
    Martin

    Its me again!
    After some debugging i found out, the IndexOutOfBoundsException always gives 'Index: -1' back, although an item IS selected!
    And the imageList.getSelectedIndex() returns the true current selected item and not -1.
    Is it a bug in the JList and the DefaultListModel?

  • How to upgrade jdk used in jbuilder 5.0?????

    Hi all
    i have jbuilder 5.0 Enterprise which use jdk1.3
    each time i change the jdk configuration and use jdk 6
    it gave me when i compile an error that the file version is incorrect
    and the design window doesnt parsing the components....so plz
    how would i solve this damm problem
    if i cant
    plz provide me with jbuilder 9 or 10x
    but not with jbuilder 2007 because it is soooo complex to me
    thnx all

    Please ask this question at another site, as these forums support Java language questions, not jBuilder (or other IDEe.)

  • 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;
    }

  • Problem about the JDK/SED version in JBuilder 9

    I am now using JBuilder 9. However I have just noticed that the version of JDK/SED of my JBuilder 9 software are not the latest version. The JDK version is 1.4.1 in the JBuilder 9 software. I want to update it to 1.6.0. How can I do it? Pleas help. Thank you very much.

    This is not a JBuilder support forum.
    You should find a JBuilder support forum.

  • JDK 1.3.1 Problem with Pentium 4....

    I have same porblems with JDK 1.3.1 .
    The same configuration on to computers:
    Borland JBuilder and JDK1.3.1
    On Pentium 3 and WIN2K it run fine, but on
    Pentium 4 and XP it can not run...
    Avry sing that i do with java or javaw i have
    error...

    I have the same problem. I am trying to install Bluestone Application Manager (BAM)on a Pentium 4 with a JDK 1.3.1_03. I get the following error:
    "java.exe has generated errors and will be closed by windows. You will need to restart the program. An error log is being generated."
    I uninstalled the jdk1.3.1_03 and installed the jdk1.2.2_011 that is suggested as a solution to this bug. This did not fix anything. I still get the same error.
    Then I tried to rename and then delete the symcjit.dll to see if that would help. (Upon suggestions from other threads regarding the same problem). Still the same error.
    BTW, have restarted after the above changes too and no solution.
    The Application Manager works fine on Pentium 3 computers within my office.
    Any other solutions out there?

  • Java Plug-in and Java Web Start Will Not Start In JDK 1.4.2_03

    I can't get the Java Plug-in or Java Web Start to start in JDK 1.4.2_03, but they did work when I first installed the JDK months ago. When I double-click either icon an hourglass displays for a second and then disappears without opening the window. I don't even get an error message.
    I've tried reinstalling the JDK three times. On the last reinstall, I followed some instructions on how to completely remove the JDK. Here's the URL of the instructions I followed:
    http://www.pcreview.co.uk/forums/thread-295773.php
    Strangely JBuilder stopped working too.
    I'm running Windows 2000.
    Help!
    Thank you!

    Hi
    Once u have got the Certificate from the Verisign there will be 3 chains in that cert(what i think)......Get the other 2 certificates from U r cert(like intermediate and Root)....and install them in the trust and Intermediate folder...
    other option is u generate the CSR keeping Sys Date 1 month ahead..( i tried like this only..it worked)
    Regards,
    Anand

  • Mysql driver and Jbuilder 2005 foundation

    I am trying to connect to a mysql server using jdbc and the mysql drivers. Specifically version 3.1.7. I will post my code here although I believe the code is correct and that I have a classpath issue with jbuilder. The error I am receiving on both build and run time is:
    Exception in thread "main" java.sql.SQLException: No suitable driver
         at java.sql.DriverManager.getConnection(Unknown Source)
         at java.sql.DriverManager.getConnection(Unknown Source)
         at methodclassespkg.DummyTester.main(DummyTester.java:39)
    I installed the mysql .jar driver file in the jdk1.5/lib/ext as the read me file that came with the drivers stated. I have changed the default jdk to the jdk1.5 update 2 that I installed. I imoprted the .jar driver file into the project and even added the file under tools/configure/libraries. But I still receive this error witht his code
    package methodclassespkg;
    import java.sql.Connection;
    import java.sql.DriverManager;
    import java.sql.SQLException;
    import java.io.*;
    Class Name: Dummy Tester Class
    Description: A dummy class with a main to test the other classes functionality.
    Company: Team SSJ (7)
    Copyright (c) 2005
    Version 1.0
    public class DummyTester {
    public DummyTester() {
    try {
    jbInit();
    } catch (Exception ex) {
    ex.printStackTrace();
    public static void main(String[] args) throws SQLException, IOException{
    try{
    Class.forName("com.mysql.jdbc.Driver");
    catch(ClassNotFoundException e){
    System.out.println("Could not load the driver");
    Connection conn = DriverManager.getConnection("ServerName", "user", "password");
    System.out.println("test");
    private void jbInit() throws Exception {
    Again I am running the free version which does not allow me to access the enterprise tab, I mention this because I saw a solution to this issue that allowed for importing the database driver using tools/enterprisesetup/database drivers. but I do not have access to this functionalitity.
    Jeremy Reed

    Thank you for the fast response from everyone. WIth you assistance I did reach a solution. I turns out I wasnt calling the driver correctly, syntactlically.
    For anyone googling a similar issue as mine, for j connect, your statement must be in the form of jdbc:mysql://yourhost/database?user=name&password=password
    that was my mistake

Maybe you are looking for

  • Handling Units and BADI_HU_AUTOPACK

    We are setting up handling units(HU's) to be created at the time of Transfer Order(TO) creation.  We have implemented the badi BADI_HU_AUTOPACK.  What I am looking for is the way to link the handling unit number with the line items on the TO so that

  • How to safe start

    Can't get rid of blue screen at start up

  • Dialog instance on PI7.0

    Hello Gurus,     I need some information about settingup dialog instance for our PI7.0. What is the installation procedure and what needs to be configured on ABAP and JAVA stacks? Also, if we need to setup different clients on PI, how can I do the cl

  • Form is not Pulling records from database table.

    Hi all, it seems very simple question for you, but i got stuck here. I have created one table and insert some records in it from SQL. then i create one form and create a data block and pull all the fields form the table, now when i run this form it w

  • How do I get a helper.exe file that works so I can uninstall Firefox?

    I am trying to uninstall Firefox. The Uninstall function in the Control Panel does nothing. The helper.exe file in the Firefox Uninstall folder does nothing, even when I "run as administrator".