Why DataScroller can't work properly

Everyone:
In my jsp,there is a DataScroller.But it can't work properly. Sometimes, it can't scroll. Sometimes, it can scroll to the second set only other than scroll to all the other sets.
Why? Had someone faced this problem? How can you solve it?
Thank you!

Compiling HelloWorld.java requires the class file run.class. So when you enter 'javac HelloWorld.java' it looks for run.class or run.java. If it can not find either it will not compile.
Solution : Add a dot (.) to your classpath. This tells the compiler to look in the current directory for the run.java file. You can compile if you noved run.java to the jdk(?)\classes directory because that directory is in your class path.
To add the dot you can use:
set CLASSPATH=.;%CLASSPATH%

Similar Messages

  • Illustrator can't work properly: "the filename, directory name, or volume label syntax is incorrect"

    When I run Illustrator there is a "New Features" pop up window, I click on "see all the new features", it popup a blank notepad and another system new message: "the filename, directory name, or volume label syntax is incorrect". Also when I try to use Typekit fonts it happens the same thing...
    Already cleared with CC Clearer, installed Extension Manager to see if its conflicting, but my Illustrator can't work properly.

    Moving this discussion to the Illustrator forum.

  • Why iMessage is not working properly anymore since i've uploaded the new iOS 6 ??

    Why iMessage is not working properly anymore since i've uploaded the new iOS 6 ??

    I'm having the same problem. I have a 4th gen 32GB iPod Touch, and since upgrading to iOS6, iMessage has been nothing but buggy. It will work for an hour or so, and then randomly stop working as it won't send or receive messages. There's nothing wrong with my wifi, because that's the same as it was before. I really hope someone knows something to fox this problem. Some people use iMessage for good reasons - it needs to be a reliable messaging service like it was in iOS5.

  • Not sure why this didn't work properly.

    So I programmed out a clock for practice/educational value for myself, and I got it near the end and encountered a problem. My program has 2 sets of class fields and a few temporary ones. The first set of class fields are text fields (hours, mins, secs) and the second set are Integers (h, m, s) (not int's ... Integers). I have two methods (setText and setTime) that convert between these two sets. setText sets the text fields to whatever time is stored in the Integers, and setTime sets the Integer values to whatever is stored in the text fields (assuming they're valid ints, of course).
    The code that was behaving strangely is shown below between the large comment lines. I needed some way to update the time, so I first tried changing the Integer values and then calling setText() ... but it didn't work. So I then tried setting the text fields and calling setTime() and that DID work. The end result of both should be the same, and yet it wasn't. I was wondering why not? Can anyone help/explain?
    I figure it has something to do with Integers and mutability, but that doesn't seem likely since they're both declared at the class-level and not within a method. I did some debugging of it (added System.out.println messages) and found out that the Integer value was changing, but then it was being reset back to what it was initially. bleh - I think I'm doing a bad job of explaining it. Anyway - here's the entire code below. It works correctly currently. But I left the bit of code in that wasn't working properly - just commented out. If you uncomment those and comment the 4 lines above them, you'll hopefully see what I'm talking about.
    import java.awt.BorderLayout;
    import java.awt.Color;
    import java.awt.Dimension;
    import java.awt.Graphics;
    import java.awt.Graphics2D;
    import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;
    import java.awt.geom.Ellipse2D;
    import java.awt.geom.Line2D;
    import java.util.Calendar;
    import javax.swing.JFrame;
    import javax.swing.JLabel;
    import javax.swing.JPanel;
    import javax.swing.JTextField;
    import javax.swing.Timer;
    import javax.swing.event.DocumentEvent;
    import javax.swing.event.DocumentListener;
    // Math.sin, Math.cos, Math.tan use RADIANS .. not degrees.
    // 0 rad/deg is at east and proceeds clockwise for increasing angle
    public class myClock extends JFrame implements ActionListener, DocumentListener
         JTextField hours;
         JTextField mins;
         JTextField secs;
         Calendar now;
         ClockPane clock = new ClockPane();
         JPanel textPane;
         Integer m; double mrad;
         Integer h; double hrad;
         Integer s; double srad;
         myClock()
              setSize(300,360);
              setResizable(false);
              setTitle("Clock!");
              // get starting time
              now = Calendar.getInstance();
              hours = new JTextField(String.valueOf(now.get(Calendar.HOUR)%12), 2);
              mins = new JTextField(String.valueOf(now.get(Calendar.MINUTE)), 2);
              secs = new JTextField(String.valueOf(now.get(Calendar.SECOND)), 2);
              setTime();
              // set the document listeners
              hours.getDocument().addDocumentListener(this);
              mins.getDocument().addDocumentListener(this);
              secs.getDocument().addDocumentListener(this);
              // create visual layout of frame
              textPane = createSouthPane();
              add(textPane, BorderLayout.SOUTH);
              add(clock, BorderLayout.CENTER);
              // start clock update timer - updates every second (1000 milliseconds)
              new Timer(1000, this).start();
         public static void main(String[] args)
              myClock app = new myClock();
              app.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
              app.setVisible(true);
         class ClockPane extends JPanel
              public void paintComponent(Graphics g)
                   super.paintComponent(g);
                   Graphics2D g2 = (Graphics2D) g;
                   Dimension dim = getSize();
                   double midx = dim.width / 2;
                   double midy = dim.height / 2;
                   Ellipse2D e = new Ellipse2D.Double(midx - 140, midy - 140, 280, 280);
                   g2.draw(e);
                   srad = s.doubleValue() / 60 * 2 * Math.PI;
                   mrad = m.doubleValue() / 60 * 2 * Math.PI;
                   mrad = mrad + srad / 60;
                   hrad = h.doubleValue() / 12 * 2 * Math.PI;
                   hrad = hrad + mrad / 12 + srad / 720;
                   srad = srad - Math.PI / 2;
                   mrad = mrad - Math.PI / 2;
                   hrad = hrad - Math.PI / 2;
                   Line2D shand = new Line2D.Double(midx, midy, midx + (e.getWidth() / 2 - 10) * Math.cos(srad), midy + (e.getHeight() / 2 - 10) * Math.sin(srad));
                   Line2D mhand = new Line2D.Double(midx, midy, midx + (e.getWidth() / 2 - 10) * Math.cos(mrad), midy + (e.getHeight() / 2 - 10) * Math.sin(mrad));
                   Line2D hhand = new Line2D.Double(midx, midy, midx + (e.getWidth() / 2 - 40) * Math.cos(hrad), midy + (e.getHeight() / 2 - 40) * Math.sin(hrad));
                   g2.setPaint(Color.BLACK);
                   g2.draw(hhand);
                   g2.draw(mhand);
                   g2.setPaint(Color.RED);
                   g2.draw(shand);
         private JPanel createSouthPane()
              JPanel p = new JPanel();
              p.add(new JLabel("Hours:"));
              p.add(hours);
              p.add(new JLabel("Mins:"));
              p.add(mins);
              p.add(new JLabel("Secs:"));
              p.add(secs);
              return p;
         // sets the Integer values of h, m, s to what the text fields read
         private void setTime()
              h = new Integer(hours.getText());
              m = new Integer(mins.getText());
              s = new Integer(secs.getText());
         // sets the text fields hours, mins, secs to what the Integer values contain
         private void setText()
              hours.setText(String.valueOf(h.intValue()));
              mins.setText(String.valueOf(m.intValue()));
              secs.setText(String.valueOf(s.intValue()));
         // action listener for Timer
         public void actionPerformed(ActionEvent e)
              int ss = s.intValue();
              int mm = m.intValue();
              int hh = h.intValue();
              ss++;
              mm = mm + ss / 60;
              hh = hh + mm / 60;
              ss = ss % 60;
              mm = mm % 60;
              hh = hh % 12;
              hours.setText(String.valueOf(hh));
              mins.setText(String.valueOf(mm));
              secs.setText(String.valueOf(ss));
              setTime();
    //          s = new Integer(ss);
    //          m = new Integer(mm);
    //          h = new Integer(hh);
    //          setText();
              clock.repaint();
         // document listener for text fields
         public void changedUpdate(DocumentEvent e)
              if (mins.getText().equals("") || hours.getText().equals("") || secs.getText().equals("")) ;
              else
                   setTime();
                   clock.repaint();
         public void removeUpdate(DocumentEvent e)
              if (mins.getText().equals("") || hours.getText().equals("") || secs.getText().equals("")) ;
              else
                   setTime();
                   clock.repaint();
         public void insertUpdate(DocumentEvent e)
              if (mins.getText().equals("") || hours.getText().equals("") || secs.getText().equals("")) ;
              else
                   setTime();
                   clock.repaint();
    }

    What does reading the text fields have to do with
    setting the text fields? You can set their values to
    anything you want. Look up MVC, which stands for
    model-view-controller. The text fields should only be
    used to display information from the model, which is
    a Calendar. The controller is the timer which updates
    the view with data from the model every second. I think you need to re-read everything that I've said up to now...
    It started out the program WITHOUT a timer, where the user would type in some numbers in the text fields and the time the clock displayed would change to match what they typed in. I wanted to keep this behavior simply because I wanted to. I wasn't attempting to make an actual authentic clock. After I had the program working, then I wanted to enhance it so that it altered itself, as well as the user still being able to alter it. I suppose if I were going to program it again from scratch, I'd probably have the clock have some int's at the class level and use those to make the text fields and such. Anyway --- this program is not (and never has been) about keeping accurate time.
    Creating a new object once a second isn't a big deal.
    If you depend on the Timer frequency to keep time, it
    will eventually drift and be inaccurate. Getting the
    system time each update will prevent that. You're
    updating the view based on the model, then updating
    the model based on the view's values, then updating
    the model. It's a much cleaner design to separate
    those parts clearly. Since this is for your own
    education you ought to start using good design
    patterns. I know they drift apart. That's not what I was interested in. And, afaik, "good design patterns" come with experience ... which is something that takes time to build and something that I am gaining. I'm not looking for a critique of my code here - I'm looking for a simple answer of why one approach worked properly and one didn't.
    Can you be more desciptive than "behaving strangely"?
    What's happening?Did you read my original post?
    One approach -> change the int's first, then update the fields.
    another approach -> change the fields first, then update the int's.
    One worked, one didn't.

  • Why Hotmail Doesn't Work Properly Anymore???

    Hotmail recently upgraded their look and as a result, it doesn't work properly via my iphone when I use Safari. It tells me to upgrade my web browser to Safari, IE or Firefox, however my iphone has the newest upgrade available...........so what is the fix?
    In short, my hotmail doesn't work properly (Doesn't display emails in the preview pane) so I can't check emails essentially.

    See the post abut this that you posted in a few minutes ago. Allan has answered the question.
    http://discussions.apple.com/thread.jspa?threadID=1786751&tstart=0

  • Why won't Flash work properly?

    Fed up of all this and just about ready to throw PC out of the window.
    Flash player won't load anything properly but says it is installed- I go to the About page and the video is jerky although the sound is amazing. On the BBC News website, anything with a video embedded in the page brings up an error (Something on this page is causing Adobe Flash Player 10 to run slowly. If it continues, your computer may become slow blah blah blah). WHY?????
    Computer is a home built with an NVidia graphics card, AMD processor, Speedlink audio card, running XP Pro SP3- it only has 750Mb of RAM or similar but Windoze loads very fast and smooth. I have the same problems on IE8, Firefox 3.whatever and Google Chrome. I've given up trying new browsers.
    I had to have Windows reinstalled recently as I tried to update the graphics card driver and got a permanent BSOD.
    I have gone to the pages recommended to check if I have Flash player, Quicktime, Shockwave and the rest- and they say its working and Java is okay too. What next???????????????????????

    Go step by step and test.
    1. System Preferences > Other/ Flash Player > Advanced >  Delete  All
         Press the "Delete All" button
         Install Adobe Flash Player.
        http://get.adobe.com/flashplayer/
        Follow the prompts.
        Quit Safari.
        Restart computer. Relaunch Safari.
    2.  Enable Plug-ins
        Safari > Preferences > Security
        Internet Plug-ins >  "Allow  plug-ins"
        Enable it.
        Press " Manage Website Settings" button for more options.

  • Color Calibrator can't work properly due to display not filling screen.

    I have a Thinkpad W520 with the HD 1920x1080 display and the color sensor. I tried to run the Color Calibrator application but it always runs to completion but cannot process the measurements. So I opened the lid in the middle of a calibration and discovered that the color screen that is supposed to be viewed by the sensor is not full screen, thereby preventing the sensor from measuring the color. How can I set the graphics so that this app will display full screen when it runs? Thanks.
    Solved!
    Go to Solution.

    Yes I am. But I just solved the problem. I had adjusted my display to show text, icons, etc at 150% of normal resolution. Somehow it was causing the application to display only a partial screen. I set the magnification to 125% and now the color calibrator works fine.

  • Why Mail does not work properly after updated to Mountain Lion?

    I updated to ML two days ago and my Mail is not working.  I can read but cannot reply because there is no cursor.  Restarted a few times, no change.  Anybody has the same problem??
    Rudh

    I forgot to mention (and add a new level of strangeness) that Mail is retreiving all of my messages from my personal (AT&T) account without issue.
    And I just discovered an even bigger problem: all of my emails from my Sent and other folders from my work account are completely gone!
    I may have no choice but to revert to my Lion system as of yesteday, before I installed ML.

  • Why owb can't work normal?

    during install owb 3.0 for winnt/2000,it warning me that i
    should install oracle 8.17 server/client,oem2.2 ect,i have
    install all these component success,and then i install the owb
    normal,it can not run but just appear a dos window for one
    second,then nothing heppen.

    What does "work" mean to you?  Because the code will operate but maybe not like you expect.  In addition to using run continuous (which you should never do) you also have multiple controls with the same label.  This makes explaining the issue difficult but I'll do my best.
    You have the a-b control as a double, and the a-b control as a U8.  The U8 only has values from 0-255 so if your subtraction has a result other then these 256 values you will not get what you expect.  It also has no fractional component and any subtraction that has a fractional component won't give you the value you expect either.
    Unofficial Forum Rules and Guidelines - Hooovahh - LabVIEW Overlord
    If 10 out of 10 experts in any field say something is bad, you should probably take their opinion seriously.

  • Scrollbars with painting - why this doesn't work properly ?

    Hello I written such a small program:
    /* Test.java */
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    public class Test extends JFrame {
         private JPanel mainPanel;
         private InnerPanel innerPanel; // Panel w/ JScrollPane
         private JScrollPane scroll;
         private JButton addItem;
         public static final int WINDOW_WIDTH = 200;
         public static final int WINDOW_HEIGHT = 200;
         public Test () {
              buildPanel();
              add(mainPanel);
              setDefaultCloseOperation(EXIT_ON_CLOSE);
              setSize(WINDOW_WIDTH, WINDOW_HEIGHT);
              setVisible(true);
         public void buildPanel() {
              mainPanel = new JPanel(new BorderLayout());
              innerPanel = new InnerPanel();
              scroll = new JScrollPane(innerPanel);
              scroll.setPreferredSize(new Dimension(100, 100));
              addItem = new JButton("Add an item to JPanel");
              addItem.addActionListener(new ButtonListener());
              mainPanel.add(scroll, BorderLayout.CENTER);
              mainPanel.add(addItem, BorderLayout.PAGE_START);
         private class ButtonListener implements ActionListener {
              public void actionPerformed(ActionEvent e) {
                   innerPanel.increase();
                   innerPanel.revalidate();
                   scroll.revalidate();
                   scroll.getVerticalScrollBar().setValue(
                        (scroll.getVerticalScrollBar()).getMaximum());
         public static void main(String[] args) {
              Test test = new Test();
    class InnerPanel extends JPanel {
         int x0 = 50, y0 = 50, x1 = 100, y1 = 50;
         public void paintComponent(Graphics g) {
              g.drawLine(x0,y0,x1,y1);
         public void increase() {
              x1 += 50;
              setPreferredSize(new Dimension(x1 + 100, y0));
              repaint();
    }I click for example 5 times on the button and then move the scroll max to the right.
    The end of the line should be already visible, but it's not. However it will be,
    when you resize the frame just a bit.
    Now when I try to move scroll max to the left but the beginning of the line doesn't show up. However it will , when you resize the frame just a bit.
    Can anybody point where I made a mistake ?

    Not sure I understand the description of the problem. I didn't notice any change in painting when I resized the frame, but anyway I made the following changes to help with the painting:
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    public class Test6 extends JFrame {
         private JPanel mainPanel;
         private InnerPanel innerPanel; // Panel w/ JScrollPane
         private JScrollPane scroll;
         private JButton addItem;
         public static final int WINDOW_WIDTH = 200;
         public static final int WINDOW_HEIGHT = 200;
         public Test6 () {
              buildPanel();
              getContentPane().add(mainPanel);
              setDefaultCloseOperation(EXIT_ON_CLOSE);
              setSize(WINDOW_WIDTH, WINDOW_HEIGHT);
              setVisible(true);
         public void buildPanel() {
              mainPanel = new JPanel(new BorderLayout());
              innerPanel = new InnerPanel();
              scroll = new JScrollPane(innerPanel);
              scroll.setPreferredSize(new Dimension(100, 100));
              addItem = new JButton("Add an item to JPanel");
              addItem.addActionListener(new ButtonListener());
              mainPanel.add(scroll, BorderLayout.CENTER);
              mainPanel.add(addItem, BorderLayout.PAGE_START);
         private class ButtonListener implements ActionListener {
              public void actionPerformed(ActionEvent e) {
                   innerPanel.increase();
    //               innerPanel.revalidate();
    //               scroll.revalidate();
                   scroll.getVerticalScrollBar().setValue(
                        (scroll.getVerticalScrollBar()).getMaximum());
         public static void main(String[] args) {
              Test6 test = new Test6();
    class InnerPanel extends JPanel {
         int x0 = 50, y0 = 50, x1 = 100, y1 = 50;
         public void paintComponent(Graphics g) {
              super.paintComponent(g); // added
              g.drawLine(x0,y0,x1,y1);
         public void increase() {
              x1 += 50;
              setPreferredSize(new Dimension(x1 + 100, y0));
              revalidate();  // added
    //          repaint();
    }

  • Why wont city ville work properly on facebook??

    i play city ville on facebook, and ever since i updated firefox i cannot see my friends lists when wanting to send gifts or ask for help, i do get a small empty window pop up momentarilly then dissapear again, i never had this before i updated and would like to know why its happened now :(

    In the troubleshooting section of your question the Shockwave Flash is up to the latest version 12.0. The support I found for the saga is here [http://www.papapearsaga.com/games/papa-pear-saga/faqs] Please contact them with this error message as well to see where this is causing an issue.
    Please also clear the cache to make sure this is not a temporary error.

  • Can't work properly

    My mac is not working proper

    That is not a question. What is wrong with your machine? What model machine do you have? What OSX?

  • Why is Captivate not working properly in Lectora?

    Hello everyone!
    I work with Captivate 5 and Lectora Professional Publishing Suite 2010 and I am having trouble making it work correctly. I have made multiple training & assessment simulations in Captivate and have converted them to SWF's but when i put them into Lectora an error occurs. All of them work fine until it comes to a step where you have to press the Tab button. Nothing happens when i press it and I won't be able to continue on with the training or assessment until i press Tab. Help would be greatly appreciated! Thanks
    - Lena

    Yes. When I am testing the training in Captivate it goes to the next text box when I press Tab like it should, but when I put it into Lectora, the Tab key doesn't work anymore

  • Why the games are not working properly in my ipad after installing iOS7

    Why games are not working properly in my ipad in my iOS 7

    The games you mention would have been written and therefore designed for the previous version of iOS - you've most likely had a lot of updates lately in the run-up to the release of iOS 7 and if these games haven't had an update then chances are these will need to be adapted to iOS 7 by the developers if not working correctly.
    Regards,
    Steve

  • Next-Previous Do not work Properly for lengthly dynamic Where Clause

    I have created a View object using Expert Query mode
    with following Query:
    SELECT LIC_SYS_ID,
    LIC_NAME,
    TERRITORIES,
    LANGUAGES,
    MEDIA,
    SEGMENT_NAME,
    CHANNELS,
    ACTIVITY_CD,
    LS.LIC_SHORT_NAME,
    LS.LIC_AKA_NAME
    FROM V_LICENSEE_SEARCH LS
    ORDER BY LIC_NAME
    Then at run time the following Where Clause staments get added by in JSP based on the users criteria
    wClause = "(ACTIVITY_CD = '" + activityStatus + "')"
    + " AND " +
    "(LIC_NAME like '" + licenseeName + "%' OR " +
    " LIC_SHORT_NAME like '" + licenseeName + "%' OR " +
    " LIC_AKA_NAME like '" + licenseeName + "%' ) "
    In this case the DataScroller does not work properly It DataTable traves only one setp when I click the "Next" link, But if I use the Drop down list of the Scroller its works fine.
    Secondly the "Next" "Previous" links of the DataScroller work fine if I use only one stmt in the WhereClause ex: "ACTIVITY_CD LIKE 'A%'".
    Can anybody help me with this, Is this a limitation of DataScroller/DataTable/DataSource tags why does it not work??
    Please help me its urgent.
    Thanks a ton !!

    Thx for the reply, I did try your suggestion It did not throw any exception. Here is the log messages after enabling jbo Debug.
    [391] Reusing a cached session application module instance
    [392] Getting a connection for internal use...
    [393] Creating internal connection...
    [394] Oracle SQLBuilder: Registered driver: oracle.jdbc.driver.OracleDriver
    wClause : (ACTIVITY_CD = 'A') AND (LIC_NAME like 'A%' OR LIC_SHORT_NAME like 'A%' OR LIC_AKA_NAME like 'A%' )
    [395] Column count: 10
    [396] ViewObject : Reusing defined prepared Statement
    [397] $$added root$$ id=-2
    [398] Application Module failover is enabled
    [399] Getting a connection for internal use...
    [400] Creating internal connection...
    [401] Oracle SQLBuilder: Registered driver: oracle.jdbc.driver.OracleDriver
    [402] <AM MomVer="0">
    <cd/>
    <VO>
    <VO Sz="8" St="8" Def="com.sophoi.ipls.media.tv.businessentities.licensee.LicenseeView" Name="licenseeView">
    <Wh>
    <![CDATA[(ACTIVITY_CD = 'A') AND (LIC_NAME like 'A%' OR  LIC_SHORT_NAME like 'A%' OR  LIC_AKA_NAME  like 'A%' )]]>
    </Wh>
    <Or>
    <![CDATA[LIC_NAME ASC]]>
    </Or>
    </VO>
    </VO>
    </AM>Long postings are being truncated to ~1 kB at this time.

Maybe you are looking for