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

Similar Messages

  • Can I use BI Beans with Jbuilder?

    hi
    Can I use BI Beans with Jbuilder Instead of JDeveloper.

    Is there a separate download for this (a version that will work with any J2EE IDE, I'm using JBuilder X)? When I tried to install the BI Beans download, it failed because it was looking for a version of JDeveloper.
    Yes, BI Beans are J2EE compliant components and will
    work within any J2EE compliant IDE. However, as
    JBuilder does not support the JDeveloper wizard
    driven development paradigm you will experience the
    same level of productivity using JBuilder.

  • Using debug mode with jbuilder 4 (or other tool) and wl 6.0

    Hello,
    I would like to know if there is a way to use jbuilder environnement to
    debug ejb deployed on WL. I would like to be able to set break points into
    my source code and be able to display variables values.
    If it is not possible with jbuilder, is it possible with an other tool ?
    If not, how can you debug ejb ? For exemple if I want to be sure a specific
    line has been callde, do I need to stop my server, insert a system.out,
    redeploy my ejb and restart my WL or is there a more simple way to do it ?
    Thank's.
    Nicolas.

    Hello,
    I would like to know if there is a way to use jbuilder environnement to
    debug ejb deployed on WL. I would like to be able to set break points into
    my source code and be able to display variables values.
    If it is not possible with jbuilder, is it possible with an other tool ?
    If not, how can you debug ejb ? For exemple if I want to be sure a specific
    line has been callde, do I need to stop my server, insert a system.out,
    redeploy my ejb and restart my WL or is there a more simple way to do it ?
    Thank's.
    Nicolas.

  • Using install tool in jbuilder

    please help me
    i have a homework and must do it in professional way
    the program that i worte it must make it install any ware using tool or command
    in jbuilder9 please can you tell me what this tool that make the application
    install when somebody want to use it

    Using PreparedStatements and getting a database connection are two different things. JBuilder ain't gonna write that PreparedStatement for you. Does it create the database and tables for you for any database, too? I've never used it, so I don't know.
    Which database will you be using?
    Bad idea to depend on JBuilder, IMO. Learn how to do it without JBuilder and you'll always know how. Depend on the IDE to do everything for you and you're helpless without it.
    Look at the JDBC tutorial under the Tutorials link to the left if you want to see how PreparedStatements are used. - MOD

  • I can not use jdk1.5 in JBuilder

    I am using JBuilder X,when i change my jdk to 1.5,it shows below:
    "MainPanel.java": cannot access javax.swing.JPanel,bad class file: C:\tools\j2sdk1.5.0b1\jre\lib\rt.jar\javax\swing\JPanel.class,class file has wrong version 49.0, should be 48.0,Please remove or make sure it appears in the correct subdirectory of the classpath. at line 21, column 32
    who knows the reason?

    Please, folks. Google before you post!
    This has been covered hundreds of times since 1.5 came out, even during its Alpha days.
    Basically, the bottom line is that you cannot easily use JBuilder with 1.5. If you cripple parts of JBuilder (like disabling editor syntax checking, living with inconsistent or no auto-indentation, and using only Ant builds), you can stumble along.
    Visit the JBuilder developer's site (http://community.borland.com), and search for OpenTools (Jbuilder extensions). One of them allows you to use JDK 1.5 with JBuilder's compilation system, but the other two still apply, and will always apply until JBuilder supports 1.5 syntax in its builtin parser in the editor.
    Oh, and you will never be able to debug 1.5-compiled code, if you generate 1.5 binaries (i.e. if you tickle any part of the 1.5 extensions). JBuilder X itself runs only on 1.4.2_0x, and thus can only debug classes which can be run by a 1.4.2 VM (i.e. no 1.5 classes).

  • Which one do you use? eclipse, vaj, jbuilder.....

    Hi, everyone
    I just want to have a general idea which IDE is preferred by
    most of us.
    Actually, I use Context.

    Search the forums, asked so ofton it almost not fun to say
    EMACS, VI SUCKS!
    any more.

  • Run java class using JBuilder

    hi,
    I already import the java class forder to the src folder in JBuilder where the src folder is created by the JBuilder itself. When i run compile the program there is an error in reading the java class file but when i run the program in Textpad, the program is success. May i know why? how can i run my program using java class in JBuilder instead of Java source? Thanks.

    In JBuilder there is an option of specifying what the 'main' file in a project is . Specify that to this class file
    [ What I mean is , in many java files we can define 'main' method , but we will intend to execute the main of one file only for a project . In JBuilder specify this file as the main class file ]

  • How to use XML in JBuilder?

    I want to add the nanoxml libraries to Builder in order to have XML processing, how can I do that???

    1. Tools -> Configure Libraries -> New (Add NanoXML classes, source and doc directory)
    2. Project Properties... Add your newly created nanoxml library to your projects additional libraries tab.
    I use German version of JBuilder, so I'm not quite sure if I used the correct labels/names

  • Login authentication using jbuilder 7 personal

    can anyone show a sample application of login authentication using jdbc and interface jbuilder 7 personal.A program which authenticates data against entry in database and corresponding error/success messages.
    Thanks.

    Hi: just to add on....
    I'm using j_security_check to authenticate my system login and I'm facing a problem with the redirection after verifying the user credentials.
    When the user enters a valid userid and correct password, the system hangs at j_security_check. The displayed URL is something like "/cst/LoginMainServlet/j_security_check". It fails to authenticate and re-direct to the AuthError.html page as defined as error page in the web.xml
    May I know where the problem does lays and how I can resolve this?

  • Can't make an alarm that is set more than 24 hours in future with JSpinner

    I have what I thought was a simple problem, but I can't seem to get past it, so I come to ask the experts.
    I want to use a JSpinner to basically set an alarm. I am using the SpinnerDateModel and a DateEditor with the string "HHH:mm:ss". The reason there is three hour feilds is because what I really want is to be able to set it to any number of hours from 0 to 999. But there in lies my problem, it won't let me get past 24.
    What I have tried:
    I changed the first H to D (or d, whichever is days in the year) but it wont work for me because it can't be zero.
    I tried extending the DateEditor code, but this was next to impossible because the company I work for makes us have two machines on our desk, both are thin clients, one connects to the internet but we are not allowed/able to download anything, and it does not have java on it in any form. The other does not connect to the internet, and can not, it has Java on it, but not the source code for methods like DateEditor. So without seeing the source I have no clue what to override.
    I really want to use the one JSpinner with the SpinnerDateModel, but if I can't figure this out then I could use seperate spinners for hours, minutes, and seconds though that looks really ugly and is far from ideal.
    So please if anyone has any clue how I could solve this, please let me know.
    Thanks,
    JSG
    Edited by: JustSomeGuy on Jun 29, 2010 2:00 PM

    I just tried out a JSpinner with the SpinnerDateModel and DateEditor using pattern "HH:mm:ss". Behind the scenes, you are still dealing with a date. If you look at what date gets returned, the first time you spin the spinner using that pattern, the year suddenly jumps to 1970. It's using a default year, because there is no year to spin within your pattern.
    So long as you don't feel too guilty or uncool for using the date spinner in a manner that it was not intended, you could probably achieve your objective by abusing the date editor with a pattern like "SSS:mm:ss". That pattern is milliseconds (which conveniently go from 0 to 999), minutes, then seconds. When reading your spinner, just interpret the milliseconds as the hours, minutes as minutes, and seconds as seconds. The rest of the date just gets thrown away. Uncool. But should work.
    Or you can be cool and write a custom editor and model, but depending on your experience level, this could be difficult and time consuming. But also comes with a greater feeling of achievement.

  • Where shall i save the jar file when i'm using a parser(JDOM) in jwsdp

    I'm using jwsdp These errors are coming
    when i compile.where shall i save the jdom.jar file?
    do i have to change the server.xml file in jwsdp-1_0\conf directory ?
    import org.w3c.dom.*;
    ^
    MetaBuilder.java:4: cannot resolve symbol
    symbol : class DocumentImpl
    location: package dom
    import org.apache.xerces.dom.DocumentImpl;
    ^
    MetaBuilder.java:5: cannot resolve symbol
    symbol : class DOMImplementationImpl
    location: package dom
    import org.apache.xerces.dom.DOMImplementationI
    ^
    MetaBuilder.java:6: cannot resolve symbol
    symbol : class Document
    location: package dom
    import org.w3c.dom.Document;
    ^
    MetaBuilder.java:7: cannot resolve symbol
    symbol : class OutputFormat
    location: package serialize
    import org.apache.xml.serialize.OutputFormat;
    ^
    MetaBuilder.java:8: cannot resolve symbol
    symbol : class Serializer
    location: package serialize
    import org.apache.xml.serialize.Serializer;
    ^
    MetaBuilder.java:9: cannot resolve symbol

    Hello,
    the *.jar file thing is a common problem in Java. One simple solution to the problem is by saving the *.jar file in the C:\j2sdk1.4.0\jre\lib\ext\ folder. This directory is an extension to the regular java files and by doing this, java will look in this directory if you import some other files not included in the java package. This does not work if you are using JBuilder, couse JBuilder installs its own jsdk, which is uses, probably under the JBuilder folder.
    TheLaw

  • Where are Tomcat Java server pages stored in JBuilder 4?

    From what I understand JSP pages should be saved into the ROOT directory of Tomcat.
    I have created a JSP page in Jbuilder 4 but when it saves, it is somewhere entirely different.
    If I right click on the JSP in Jbuilder 4 and select webrun it runs in Jbuilder fine.
    However if I try and run it from IE7 browser with address http://localhost:8080/hello.jsp I get a message saying internet explorer cannot display the page.
    I also did a search on my C drive to find the tomcat ROOT directory but could not find it.
    So what do I need to do in Jbuilder4 to be able to view my developed JSP pages in a browser?
    Thanks,
    Jason.

    Hello,
    I am using version 4 of JBuilder professional.
    I am getting the impression that JBuilder4 does not setup a proper instalation of Tomcat but sets up some temporary directory/link to it when you do a webrun on the JSP.
    Here is the log if it means anything to you:
    C:\JBuilder4\jdk1.3\bin\javaw -classpath "C:\JBuilder4\tomcat\lib\webserver.jar;C:\JBuilder4\tomcat\lib\jasper.jar;C:\JBuilder4\tomcat\lib\xml.jar;C:\JBuilder4\lib\servlet.jar;C:\JBuilder4\lib\webserverglue.jar;C:\OU2007\TM427\EasyBeans\myproject;C:\JBuilder4\jdk1.3\demo\jfc\Java2D\Java2Demo.jar;C:\JBuilder4\jdk1.3\jre\lib\i18n.jar;C:\JBuilder4\jdk1.3\jre\lib\jaws.jar;C:\JBuilder4\jdk1.3\jre\lib\rt.jar;C:\JBuilder4\jdk1.3\jre\lib\sunrsasign.jar;C:\JBuilder4\jdk1.3\lib\dt.jar;C:\JBuilder4\jdk1.3\lib\tools.jar" org.apache.tomcat.startup.Tomcat -config C:\OU2007\TM427\EasyBeans\conf\server8080.xml
    Starting tomcat. Check logs/tomcat.log for error messages
    Setting home to C:\OU2007\TM427\EasyBeans
    Context log: path="" Adding context path="" docBase="C:\OU2007\TM427\EasyBeans\"
    Starting tomcat install="C:\OU2007\TM427\EasyBeans" home="C:\OU2007\TM427\EasyBeans" classPath="C:\JBuilder4\tomcat\lib\webserver.jar;C:\JBuilder4\tomcat\lib\jasper.jar;C:\JBuilder4\tomcat\lib\xml.jar;C:\JBuilder4\lib\servlet.jar;C:\JBuilder4\lib\webserverglue.jar;C:\OU2007\TM427\EasyBeans\myproject;C:\JBuilder4\jdk1.3\demo\jfc\Java2D\Java2Demo.jar;C:\JBuilder4\jdk1.3\jre\lib\i18n.jar;C:\JBuilder4\jdk1.3\jre\lib\jaws.jar;C:\JBuilder4\jdk1.3\jre\lib\rt.jar;C:\JBuilder4\jdk1.3\jre\lib\sunrsasign.jar;C:\JBuilder4\jdk1.3\lib\dt.jar;C:\JBuilder4\jdk1.3\lib\tools.jar"
    JSP Servlet Started
    JSP Servlet Started (Echo)
    Context log path="" :tomcat.errorPage: init
    Context log: path="" File not found C:\OU2007\TM427\EasyBeans\WEB-INF\web.xml, using only defaults
    Context log path="" :jsp: init
    <JASPER_LOG> Sat Mar 17 08:06:37 GMT+00:00 2007 Scratch dir for the JSP engine is: C:\OU2007\TM427\EasyBeans\work\localhost_8080</JASPER_LOG>
    <JASPER_LOG> Sat Mar 17 08:06:37 GMT+00:00 2007 IMPORTANT: Do not modify the generated servlets</JASPER_LOG>
    Context log path="" :default: init
    Context log: path="" File not found C:\OU2007\TM427\EasyBeans\conf\tomcat-users.xml
    Starting endpoint port="8080" handler="org.apache.tomcat.service.http.HttpConnectionHandler"
    Starting endpoint port="8081" handler="org.apache.tomcat.service.connector.Ajp12ConnectionHandler"
    HTTP:GET /myproject/mybeans/valuebean.jsp 17-Mar-07 08:06:37
    <JASPER_LOG> Sat Mar 17 08:06:37 GMT+00:00 2007 JspEngine --> /myproject/mybeans/valuebean.jsp</JASPER_LOG>
    <JASPER_LOG> Sat Mar 17 08:06:37 GMT+00:00 2007      ServletPath: /myproject/mybeans/valuebean.jsp</JASPER_LOG>
    <JASPER_LOG> Sat Mar 17 08:06:37 GMT+00:00 2007      PathInfo: null</JASPER_LOG>
    <JASPER_LOG> Sat Mar 17 08:06:37 GMT+00:00 2007      RealPath: C:\OU2007\TM427\EasyBeans\myproject\mybeans\valuebean.jsp</JASPER_LOG>
    <JASPER_LOG> Sat Mar 17 08:06:37 GMT+00:00 2007      RequestURI: /myproject/mybeans/valuebean.jsp</JASPER_LOG>
    <JASPER_LOG> Sat Mar 17 08:06:37 GMT+00:00 2007      QueryString: null</JASPER_LOG>
    <JASPER_LOG> Sat Mar 17 08:06:37 GMT+00:00 2007      Request Params: </JASPER_LOG>
    <JASPER_LOG> Sat Mar 17 08:06:37 GMT+00:00 2007 Classpath according to the init parameter is: </JASPER_LOG>
    HTTP:GET /hello.jsp 17-Mar-07 08:07:15
    <JASPER_LOG> Sat Mar 17 08:07:15 GMT+00:00 2007 JspEngine --> /hello.jsp</JASPER_LOG>
    <JASPER_LOG> Sat Mar 17 08:07:15 GMT+00:00 2007      ServletPath: /hello.jsp</JASPER_LOG>
    <JASPER_LOG> Sat Mar 17 08:07:15 GMT+00:00 2007      PathInfo: null</JASPER_LOG>
    <JASPER_LOG> Sat Mar 17 08:07:15 GMT+00:00 2007      RealPath: C:\OU2007\TM427\EasyBeans\hello.jsp</JASPER_LOG>
    <JASPER_LOG> Sat Mar 17 08:07:15 GMT+00:00 2007      RequestURI: /hello.jsp</JASPER_LOG>
    <JASPER_LOG> Sat Mar 17 08:07:15 GMT+00:00 2007      QueryString: null</JASPER_LOG>
    <JASPER_LOG> Sat Mar 17 08:07:15 GMT+00:00 2007      Request Params: </JASPER_LOG>
    <JASPER_LOG> Sat Mar 17 08:07:15 GMT+00:00 2007 Classpath according to the init parameter is: </JASPER_LOG>

  • New solution for Limit the value in JSpinner with changable max/min value

    I have ever stuck with a problem like that :
    1. My application need to get two int value A and B that user input.
    I use two JSpinner with Number format model.
    named in jSpinnerFrom (A value get from) jSpinnerTo (B value get from)
    2. The request is that :
    two value can be any Integer, But the value of (B - A) can not more than 1000.
    I use changeListener added into the JSpinner, when use set value make (B-A) larger than 1000, I set value back.
    But when user press mouse on arrow button, the value will be increase automaticaly, and at last the value can not set back that make (B-A) not larger than 1000.
    3. So I get the BasicArrowButton of the jSpinnerFrom and jSPinnerTo,
    and add a mouselistener on the arrowbutton. When mouseReleased, then chen the value (B-A), if it is larger than 1000, then set it back the proper value.
    Thus I can make the min/max value in the JSpinner be changable, and limit the two input value be in range of 1 - 1000
    Post this wish be help for any one has thus familar request.
    Good Luck!!

    Something like this might work
    import javax.swing.*;
    import java.awt.*;
    import javax.swing.event.*;
    class Spin extends JFrame implements ChangeListener
      JSpinner spinner1;
      JSpinner spinner2;
      JPanel jp;
      public Spin()
        setDefaultCloseOperation(EXIT_ON_CLOSE);
        setSize(200,75);
        setLocation(400,300);
        spinner1 = new JSpinner(new SpinnerNumberModel(1000, 1000, 9999, 5));
        spinner1.addChangeListener(this);
        spinner2 = new JSpinner(new SpinnerNumberModel(0, 0, 1000, 5));
        jp = new JPanel();
        jp.add(spinner1);
        jp.add(spinner2);
        getContentPane().add(jp);
      public void stateChanged(ChangeEvent ce)
        int s1 = ((Integer)spinner1.getValue()).intValue();
        jp.remove(spinner2);
        spinner2 = new JSpinner(new SpinnerNumberModel(s1-1000, s1-1000, s1, 5));
        jp.add(spinner2);
        validate();
      public static void main(String[] args) {new Spin().setVisible(true);}
    }

  • Custom JSpinner Model / Editor

    Hello,
    This question may have been answered in the past but I could not find anything. I am trying to use a JSpinner for cycling through pages of information. I would like the display to show current page of total number of pages, i.e. 1 of 10. I would also like the user to be able to enter a number and have the spinner display that number in the same format. I am not quite sure if I need to create a custom model and editor or expand the SpinnerNumberModel. Any guidance is much appreciated.

    this might be one way for the '1 of 10', for entering a number, just add a keyListener,
    and modify the methods accordingly
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    class Testing
      JSpinner spinner;
      JTextField tf;
      final int TOTAL_PAGES = 10;
      int currentPage;
      public void buildGUI()
        tf = new JTextField(10);
        tf.setHorizontalAlignment(JTextField.RIGHT);
        tf.setEditable(false);
        tf.setBackground(Color.WHITE);
        spinner = new JSpinner();
        spinner.setUI(new MyUI());
        spinner.setEditor(tf);
        changeValue(1);
        JFrame f = new JFrame();
        f.getContentPane().add(spinner);
        f.pack();
        f.setLocationRelativeTo(null);
        f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        f.setVisible(true);
      public void changeValue(int amount)
        try
          int newPageNumber = currentPage+amount;
          if(newPageNumber < 1 || newPageNumber > TOTAL_PAGES)
            java.awt.Toolkit.getDefaultToolkit().beep();
            return;
          tf.setText(newPageNumber+" of "+TOTAL_PAGES);
          currentPage = newPageNumber;
        catch(Exception e){e.printStackTrace();}
      class MyUI extends javax.swing.plaf.basic.BasicSpinnerUI
        protected Component createNextButton()
          JButton btnNext = (JButton)super.createNextButton();
          btnNext.addActionListener(new ActionListener(){
            public void actionPerformed(ActionEvent ae){
              changeValue(1);}});
          return btnNext;
        protected Component createPreviousButton()
          JButton btnPrevious = (JButton)super.createPreviousButton();
          btnPrevious.addActionListener(new ActionListener(){
            public void actionPerformed(ActionEvent ae){
              changeValue(-1);}});
          return btnPrevious;
      public static void main(String[] args)
        SwingUtilities.invokeLater(new Runnable(){
          public void run(){
            new Testing().buildGUI();
    }

  • JSpinner Number Display Format

    Hello,
    I am using a JSpinner with a SpinnerNumberModel to display an integer whose range
    is 5000 to 9,999 (incremented by 1). The JSpinner shows the current number as an
    integer with a comma (i.e. 6,300). Is there an easy way to remove the
    comma from the JSpinners display? (i.e 6300).
    Thanks!
    Michelle

    It's quite simple to test
    import javax.swing.*;
    import java.awt.event.*;
    class Spin extends JFrame implements ActionListener
      JSpinner spinner;
      public Spin()
        setDefaultCloseOperation(EXIT_ON_CLOSE);
        setLocation(400,300);
        spinner = new JSpinner(new SpinnerNumberModel(5000, 5000, 9999, 100));
        JPanel jp = new JPanel();
        JButton btn = new JButton("Spinner Value");
        btn.addActionListener(this);
        jp.add(spinner);
        jp.add(btn);
        getContentPane().add(jp);
        pack();
      public void actionPerformed(ActionEvent ae)
        JOptionPane.showMessageDialog(this,spinner.getValue());
      public static void main(String[] args) {new Spin().setVisible(true);}
    }

Maybe you are looking for

  • Unable to delete the last request in full load infopackage

    Hi All, I have full load infopackage with many requests with green status  and thier request genetaed is 0. Because of last failure request ia m aunable to activate dso. i Made last failure request green and triggered. but not successful. i made it r

  • WSM -Security in SOA suite

    Hi All, I have composite which needs to invoked from external world. But the invoker service which will be invoking the composite does not support WS-Security policies like username token etc. But the composite enforced the username token policy. How

  • View link trouble

    I have a couple of tables as below: CREATE TABLE year ( year NUMBER); CREATE TABLE policy( year NUMBER, CONSTRAINT policy_year_fk FOREIGN KEY (year) REFERENCES year, I created business components from these tables. While dealing with a PolicyViewRow,

  • Solaris Patching/SAN Boot

    I have just created an ABE on a SAN device, upgraded it and then booted from it. Its been a long journey, and involved a SR with oracle. I was new to it and am astonished at how hard it has been. Not hard in the sense that anything was over complicat

  • [SOLVED] Archiso : installing AUR packages on a live image

    Hi all, I'm quite an arch newbie, I'm trying to setup a live USB stick, with the help of archiso. My goal is to finally get an "audio oriented" system (with jack, ardour, qsampler, and so more...). During the setup everything was working very well, u