Lotto in jbuilder

Can somebody help me with this?
Program must ask for user name i 6 numbers twenty times. Must be able to choose lucky dip.
I was writing my program but I don't know what's next. My program is at :
http://ncc74656.w.interia.pl/2/TwelveJava.java
Please help me if you can.

Please read this http://faq.javaranch.com/view?HowToAskQuestionsOnJavaRanch
Particularly the pieces entitled Tell The Details http://faq.javaranch.com/view?TellTheDetails
and Use the Forum Not Email http://faq.javaranch.com/view?UseTheForumNotEmail (which also applies to posting code on other sites for downloading)

Similar Messages

  • Deploy web application in jbuilder 9 with weblogic 7 problem

    when i create a web application and a servlet, and deploy it in jbuilder 9 with weblogic 7.0 ,jbuilder 9 showed me the error,please tell me why, when i choose "redeploy" ,it can be normally work..
    E:\bea\jdk131_02\bin\javaw -classpath E:\bea\weblogic700\server\lib\weblogic.jar;E:\bea\weblogic700\server\lib\webservices.jar;E:\bea\weblogic700\server\lib\weblogic_sp.jar; weblogic.Deployer -user system -adminurl http://localhost:7001 -password 12345678 -deploy -name firstWebApp -upload -source E:/J2EE/servlet/firstWebApp.war -targets myserver
    WebLogic Application Deployment Utility
    Usage: java weblogic.Deployer [options] [-activate|-deactivate|-remove|-unprepare|-cancel|-list] [files]
    where options include:
    -help Print this help message.
    -version Print version information.
    -adminurl <https://<server>:<port>> The URL of the administration server: default
    http://localhost:7001
    -user <user> A user other than the default of
    "installadministrator"
    -password <password> Specifies the password on the command line.
    If this option is absent the user is
    prompted.
    -verbose Displays additional status during the
    deployment process, including notifications
    when the application is prepared and
    activated on each target.
    -debug Displays debug level messages to the standard
    output.
    -examples Display example usage of this tool.
    -upload Causes the specified source file(s) to be
    transferred to the adminstration server. This
    is used when the Deployer tools is not being
    used on the same machine as the adminstration
    server and the user does not otherwise have
    access to place the targeted files on the
    adminstration server.
    -delete_files Causes the server to remove the files that
    are specified in the file list and leave the
    application activated. This option is valid
    only for unarchived web applications.
    -remote Signals that the tools is not runnning on the
    same machine as the adminstration server and
    that the source path should be made passed
    through unchanged as it represents the path
    on the remote server.
    -nostage Sets the stagingMethod attribute on the
    application mbean when it is created so that
    the application will not be staged and the
    original source is be used.
    -external_stage Sets the stagingMethod attribute on the
    application mbean when it is created so that
    the application will not be staged but the
    value of the staging path will be used when
    preparing the application.
    -stage Sets the stagingMethod staging attribute on
    the application when it is created so that
    the application will always be staged. This
    value will override the stagingMethod
    attribute on any targeted servers.
    -nowait Once the action is initiated the tool will
    print the task id and exit. This is used to
    initiate multiple tasks and then monitor them
    later using the -list action.
    -timeout <seconds> The maximum time in seconds to wait for the
    completion of the deployment task. When the
    time expires the current status is printed
    and the program exits.
    -source <archive file or directory> Location of the file or directory that
    represents the enterprise component or
    application tha is being (re)activated. If
    the source file is relative it is relative to
    the current directory, unless the -remote
    option is used. To specify individual files
    within an application for reployment or
    addition list them at the end of the command
    line.
    -name <application name> The name of the application being deployed.
    -targets <<server 1>,...<component>@<server N>> A comma separated list of the server and/or
    cluster names. Each target may be qualified
    with a J2EE component name. This enables
    different components of the archive to
    deployed on different servers.
    -id <task identifier> Optional client supplied unique identifier
    for the deployment task. The id is first
    specified to -activate, -deactivate,
    -unprepare or -remove. It is then used later
    as an argument to -cancel or -list.
    -activate (Re)activates the <source> application on the
    <targets> with the <name>.
    -deactivate Deactivates the application <name> on the
    <targets> leaving an staged application files
    in a state where the may be quickly
    reactivated.
    -unprepare Deactivates and unloads classes for the
    application <name> on the <targets> leaving
    an staged application files in a state where
    the may be quickly reloaded.
    -remove Deactivates the application <name> on the
    <target> and removes any files that were
    staged for this application. If there are no
    longer any targets for the application, the
    associated configuration is completely
    removed.
    -cancel Atempts to cancel the task <id> if it is has
    not yet completed.
    -list Lists the target status of each task <id>
    -deploy a convenient alias for activate.
    -undeploy a convenient alias for unprepare.
    Optionally a list of the specific files in the archive that are to be
    redeployed may be specified. If a directory is specified the entire subtree is
    redeployed.
    Full documentation on this tool is available at:
    http://edocs.beasys.com/wls/docs70/adminguide/utils.html#1138475
    No actions was specified. Please specify one and only one of:
    -activate, -deactivate, -cancel, -remove, -unprepare, or -list.
    Type java weblogic.Deployer -examples for example usage.

    you use "deploy" under DOS-Mode to deploy your web application?
    i found some differences between "deploy" and "redeploy" function in jbuilder 9.
    when i choose "deploy" ,jbuilder shows me the commond below:
    E:\bea\jdk131_02\bin\javaw -classpath E:\bea\weblogic700\server\lib\weblogic.jar;E:\bea\weblogic700\server\lib\webservices.jar;E:\bea\weblogic700\server\lib\weblogic_sp.jar; weblogic.Deployer -user system -adminurl http://localhost:7001 -password 12345678 -deploy -name firstWebApp -upload -source E:/J2EE/servlet/firstWebApp.war -targets myserver
    WebLogic Application Deployment Utility
    when i choose redeploy,it shows me: (the -deploy parameter has changed to -activate) ,maybe it's a bug.
    E:\bea\jdk131_02\bin\javaw -classpath E:\bea\weblogic700\server\lib\weblogic.jar;E:\bea\weblogic700\server\lib\webservices.jar;E:\bea\weblogic700\server\lib\weblogic_sp.jar; weblogic.Deployer -user system -adminurl http://localhost:7001 -password 12345678 -activate -name firstWebApp -upload -source E:/J2EE/servlet/firstWebApp.war -targets myserver
    WebLogic Application Deployment Utility

  • Prints in JBuilder; but not as application

    I am using the 1.4 PrinterJob for Graphics2D with PrintServices. This is very similar to the example from Sun. It prints just fine when I run the program inside JBuilder7. When I run it as an application under Windows, the print() method is called, but nothing ever appears on the printer. There is a job qued in the print manager, but it never prints. I am trying to print to an hp 750. If anyone sees what I am missing I would greatly appreciate your response.
    thanks,
    tim

    I checked carefully; I am starting java with a shortcut pointing to same path as jre set in JBuilder C:\...java.exe -cp etc.
    Occasionally the program WILL print stand alone, but most often will not. Always generates a print request in print manager but it never processes. Any other thoughts?
    thanks,tim

  • Little Mailprogramm works in JBuilder but do not work with a JAR File

    Hallo !
    The application works in JBuilder, but if I make an archive it dont work. If have included "JavaMail" and "JavaBeans Activation Framework". (same as in the JBuilderProject)
    The Error Message is:
    class javax.mail.MessegingException: IOException while sending message; nested exception is:
    javax.activation.UnsupportedDataTypeException: no object DCH for MIME type multipart/mixed;
    at javax.mail.Transport.send0
    at javax.mail.Transport.send
    I have other applications which work on JBuilder an as Jar-File, but why this application not ?
    I have JBuilderProfessional in use.
    Are there some licenceproblems with "JavaBeans Activation Framework".
    Please help me.
    Thank you !
    Wolfgang

    I think I have found a solution here:
    http://forum.java.sun.com/thread.jsp?thread=74127&forum=43&message=519108

  • Korean Fonts from inside JBuilder fine, outside not?

    Hi guys, thanks for taking a look at my problem.
    I have an applet that builds and runs successfully within JBuilder. I can choose
    either Korean or English and, via a C++ server, load the correct resource
    strings from a given unicode text file and display them correctly.
    ( I've previously loaded the korean win2000 language pack, and renamed my font.properties.ko file to font.properties. )
    I then create a .jar archive & accompanying html page and place them on a webserver.
    When I then access the applet using IE I only see square boxes where my wonderful Korean used to be!?
    I've tried manually setting the encoding to be Korean within IE, alas to no avail. Anyone got any ideas? I had hoped that providing a user had installed the correct language pack, the applet would be able to display things correctly..
    Any tips would be greatly appreciated.
    Thanks in Advance,
    Grant Appleyard

    Dear i found a different thing.
    i used IBM Java and Urdu fonts for develope the urdu software.
    using sun Java i too had same problem.
    i am just telling u, u may try it.

  • Applet working on JBuilder but not on appletviewer!!!!!

    I ve made a keybord.Here some buttons are missing. The user presses the buttons and shapes a word!When the jButton22 is pressed(Comparison button) the applet tells him if the result is true or false and displays an image(imageIcon foruser in jlabel forusers) with the correct result!!The jlabel for users is setVisible(false) and setVisible(true) when the comparison button is pressed and the result is wrong.My problem is that the jlabel works fine in JBuilder but when i run the applet in appletviewer the jlabel forusers isnt showing!!If i minimize and maximize the window then the label appears and from that point is working properly!Any suggestions would be appreciated!Thank you!!
    import java.awt.*;
    import java.awt.event.*;
    import java.applet.*;
    import javax.swing.*;
    public class Applet5 extends Applet {
    JLabel frase = new JLabel();
    JLabel forusers = new JLabel();
    JLabel string = new JLabel();
    JLabel message = new JLabel();
    JLabel plikt = new JLabel();
    JLabel gram = new JLabel();
    JLabel sint = new JLabel();
    JLabel vrah = new JLabel();
    JLabel end = new JLabel();
    JLabel dior = new JLabel();
    JLabel befforusers = new JLabel();
    JLabel[] jLabel = new JLabel[6];
    ImageIcon myIcon1 = new ImageIcon((Applet5.class.getResource("drawing/1.jpg")));
    ImageIcon myIcon2 = new ImageIcon((Applet5.class.getResource("drawing/2.jpg")));
    ImageIcon myIcon3 = new ImageIcon((Applet5.class.getResource("drawing/3.jpg")));
    ImageIcon myIcon4 = new ImageIcon((Applet5.class.getResource("drawing/4.jpg")));
    ImageIcon myIcon5 = new ImageIcon((Applet5.class.getResource("drawing/5.jpg")));
         ImageIcon foruser1 = new ImageIcon((Applet5.class.getResource("foruser/foruser1.jpg")));
         ImageIcon foruser2 = new ImageIcon((Applet5.class.getResource("foruser/foruser2.jpg")));
         ImageIcon foruser3 = new ImageIcon((Applet5.class.getResource("foruser/foruser3.jpg")));
         ImageIcon foruser4 = new ImageIcon((Applet5.class.getResource("foruser/foruser4.jpg")));
         ImageIcon foruser5 = new ImageIcon((Applet5.class.getResource("foruser/foruser5.jpg")));
        ImageIcon frases1= new ImageIcon((Applet5.class.getResource("frase/frase1.jpg")));
        ImageIcon frases2= new ImageIcon((Applet5.class.getResource("frase/frase2.jpg")));
        ImageIcon frases3= new ImageIcon((Applet5.class.getResource("frase/frase3.jpg")));
        ImageIcon frases4= new ImageIcon((Applet5.class.getResource("frase/frase4.jpg")));
        ImageIcon frases5= new ImageIcon((Applet5.class.getResource("frase/frase5.jpg")));
    ImageIcon telos = new ImageIcon((Applet5.class.getResource("end/telos.jpg")));
    ImageIcon diorth = new ImageIcon((Applet5.class.getResource("dior/dior.jpg")));
    String[] user= new String[6];
    JButton jButton1 = new JButton("1..");
    JButton jButton2 = new JButton("2..");
    JButton jButton3 = new JButton("3..");
    JButton jButton4 = new JButton("4..");
    JButton jButton5 = new JButton("5..");
    JButton jButton21 = new JButton("��������");
    JButton jButton22 = new JButton("��������");
    JButton jButton23 = new JButton("����������");
    JButton jButton24 = new JButton("������� ������");
    JButton jButton25 = new JButton("������");
    Font f = new Font("Palatino LinoType", Font.PLAIN, 18);
    Font g = new Font("TimesRoman", Font.PLAIN, 0);
    Font c = new Font("Palatino Linotype",Font.PLAIN, 14);
    Font p = new Font("Palatino Linotype",Font.PLAIN, 14);
    String s = new String();
    int nextLabelToShowIcon = 1;
    int l=0;
    int current = 0;
    int cur = 0;
    int str = 1;
    FlowLayout flowLayout1 = new FlowLayout();
        public void init() {
          try {
                    jbInit();
                  catch(Exception e) {
                    e.printStackTrace();
         user[1]=new String("82."+"ken"+"62."+"82."+"59."+"77."+"82."+"94."+"ken"+"107"+"127"+"77."+"ken"
             +"151"+"ken"+"1.."+"69."+"107"+"53."+"93."+"59."+"82."+"94."+"ken"+"30."+"1.."+"13."+"82."+"114"
             +"82."+"94.");
          user[2]=new String("1.."+"66."+"23."+"ken"+"74."+"31."+"77."+"ken"+"82."+"ken"+"30."+"62."+"1.."
           +"59."+"82."+"94."+"ken"+"62."+"1.."+"59."+"ken"+"82."+"114"+"62."+"ken"+"1.."+"77."+"ken"+"107"+"59."+"94."
           +"ken"+"1.."+"93."+"77."+"53."+"99."+"82.");
          user[3]=new String("59."+"77."+"2.."+"ken"+"107"+"59."+"ken"+"30."+"ken"+"31."+"74."+"31."+"ken"+"29."
           +"46."+"82."+"107"+"2.."+"ken"+"107"+"82."+"ken"+"82."+"77."+"82."+"74."+"1.."+"ken"+"94."+"82."+"114"
           +"ken"+"13."+"65."+"1.."+"94."+"123"+"53."+"74."+"38."+"107"+"1.."+"59.");
          user[4]=new String("74."+"35."+"1.."+"65."+"127"+"94."+"ken"+"82."+"ken"+"159"+"ken"+"109"+"120"
           +"ken"+"82."+"59."+"62."+"38."+"82."+"120"+"ken"+"107"+"59."+"74."+"2.."+"ken"+"56."+"31."+"93."+"1.."
           +"85."+"82."+"77."+"107"+"2.."+"94.");
    jLabel[1] = new JLabel();
    jLabel[2] = new JLabel();
    jLabel[3] = new JLabel();
    jLabel[4] = new JLabel();
    jLabel[5] = new JLabel();
    jButton1.setPreferredSize(new Dimension(32, 30));
    jButton1.setIcon(myIcon1);
    jButton1.setFont(g);
    jButton1.setVerticalTextPosition(SwingConstants.CENTER);
    jButton1.setHorizontalTextPosition(SwingConstants.CENTER);
    jButton1.addActionListener(new Applet5_jButton1_actionAdapter(this));
    jButton2.setPreferredSize(new Dimension(32, 30));
    jButton2.setIcon(myIcon2);
    jButton2.setFont(g);
    jButton2.setVerticalTextPosition(SwingConstants.CENTER);
    jButton2.setHorizontalTextPosition(SwingConstants.CENTER);
    jButton2.addActionListener(new Applet5_jButton2_actionAdapter(this));
    jButton3.setPreferredSize(new Dimension(32, 30));
    jButton3.setIcon(myIcon3);
    jButton3.setFont(g);
    jButton3.setVerticalTextPosition(SwingConstants.CENTER);
    jButton3.setHorizontalTextPosition(SwingConstants.CENTER);
    jButton3.addActionListener(new Applet5_jButton3_actionAdapter(this));
    jButton4.setPreferredSize(new Dimension(36, 30));
    jButton4.setIcon(myIcon4);
    jButton4.setFont(g);
    jButton4.setVerticalTextPosition(SwingConstants.CENTER);
    jButton4.setHorizontalTextPosition(SwingConstants.CENTER);
    jButton4.addActionListener(new Applet5_jButton4_actionAdapter(this));
    jButton5.setPreferredSize(new Dimension(37, 30));
    jButton5.setIcon(myIcon5);
    jButton5.setVerticalTextPosition(SwingConstants.CENTER);
    jButton5.setHorizontalTextPosition(SwingConstants.CENTER);
    jButton5.setFont(g);
    jButton5.addActionListener(new Applet5_jButton5_actionAdapter(this));
    jButton21.addActionListener(new Applet5_jButton21_actionAdapter(this));
    jButton22.addActionListener(new Applet5_jButton22_actionAdapter(this));
    jButton23.addActionListener(new Applet5_jButton23_actionAdapter(this));
    jButton24.addActionListener(new Applet5_jButton24_actionAdapter(this));
    jButton25.addActionListener(new Applet5_jButton25_actionAdapter(this));
    frase.setIcon(frases1);
    frase.setPreferredSize(new Dimension(750,40));
    message.setPreferredSize(new Dimension(220, 30));
    befforusers.setPreferredSize(new Dimension(1000,50));
    forusers.setIcon(foruser1);
    forusers.setPreferredSize(new Dimension(1000,50));
    forusers.setVisible(false);
    end.setPreferredSize(new Dimension(210,30));
    end.setVisible(false);
    dior.setIcon(diorth);
    dior.setPreferredSize(new Dimension(81,30));
    dior.setVisible(false);
    plikt.setText("������������");
    gram.setText("�������� & ���������� ���������");
    sint.setText("����������");
    vrah.setText("������������");
    message.setFont(p);
    plikt.setFont(f);
    gram.setFont(c);
    sint.setFont(c);
    vrah.setFont(c);
    string.setVisible(false);
    this.setLayout(flowLayout1);
    jLabel[1].setPreferredSize(new Dimension(50, 50));
    jLabel[2].setPreferredSize(new Dimension(50, 50));
    jLabel[3].setPreferredSize(new Dimension(50, 50));
    jLabel[4].setPreferredSize(new Dimension(50, 50));
    jLabel[5].setPreferredSize(new Dimension(50, 50));
    this.add(plikt);
    this.add(gram);
    this.add(jButton1);
    this.add(jButton2);
    this.add(jButton3);
    this.add(jButton4);
    this.add(jButton5);
    this.add(dior);
    this.add(jButton21);
    this.add(jButton22);
    this.add(jButton23);
    this.add(jButton24);
    this.add(jButton25);
    this.add(end);
    this.add(frase);
    this.add(message);
    this.add(befforusers);
    this.add(forusers);
    this.add(jLabel[1]);
    this.add(jLabel[2]);
    this.add(jLabel[3]);
    this.add(jLabel[4]);
    this.add(jLabel[5]);
    this.add(string);
    private void next2(){
    if(str==0);
    string.setText(user[1]);
    if(str==1)
       string.setText(user[2]);
    if(str==2)
       string.setText(user[3]);
    if(str==3);
    string.setText(user[4]);
    if(str==4)
       string.setText(user[5]);
    str++;
      private void next1(){
        if(cur==0)
      forusers.setIcon(foruser2);
      else if(cur==1)
      forusers.setIcon(foruser3);
      else if(cur==2)
      forusers.setIcon(foruser4);
      else if(cur==3)
      forusers.setIcon(foruser5);
      else if(cur==4)
      forusers.setIcon(foruser6);
        cur++;
      private void next(){
        if(current==0)
    frase.setIcon(frases2);
    else if(current==1)
    frase.setIcon(frases3);
    else if(current==2)
    frase.setIcon(frases4);
    else if(current==3)
    frase.setIcon(frases5);
    current++;
    void jButton1_actionPerformed(ActionEvent e)  {
    if (nextLabelToShowIcon == 1)
    jLabel[1].setIcon(myIcon1);
    else if (nextLabelToShowIcon == 2)
    jLabel[2].setIcon(myIcon1);
    else if (nextLabelToShowIcon == 3)
    jLabel[3].setIcon(myIcon1);
    else if (nextLabelToShowIcon == 4)
    jLabel[4].setIcon(myIcon1);
    else if (nextLabelToShowIcon == 5)
    jLabel[5].setIcon(myIcon1);
    s = s + jButton1.getText();
    nextLabelToShowIcon++;l++; jButton21.setVisible(true); dior.setVisible(false);
    void jButton2_actionPerformed(ActionEvent e)  {
    if (nextLabelToShowIcon == 1)
    jLabel[1].setIcon(myIcon2);
    else if (nextLabelToShowIcon == 2)
    jLabel[2].setIcon(myIcon2);
    else if (nextLabelToShowIcon == 3)
    jLabel[3].setIcon(myIcon2);
    else if (nextLabelToShowIcon == 4)
    jLabel[4].setIcon(myIcon2);
    else if (nextLabelToShowIcon == 5)
    jLabel[5].setIcon(myIcon2);
    s = s + jButton2.getText();
    nextLabelToShowIcon++;l++; jButton21.setVisible(true); dior.setVisible(false);}
    void jButton3_actionPerformed(ActionEvent e)  {
    if (nextLabelToShowIcon == 1)
    jLabel[1].setIcon(myIcon3);
    else if (nextLabelToShowIcon == 2)
    jLabel[2].setIcon(myIcon3);
    else if (nextLabelToShowIcon == 3)
    jLabel[3].setIcon(myIcon3);
    else if (nextLabelToShowIcon == 4)
    jLabel[4].setIcon(myIcon3);
    else if (nextLabelToShowIcon == 5)
    jLabel[5].setIcon(myIcon3);
    s = s + jButton3.getText();
    nextLabelToShowIcon++;l++; jButton21.setVisible(true); dior.setVisible(false);}
    void jButton4_actionPerformed(ActionEvent e)  {
    if (nextLabelToShowIcon == 1)
    jLabel[1].setIcon(myIcon4);
    else if (nextLabelToShowIcon == 2)
    jLabel[2].setIcon(myIcon4);
    else if (nextLabelToShowIcon == 3)
    jLabel[3].setIcon(myIcon4);
    else if (nextLabelToShowIcon == 4)
    jLabel[4].setIcon(myIcon4);
    else if (nextLabelToShowIcon == 5)
    jLabel[5].setIcon(myIcon4);
    s = s + jButton4.getText();
    nextLabelToShowIcon++;l++; jButton21.setVisible(true); dior.setVisible(false);}
    void jButton5_actionPerformed(ActionEvent e)  {
    if (nextLabelToShowIcon == 1)
    jLabel[1].setIcon(myIcon5);
    else if (nextLabelToShowIcon == 2)
    jLabel[2].setIcon(myIcon5);
    else if (nextLabelToShowIcon == 3)
    jLabel[3].setIcon(myIcon5);
    else if (nextLabelToShowIcon == 4)
    jLabel[4].setIcon(myIcon5);
    else if (nextLabelToShowIcon == 5)
    jLabel[5].setIcon(myIcon5);
    s = s + jButton5.getText();
    nextLabelToShowIcon++;l++; jButton21.setVisible(true); dior.setVisible(false);}
    void jButton21_actionPerformed(ActionEvent e) {
    if(nextLabelToShowIcon>1){
    jLabel[l].setIcon(null);
    s = s.substring(0, s.length()-3);
    l = l - 1;
    nextLabelToShowIcon = nextLabelToShowIcon - 1;}
    else{
    jButton21.setVisible(false);
    dior.setVisible(true);
    l=0;
    s="";
    nextLabelToShowIcon=1;}
    void jButton22_actionPerformed(ActionEvent e) {
    if(s.length()>0){
        if (s.equals(user[str])) {
          message.setText("������ ����� �����");
        else {
          forusers.getIcon();
          forusers.setVisible(true);
          befforusers.setVisible(false);
          message.setText("�����. � ����� ������� ����� : ");
    repaint();
    jButton1.setDisabledIcon(myIcon1);
    jButton2.setDisabledIcon(myIcon2);
    jButton3.setDisabledIcon(myIcon3);
    jButton4.setDisabledIcon(myIcon4);
    jButton5.setDisabledIcon(myIcon5);
    jButton1.setEnabled(false);
    jButton2.setEnabled(false);
    jButton3.setEnabled(false);
    jButton4.setEnabled(false);
    jButton5.setEnabled(false);
    jButton21.setEnabled(false);
    void jButton23_actionPerformed(ActionEvent e) {
    dior.setVisible(false);
    jButton21.setEnabled(true);
    jButton21.setVisible(true);
    s="";
    l=0;
    nextLabelToShowIcon=1;
    message.setText("");
    befforusers.setVisible(true);
    forusers.setVisible(false);
    jLabel[1].setIcon(null);
    jLabel[2].setIcon(null);
    jLabel[3].setIcon(null);
    jLabel[4].setIcon(null);
    jLabel[5].setIcon(null);
      jButton1.setEnabled(true);
      jButton2.setEnabled(true);
      jButton3.setEnabled(true);
      jButton4.setEnabled(true);
      jButton5.setEnabled(true);
    void jButton24_actionPerformed(ActionEvent e) {
    jButton21.setVisible(true);
    jButton21.setEnabled(true);
    dior.setVisible(false);
    nextLabelToShowIcon=1;
      jButton1.setEnabled(true);
      jButton2.setEnabled(true);
      jButton3.setEnabled(true);
      jButton4.setEnabled(true);
      jButton5.setEnabled(true);
      jButton6.setEnabled(true);
    l=0;
    befforusers.setVisible(true);
    forusers.setVisible(false);
    next1();
    next();
    next2();
    s="";
    message.setText("");
    jLabel[1].setIcon(null);
    jLabel[2].setIcon(null);
    jLabel[3].setIcon(null);
    jLabel[4].setIcon(null);
    jLabel[5].setIcon(null);
    void jButton25_actionPerformed(ActionEvent e) {
    public void paint(Graphics g) {
    super.paint(g);}
    private boolean isStandalone = false;
    public String getParameter(String key, String def) {
      return isStandalone ? System.getProperty(key, def) :
      (getParameter(key) != null ? getParameter(key) : def);
    private void jbInit() throws Exception {
        public String getAppletInfo() {
          return "Applet Information";
      public String[][] getParameterInfo() {
        return null;
      public static void main(String[] args) {
        Applet5 applet = new Applet5();
        applet.isStandalone = true;
        Frame frame = new Frame();
        frame.add(applet, BorderLayout.CENTER);
        applet.init();
        applet.start();
        frame.setSize(450,400);
        Dimension d = Toolkit.getDefaultToolkit().getScreenSize();
        frame.setLocation((d.width - frame.getSize().width) / 2, (d.height - frame.getSize().height) / 2);
        frame.setVisible(true);
        frame.setResizable(false);
    class Applet5_jButton1_actionAdapter
    implements java.awt.event.ActionListener {
    Applet5 adaptee;
    Applet5_jButton1_actionAdapter(Applet5 adaptee) {
    this.adaptee = adaptee;
    public void actionPerformed(ActionEvent e) {
    adaptee.jButton1_actionPerformed(e);
    class Applet5_jButton2_actionAdapter
    implements java.awt.event.ActionListener {
    Applet5 adaptee;
    Applet5_jButton2_actionAdapter(Applet5 adaptee) {
    this.adaptee = adaptee;
    public void actionPerformed(ActionEvent e) {
    adaptee.jButton2_actionPerformed(e);
    class Applet5_jButton3_actionAdapter
    implements java.awt.event.ActionListener {
    Applet5 adaptee;
    Applet5_jButton3_actionAdapter(Applet5 adaptee) {
    this.adaptee = adaptee;
    public void actionPerformed(ActionEvent e) {
    adaptee.jButton3_actionPerformed(e);
    class Applet5_jButton4_actionAdapter
    implements java.awt.event.ActionListener {
    Applet5 adaptee;
    Applet5_jButton4_actionAdapter(Applet5 adaptee) {
    this.adaptee = adaptee;
    public void actionPerformed(ActionEvent e) {
    adaptee.jButton4_actionPerformed(e);
    class Applet5_jButton5_actionAdapter
    implements java.awt.event.ActionListener {
    Applet5 adaptee;
    Applet5_jButton5_actionAdapter(Applet5 adaptee) {
    this.adaptee = adaptee;
    public void actionPerformed(ActionEvent e) {
    adaptee.jButton5_actionPerformed(e);
    class Applet5_jButton21_actionAdapter
    implements java.awt.event.ActionListener {
    Applet5 adaptee;
    Applet5_jButton21_actionAdapter(Applet5 adaptee) {
    this.adaptee = adaptee;
    public void actionPerformed(ActionEvent e) {
    adaptee.jButton21_actionPerformed(e);
    class Applet5_jButton22_actionAdapter
    implements java.awt.event.ActionListener {
    Applet5 adaptee;
    Applet5_jButton22_actionAdapter(Applet5 adaptee) {
    this.adaptee = adaptee;
    public void actionPerformed(ActionEvent e) {
    adaptee.jButton22_actionPerformed(e);
    class Applet5_jButton23_actionAdapter
    implements java.awt.event.ActionListener {
    Applet5 adaptee;
    Applet5_jButton23_actionAdapter(Applet5 adaptee) {
    this.adaptee = adaptee;
    public void actionPerformed(ActionEvent e) {
    adaptee.jButton23_actionPerformed(e);
    class Applet5_jButton24_actionAdapter
    implements java.awt.event.ActionListener {
    Applet5 adaptee;
    Applet5_jButton24_actionAdapter(Applet5 adaptee) {
    this.adaptee = adaptee;
    public void actionPerformed(ActionEvent e) {
    adaptee.jButton24_actionPerformed(e);
    class Applet5_jButton25_actionAdapter
    implements java.awt.event.ActionListener {
    Applet5 adaptee;
    Applet5_jButton25_actionAdapter(Applet5 adaptee) {
    this.adaptee = adaptee;
    public void actionPerformed(ActionEvent e) {
    adaptee.jButton25_actionPerformed(e);
    }

    I performed some testing on your program, and get an ArrayIndexOutOfBoundsException on one of the buttons. So, I guess there have to be some implementation logic error.
    Since I have no idea what your program is trying to achieve, here's what you can do:
    1. Try to shorten your program.
    2. Add your code piece by piece.
    3. Perform some logic testing.
    4. Repeat steps 2 & 3.

  • 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.)

  • How do I set project paths in JBuilder 4?

    Hello,
    I am trying to create a new project in JBuilder 4.
    I used the project wizard and set my paths to the following folders:
    C:\OU2007\TM427\mysolution
    However when the project and all files are getting saved to these folders:
    C:\Documents and Settings\Jason\jbproject
    Have you any idea why this is? I�m a bit confused on what I should enter for each of the paths in the project wizard, any help would be appreciated.
    thanks,
    Jason.

    It's difficult to set a single font size without wrecking the display of most web sites. One alternative would be to store your preferred zoom level and apply that to all sites. This requires an add-on such as:
    * [https://addons.mozilla.org/en-US/firefox/addon/6965/ Default FullZoom Level]
    * [https://addons.mozilla.org/en-US/firefox/addon/2592/ NoSquint]
    Does that work for you?

  • How can I generate a component array using JBuilder?

    Now I'm using JBuilder to design my program's GUI. I wanted a JTextField array like this:nums[0]~nums[2].So I draged three JTextFields into the container at JBuilder's design view. But when I set the names of them as nums[x](x=0,1,2). I got a Error Message. It told me that I used a illegal name. How should I do, please?
    thank you a million!

    The DIO ports on a MIO will not satisfy your needs (unless you move to LV RT).
    They do not support buffered outputs.
    Your update rate (how often you can set the port and clear it) is going to be limited by how fast (a-hem slow) windows will let you iterate,
    and,
    be non-determinstic.
    You could use,
    1) LV RT with the existing board, or
    2) FieldPoint PWM module, or
    3) Arbitrary waveform generators, or
    4) HS DIO board, or
    5) use the analog output of your baord where you que-up a 0 -5V waveform of the proper shape (i.e. make sure that the duty cylce fraction of the update values are high, the rest low).
    This is just to get a PWM signal out.
    Now there is another issue. Determinism. How often do you plan on reading your inputs and making a change to you
    r PWM? If you plan on doing more often that 10/second, write your code to handle windows going out to la-la land when you expect it to be working.
    Can you tell I like LV-RT.
    I hope my ramblings have helped.
    Ben
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction

  • How can i open Jbuilder project in Eclipse

    Hi All
    Can anyone tell me that how can i open Jbuilder 2006 project(.jpx)
    in Eclipse 3.2.2
    Regards

    Hello, perhaps this will be helpful : http://www-128.ibm.com/developerworks/library/os-ecidea/.
    *Edit - This link will be much more useful : http://www.bleb.org/software/jpx2eclipse/
    Laginimianeb
    Message was edited by:
    laginimaineb

  • How to run a jar file in JBuilder

    Hi there
    I need to know how to run a jar file using JBuilder. Thanks :)
    Countess

    well i have a german version of jbuilder and there it is under
    experten Archiv-builder
    look at something that has a similar name

  • [SOLVED] can't install jbuilder

    Hello!
    When I try to install JBuilder 2005 I get:
    [antek@arch jb2005_linux]$ ./install.bin
    Preparing to install...
    Extracting the JRE from the installer archive...
    Unpacking the JRE...
    Extracting the installation resources from the installer archive...
    Configuring the installer for this system's environment...
    awk: error while loading shared libraries: libdl.so.2: cannot open shared object file: No such file or directory
    dirname: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory
    /bin/ls: error while loading shared libraries: librt.so.1: cannot open shared object file: No such file or directory
    basename: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory
    dirname: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory
    basename: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory
    hostname: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory
    Launching installer...
    grep: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory
    /tmp/install.dir.7094/Linux/resource/jre/bin/java: error while loading shared libraries: libpthread.so.0: cannot open shared object file: No such file or directory
    although all the libs he is complaining about are in my /libs dir. . .
    I get similar errors when I try to install JBuilder 2006.
    Anybody knows how to solve this? Or maybe older versions of JBuilder work better?

    You're right. This is whole part of install.bin containing LD_ASSUME_KERNEL commands:
    # set this variable to something so we're guaranteed a value
    linux_LD_ASSUME_KERNEL_hack=0;
    # work around problem on RedHat Linux 7.1 IA-32
    # see Bug Id 4447270 at Sun JDC bug parade
    if [ `cat /etc/redhat-release 2>/dev/null | grep "7.1" | wc -l` = "1" ];
    then
    if [ `uname -s` = "Linux" ];
    then
    if [ `uname -m` != "ia64" ];
    then
    case `uname -r` in
    2.[456]*)
    linux_LD_ASSUME_KERNEL_hack=1
    esac
    fi
    fi
    fi
    # LD_ASSUME_KERNEL for Native POSIX Threading Library on some Linux distros
    if [ `uname` = "Linux" ]; then
    debugOut "checking for NPTL + JVM vulernability..."
    #check libc to see if it was compiled with NPTL
    nptl="`strings /lib/libc.so.6 | grep -i nptl`"
    if [ "$nptl" ]; then
    debugOut "NPTL detected! checking for vulnerable JVM....";
    # I have to set this before I check the JVM version, a-cuz
    # the call will hang, if it -is- vulnerable!
    export LD_ASSUME_KERNEL=2.2.5
    eval `$actvm -version 2>&1 | $AWK '
    BEGIN {
    vendor="Sun"
    /"[0-9].[0-9].[0-9][^"]*"$/ {
    gsub ("["]", "", $3)
    split ($3, ver, "[._-]")
    printf "v_major=%snv_minor=%snv_patch=%sn",ver[1],ver[2],ver[3]
    /IBM/ {
    vendor="IBM"
    END {
    printf "v_vendor=%sn",vendor
    ' `
    # unset the LD_ASSUME_KERNEL in cause we don't need it
    unset LD_ASSUME_KERNEL
    debugOut "major : ${v_major}"
    debugOut "minor : ${v_minor}"
    debugOut "patch : ${v_patch}"
    debugOut "vendor: ${v_vendor}"
    # check our rules for setting LD_ASSUME_KERNEL
    # currently, we're only setting this for JVMS < 1.4
    # we can add more rules later, if we need to.
    if [ ${v_minor:-0} -lt 4 ]; then
    debugOut "Vulnerable JVM detected... implementing workaround"
    linux_LD_ASSUME_KERNEL_hack=1
    else
    debugOut "Your JVM is OK! Congratulations!"
    fi
    fi
    fi
    if [ $linux_LD_ASSUME_KERNEL_hack -eq 1 ]; then
    LD_ASSUME_KERNEL=2.2.5
    export LD_ASSUME_KERNEL
    fi
    I tried to comment the line export LD_ASSUME_KERNEL=2.2.5, but then installer gave me following errors:
    [antek@arch jb2005_linux]$ ./install.bin
    Preparing to install...
    Extracting the JRE from the installer archive...
    Unpacking the JRE...
    gzip: /tmp/install.dir.9748/Linux/resource/vm.tar.Z: corrupt input. Use zcat to recover some data.
    uncompress: /tmp/install.dir.9748/Linux/resource/vm.tar.Z: corrupt input. Use zcat to recover some data.
    gzip: /tmp/install.dir.9748/Linux/resource/vm.tar.Z: corrupt input. Use zcat to recover some data.
    The included VM could not be uncompressed (GZIP/UNCOMPRESS). Please try to
    download the installer again and make sure that you download using 'binary'
    mode. Please do not attempt to install this currently downloaded copy.
    I get similar errors after I uncommented back that line... Does it mean the installation file cannot be edited? It is 100 MB file with long script at the beginning and binary stuff after it. I have no experience with things like this... what to do?

  • Unable to connect to WebLogic from JBuilder 11.1.1.4

    Hi,
    Just spent a few hours fuming over this, then solved it, thought I'd share it to hopefully save pain and hopefully someone will fix it!
    1. Created a SOA/BPM app in JBuilder
    2. Got to the point where I want to map BPM swim lane roles to WebLogic users
    3. Created a WebLogic Server IDE Connection as instructed and attempted to point it to localhost:7001 mydomain weblogic/Passw0rd etc.
    4. When I get to the test stage, it keeps failing saying "0 of 0 tests ran"
    5. After much searching discovered that you need BOTH admin AND managed server started to do this with a SOA app from JBuilder
    6. Still didn't fix it, grrr.
    7. Eventually realised it's missing libraries...
    11.1.1.4 install puts all the WebLogic libraries here: <MIDDLEWARE_HOME>/wlserver/server/lib/...
    8. Solution:
    copy weblogic.jar from location in (7) to a newly created directory: <MIDDLEWARE_HOME>/wlserver_10.3/server/lib/... (notice the addition of '_10.3')
    9. Works a now, "9 of 9 tests" pass.

    Any specific messages you see while opening the Application library..any error messages? Can you check the EPMA.log file?
    Also check if there are any issues on the database front, limited database size maybe?
    Do let us know the updates.

  • Did u know about this(jbuilder)

    as we seen in jbuilder if u put dot(.) with object handel
    then a seprate JList type component which contains
    methods and fields information
    in above scenario i need to find out when u press key
    a character print on text editor as well as
    our focus is on JList componet and keyPressed event
    also firing on JList at both time
    suggest ur views

    it is very simple how jbuilder did it
    i think it is simple to add a key listener on the editor after it is added to the editor check when a key is pressed if it is a "." then check if there is some identifier behind the "." if it is so then show all the methods available for that identifier. now when the list is visible again the key listener works if we press some character key like alphabets or numerics then this letter is appended in the editor. also after appending it seeks for the next matching item in the list and hilight it .other vise if it some controll key like arrow key is presed then the next item in the list is hilighted and focus again goes to editor so that it can sence new key. now if user press the enter key the hilighted item in the list is append to the editor. so this is the way i think it happens. further more Borland or Inspire corporation knows it better which made the JBuilder.

  • 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