WHY ANY UNIT_DECREMENT  OR UNIT_INCREMENT ?

Hi,
I know this is a theme already discussed in this forum but i couldn't find any valide answer. Does anyone know why JScrollBar keeps giving TRACK (via AdjustmentEvent.getAdjustmentType()) instead of the other values?
I've written this code to realize that it works with Scrollbar but not with JScrollBar
import javax.swing.*;
import java.awt.event.*;
import java.awt.FlowLayout;
import java.awt.Scrollbar;
public class scrollBars implements AdjustmentListener{
     JLabel dateContainer;
     JScrollBar js;
     Scrollbar s;
     public static void main(String[] args) {
          scrollBars sc = new scrollBars();
     scrollBars() {
          JFrame jf = new JFrame("new instance");
          js = new JScrollBar();
          s = new Scrollbar();
          dateContainer = new JLabel("nothing here");
          js.setEnabled(true);
          js.addAdjustmentListener(this);
          s.addAdjustmentListener(this);
          jf.getContentPane().setLayout(new FlowLayout());
          jf.getContentPane().add(dateContainer);
          jf.getContentPane().add(js);
          jf.getContentPane().add(s);
          jf.addWindowListener(new WindowAdapter(){
                         public void windowClosing(WindowEvent e){System.exit(0);}
          jf.setSize(355, 300);
          jf.setVisible(true);
     public void adjustmentValueChanged(AdjustmentEvent ev) {
          if(ev.getSource().equals(js)){
               dateContainer.setText(Integer.toString(ev.getAdjustmentType())+" unit decrement : "+AdjustmentEvent.UNIT_DECREMENT+" unit increment : "+AdjustmentEvent.UNIT_INCREMENT+" value : "+ev.getValue());
          }else if(ev.getSource().equals(s)){
               dateContainer.setText(Integer.toString(ev.getAdjustmentType())+" unit decrement : "+AdjustmentEvent.UNIT_DECREMENT+" unit increment : "+AdjustmentEvent.UNIT_INCREMENT+" value : "+ev.getValue());
Thanks in advance for any hint.
Fredy

There are specific configuration (PO number, Req number, RFQ number, payables options, financials options etc), Master data (Supplier/Customer Bill/Ship to addresses) and transactions data processing (Procure to Pay processing, Order to Cash processing etc). These all work at OU level in Subledgers. However, these all are not available in GL. In FA we do not have concept of OU but we have FA book wherein we can partition that data for security, processing and reporting.

Similar Messages

  • When i try to do a software update, it finishes and then says that the update cannot be saved because it has probably been corrupted during the download. This has happened a number of times and i do not know why, any help?

    When i try to do a software update, it finishes and then says that the update cannot be saved because it has probably been corrupted during the download. This has happened a number of times and i do not know why, any help?

    asifmanzoor wrote:
    i have 10.7.2, this download is 10.7.5
    Are you Downloading it from here  >  http://support.apple.com/kb/dl1582
    asifmanzoor wrote:
    yes, i am using wifi
    1)  Turn your Wi-Fi router OFF... wait 30 seconds... Turn it back ON.
    OR...
    Do not use Wi-Fi and connect Directly to your Internet via ethernet cable.

  • My library has went from thousands of songs to 60 and i dont know why, any suggestions how to get these back?

    My library has went from thousands of songs to 60 and i dont know why, any suggestions how to get these back?

    See Empty/corrupt iTunes library after upgrade/crash.
    tt2

  • I have an ipad 2 white, this guy said that this ipad is having the siri on it on the iso 6 mine is 6.0.1 and I haven't got the siri yet why any suggestions.

    I have an ipad 2 white, this guy said that this ipad is having the siri on it on the iso 6 mine is 6.0.1 and I haven't got the siri yet why any suggestions.  

    Siri is not available on the iPad 2.
    iOS 6  Which Software for Which iDevices...
    http://support.apple.com/kb/HT5457

  • Have had the descending shadow on my iMac and been told to restart but not sure why, any clues would be helpful thanks

    Had a warning siren tonight on iMac, restarted, seemed ok until a shadowy curtain crept down my screen and I was told to restart again, and again. No clue as to why this has happened, any help would be gratefully received.

    What is a Kernel Panic?
    http://support.apple.com/kb/TS3742
    and  http://support.apple.com/kb/TS1892?viewlocale=en_US
    http://developer.apple.com/mac/library/technotes/tn2002/tn2063.html
    More details here:
    http://www.thexlab.com/faqs/kernelpanics.html
    Useful articles on how to avoid and eliminate kernel panics here:
    http://reviews.cnet.com/8301-13727_7-10344626-263.html?tag=mfiredir
    http://www.macworld.com/article/2027201/how-to-troubleshoot-a-kernel-panic.html# tk.nl_mwhelp

  • My i phone 4s just lost signal, dont know why. any handy fixes

    my Iphone 4S just lost signal for no reason and don't know why. Any handy fixes much appreciated.

    Thanks for that dave. But I've already been doing this since it happened. I've also tried turning the airplane mode on and off to resolve my missing signal but that didn't help either. It just keeps saying its searching and then picks nothing else up. Just then says No Service.

  • Why any time if the iphone4 battery power is below 20% the screen freezes

    why is that when theiphone 4s poweris below 20% the screen freezes off

    sorry I can't help you with that, Marco...still haven't figured it out for myself - or had anyone suggest a possible solution. Hopefully, someone at Apple is reading these and will make changes to ML to solve this problem (and maybe the graphics dept. will be able to put back the login screen & screensavers to the way they were in SL )
    good luck! and if you find a solution, please post it here. Thanks!

  • HT1689 after ios7 updates my iphone 4s wont open itunes why any help anyone ????

    after ios 7 updates my phone wont go to the itune store why its a 4s

    after ios 7 updates my phone wont go to the itune store why its a 4s

  • When i am trying to open my i photo it saysYou can't open the application iPhoto because it may be damaged or incomplete. dont know why any one can help me i have i mac 21.5" bought it last year feb

    You can't open the application iPhoto because it may be damaged or incomplete.

    To re-install iPhoto
    1. Put the iPhoto.app in the trash (Drag it from your Applications Folder to the trash)
    2a: On 10.5:  Go to HD/Library/Receipts and remove any pkg file there with iPhoto in the name.
    2b: On 10.6: Those receipts may be found as follows:  In the Finder use the Go menu and select Go To Folder. In the resulting window type
    /var/db/receipts/
    2c: on 10.7 they're at
    /private/var/db/receipts
    A Finder Window will open at that location and you can remove the iPhoto pkg files.
    3. Re-install.
    If you purchased an iLife Disk, then iPhoto is on it.
    If iPhoto was installed on your Mac when you go it then it’s on the System Restore disks that came with your Mac. Insert the first one and opt to ‘Install Bundled Applications Only.
    If you purchased it on the App Store you can find it in your Purchases List.

  • My DW CS4 pages wont show on browser until I deleted recordset from pages. Why any one?

    Greetings,
    After designing my search and blog site, and went on to try to add image upload so clients and visitors could upload images, to the site, but instead things fell apart shortly after that.  I started to have serious design problem.
    I start to witness problem with the recordset on the registration page, login page search and the rest of the recordset where ever they live in the design. Presently, I am using MSN SQL SERVER 2005 for my database and I didn’t see any problem using it. I also used msn access in the past before turning to SQL.
    Haven’t said all these, my question are to see if any one knows how to fix my problem.
    PROBLEM: When I open any of the pages to test my design, the page will not open on the browser. It will rather point to recordset on the error 404 page and soon the recordset is completely taken out of the page, the page will then open on the browser. Does any one know how I could fix the problem I have with Dreamweaver CS4?
    Thanks.
    Joplateau.

    You have scripting errors on the page. First step is to turn off friendly error messages in your browser to see if it will provide more meaningful error messages. However, since it's a 404, it could be that your host has disabled detailed error reporting as a security measure. Try to get that enabled so you can see the details of the errors. Without that, it's nearly impossible to troubleshoot.

  • HT4623 it is telling me that my apple ID is disabled and I can't understand why, any suggestions?

    I am unable to update my apps because I got a message that says my apple ID is disabled however it has not changed.  I can't understand what else I can do to corrrect this, Please advise
    Thank you

    Why do I see the message "This Apple ID has been disabled for security reasons” when I enter my password?
    This message means that someone was unable to sign in to this account multiple times. The Apple ID system will disable the account to prevent unauthorized people from gaining access to your information. You'll need to follow the instructions on My Apple ID to reset your password.
    If that does not work then contact iTunes as the other replier said

  • All of a sudden, I can no longer add any plugins to any channel strips? And when I click on an existing plugin to edit, it disappears off the channel strip?

    I am running Logic express 9 on a 2008 Macbook, (non pro).  Anyhow, logic has always seemed to work great for me.  However, last week I opened up one of many existing projects, (I'm in sample editor).  When I went to add a new plugin to one of the channel strips it would not allow me to.  Also, if I click on any plugin that already exists on the channel strip it dissapears? The strange thing that also happens weather I click to add a new plugin or click on an already existing plugin, is both the  "repeat section" and "crop", buttons from the above menu (in sample editor), the actual buttons become a faded image,(as far as the actual font and images of the buttons).  As soon as I am done clicking to add a plugin on the channel strip, both buttons from the menu  go back to looking normal like all of the other choices from that menu?  I really don't get it?  All I want to do is to be able to add plugins as well as edit or change plugins again. Any thoughts as to why I can no longer add any new plugins to any channel strips?  And why any existing plugins disappear from the channel strip when I click on it?  Why the "repeat section", and "Crop", buttons from the menu above fade in and out when I try clicking on the channel strip is very strange? I don't mind that I just want to be able to add or edit plugins again.  I did do some document cleaning up last week as my memory was getting low.  I then emptied out my trash bin.  I'm hoping I didn't accidentally delete some kind of Logic component?  Why can't I add or edit plugins anymore?  Anyone ever run across this?
    Thanks,
    Mike.

    Mike,
    Are any of your other applications going wonky, or is it just Logic?
    I'm afraid I've never heard of this particular problem before, but if it were happening to me the first thing I would do is delete my "com.apple.logic.express.plist" file in Library>Preferences, then repair permissions in Disc Utility, and finally restart my computer.  Then I would launch Logic and see if the problem has been corrected.  It's amazing how much these two steps can accomplish.
    If that doesn't resolve the issue I would launch Logic and go to Preferences>Audio Units Manager to see if all my plug-ins are properly validated.

  • Why can't you use PipedXputStream in other than threaded application

    I have need for usage of these in a non-threaded application, however the Javadoc indicate this should not be done.
    "Attempting to use both objects from a single thread is not recommended, as it may deadlock the thread."
    As the Java community is composed of some brilliant people, I am curious as to why any limitation of this sort has not been fixed/addressed?
    What is the root cause of these deadlock situations?
    Thanks in advance.
    Steve

    899559 wrote:
    I have need for usage of these in a non-threaded application, however the Javadoc indicate this should not be done.Because using streams in a single thread makes no sense, since you can just use method calls. And that avoids the situation were you could be trying to write more than the stream buffer can hold or trying to read more than you wrote to the stream.
    data = getData();
    outPipe.write(data);
    data = inPipe.read();
    doSomethingWith(data);
    // is just a roundabout way of coding
    doSomethingWith(getData());

  • [SOLVED] Home folder full & can't figure out why (MBs not matching up)

    /home (as a partition) is 5GB and completely full... however, XFE, emelfm2, and PCManFM all see the home "folder" as being between 1.3GB and 1.8GB full... I am under the impression that I have a ghost file SOMEWHERE that even root can't properly detect, as it's not making any sense.  What tools can I use to figure out why my /home partition is full?
    Note: XFE, when checking the properties of the home partition vs home folder, it also shows the partition as full and the contents of the folder as 1.5GB or so.  I can't shut down the computer, as I'm transferring large files from one flash drive to another (and my /tmp is on another partition and is 1% full out of 3.8GB. The comand 'df' returns that the partition is full as well... all tools, whether accessed via root or user, are telling me contradicting things: partition full, folder 40%(ish) and it's driving me mad!  Any and all help is, and will be, GREATLY appreciated!
    SOLUTION:
    installed ncdu from repos, used command 'ncdu /home' and found which folder was the culprit... I had a large transfer going overnight that wasn't going when I got back in the morning, so the disk wasn't at 100% when I got back (not sure why any space was taken up by the transfer since the tmp folder is NOT in /home and the transfer wasn't to or from /home, but that may be an issue for another day).
    Last edited by CPUnltd (2012-01-25 20:37:44)

    trash was empty, lost+found could be a possibility... what is ncdu?
    EDIT:
    figured out what ncdu is, can't believe I'd never seen this program before!!! will be using it to track down the issue tomorrow! THANKS!!!
    Last edited by CPUnltd (2012-01-25 08:58:32)

  • Why all time in iphone 5 coming no service

    my iphone 5 make no service all the time i don't know why any way to solve this problem

    I had to turn off automatic carrier (Settings - Carrier - Automatic toggle), select my carrier manually, and then turn automatic back on again. Fixed it for me.

Maybe you are looking for

  • How to install 10.8 alongside 10.6?

    I'm using a macbook pro with 10.6.8 right now. I'd like to add 10.8 so i can use some current software that won't work with 10.6. I've been told I can just partition my current drive and install 10.8 on that partition. Is there a 'how to' someplace?

  • Canon (EOS 50D) Picture Styles in LR41

    Hey there, first let me tell you that I'm familiar with LR concepts. I read a lot about RAW processing, color profiles and stuff. It all makes sense to me. That having said... I'm unfortunatly quite unhappy with LR's color reproduction. It seems tech

  • HT204088 how do u find out your security answer because i forgot it?

    i cant buy any games apps or movies because its a new ipod touch and i have to put in a secuity answer and i dont know it

  • Crashes on Start Page

    I thought my users would like to try Safari, so I put it on a terminal server. Runs fine as the administrator, crashes on a null pointer as a regular user. Loading "Apple - Start": Safari.exe - Application Error The instruction at '0x6aab55a1" refere

  • Low performance in protal server

    Dear all, I'm running a web application on a portal server WLS8.1 runs on a windows 2003 server(Enterprise) surprisingly , web logic console appears fast and well on the browser but when I request a simple html page on the portal server ,it's so slow