What's wrong with AWT cursors on Windows Vista?

I'm getting a weird problem on Windows Vista as I'm trying to create custom cursors in AWT -- the ones you create with the createCustomCursor() function in java.awt.Toolkit, that is.
The problem is that their hotspot point is offset quite a few pixels to the down and right, leading to quite confusing effects. I'm not at all seeing the same effect on either Windows XP or on Linux with X.org (though on the latter, Sun's X11 toolkit seems to limit the cursors to two colors, but that's another problem). Is this a bug, or am I really doing something wrong?
I'm using the following function to create a cursor:
    private static Cursor makeawtcurs(BufferedImage img, Coord hs) {
     Dimension cd = Toolkit.getDefaultToolkit().getBestCursorSize(img.getWidth(), img.getHeight());
     BufferedImage buf = TexI.mkbuf(new Coord((int)cd.getWidth(), (int)cd.getHeight()));
     Graphics g = buf.getGraphics();
     g.drawImage(img, 0, 0, null);
     g.dispose();
     return(Toolkit.getDefaultToolkit().createCustomCursor(buf, new Point(hs.x, hs.y), ""));
    }

Please ignore this topic. I found out that it's not actually the cursor that is wrong, but rather the window size calculation. On Vista, the window becomes larger than I request, and therefore the window coordinates don't match up against my logical coordinates.

Similar Messages

  • What is wrong with the Event Creation window in Calendar?

    Is there a formal way I can ask you, Apple, to put the patch on this issue for the next update? (sooner rather than later) The entire right-hand side of the menu is cut off along with the all important save button and is highly annoying that I cannot save the events I create!! I was kind of astonished that 6.1.3 only had fixes for Maps in Japan.

    Can you call customer service from a landline at 1-800-922-0204 or you can use the "Contact Us"  link at the top of the website?

  • What is wrong with OSX on the MacBook Pro and when will it be fixed?

    When running Second Life or Worlds of Warcraft or just quick browing... anything graphically intensive on the MacBook Pro, the machine slows to a crawl, eventually completely freezes up. The cursor doesn't move, pressing the Caps Lock key does not change the Caps Lock light and the machine is no longer reachable from any other machine on the network. The only means available to recover is to hold the power button down until the Mac powers off and then restart it. This doesn't happen when running XP through boot camp and windows client versions of these programs. What is wrong with OSX on the MacBook Pro and when will it be fixed? Thanks.

    I am not sure that this relevant to the discussion. But I am searching for anyone else who is seeing random freezes on 10.4. I usually don't see anything in the log after I have to do a hard reboot of the box. However, I have noticed some I/O messages when I have been able to console into an affected device, but have not captured to this point. Also, when I am able to console, the box will accept the login, but times out when trying to authenticate the password.
    I am also seeing a server freeze on my G4s. I am able to reproduce the problem with a clean install from the 10.4 disk. The issue is reproducible with tcpdump, dumpcap as well as tshark. I have also tried compiling the tools with different versions of libpcap. I am able to reproduce this problem every time with a packet generator sending small packets.
    It seems that the small packets aggravate the underlying cause. As the more small packets are sent the quicker I am able to reproduce the problem. With a mix of packet sizes, as seen in most networks, this issue is hard to reproduce. We have been using the G4 since 2003 as a packet analysis tool and it has been very stable up until we attempted to do analysis of a VOIP network with 10.4. The small RTP packets in conjunction with 10.4 seem to be the culprit.
    So far I am not able to reproduce the freeze on a 10.2 or 10.3 image. This is not isolated to bad hardware, as I have been able to reproduce on 4 different Xserves in my labs with similar configurations.
    I currently have a G4 set up in my lab and would be able to supply any info that may be needed to track down this issue. I have been thrust into administration on this box recently so I am not very familiar with debugging procedures on the Xserve or MacOS. However, I have the hardware and the test equipment that many in a production setting may not have at their disposal. So if anyone, with extensive knowledge of the Xserve or MacOS, is willing to work with me to track down this issue I am willing to do the leg work in the lab. I would appreciate any assistance that is available.

  • What's Wrong with My Computer?

    I have a G5 desktop computer, I believe it's referred to as a "Power Mac." My mom purchased it some years ago, I think in late 2005 shortly after this particular model was on the market.
    Info is:
    Version 10.5.8
    Processor 4 x 2.5 GHz PowerPC G5
    Memory 4.5 GB DDR2 SDRAM
    Hard Drive 240 GB (127 GB unused/available)
    My mother wasn't using this computer for many years, and my 13" Macbook was giving me trouble, so she gave this one to me. It's all been great (she maxed out the memory and hard drive space when she bought it, even though it is outdated and insignificant compared to current models), except for one little thing... Browsing the internet is usually fine when it's only one window, but not always. However, it is almost a guarantee that while trying to operate multiple windows and trying to play a video, Safari will crash. And not just once in awhile. I'm talking about on a daily basis. During regular offline computer use, like Photoshop or iTunes, the computer will sometimes grey over (as if someone put a fairly thick grey film over the entire screen), and tell me I have to restart the computer. So what's wrong with it? I presume it is a physical issue (failing memory, mother board, etc.), but what?

    Your computer is not remotely "maxed out" with RAM.
    You're describing a G5 Quad like mine (though mine was built in June of 2006), and maxed out means having 16 GB of RAM installed, like mine has.
    The Frolick wrote:
    …the computer will sometimes grey over (as if someone put a fairly thick grey film over the entire screen), and tell me I have to restart the computer. So what's wrong with it?…
    That's called a Kernel Panic, and, yes, it is most often caused by hardware problems, such as bad RAM or mismatched RAM.  I can't imagine how you get to 4.5 GB of RAM without exponentially increasing the risk of mismatched RAM.
    RAM has to be installed in matched pairs, starting from the center slots and spreading outward: 4*3*2*1*1*2*3*4
    On the other hand, my own personal experience has led me to conclude that Safari is a piece of cr@p.  It causes problems just being active in the background, causing other applications to fail.
    Check your RAM carefully, starting with just one pair of matched RAM sticks in the two center slots, then adding one pair at a time.  Check your hard disk with Apple's Disk Utility.
    The kernel panics can be caused by a damaged directory too, so if you own Disk Warrior, run it.  If you don't own DiskWarrior, at least Repair Permissions with Apple's Disk Utility and use Verify Disk/Repair Disk with it.
    I'd also recommend downloading and installing Applejack and run it according to the instructions.
    Good luck.
    2.5 GHz Power Mac (PPC) G5-Quad; 16GB RAM; mutant, flashed 550MHz nVidia GeForce 7800GTX 1,700MHz 512MB VRAM; ATTO ExpressPCI UL5D LP SCSI card; Mac OS X Tiger 10.4.11 and Leopard 10.5.8 boot drives; Spotblight, Dashboard and Time Machine permanently disabled; dual 22" CRT monitors; USB wireless 'n' available but connected to the Internet via wired Ethernet; FW flatbed scanner; 2 SCSI scanners (one tabloid-size transparency scanner and a film scanner); various internal & external HDs; FW Epson 2200 and Ethernet Samsung ML-2850ND printers; 2 X Back-UPS RS 1500 XS units.

  • What's wrong with my Final Cut Pro 7.03?

    What's wrong with my Final Cut Pro 7.03?
    I have just started up a new project.
    Every time I try to ad a clip in top of each other a "general error" shows up. The sequence viewer turned red and it displays that I have to close and reopen the window to restore.
    The only "new thing" I do - is the use/brand of camera.
    Now I use the canon D5 mark 3 for my project (before D5 mark 2)
    What's wrong??? Do I need to update my Final Cut Pro 7.0.3 And how do I do this???
    Final Cut Pro 7, Mac OS X (10.6.8)

    Did you use Log & Import?  Or did you at least convert the D5 files before importing?  FCP doesn't work with those files natively.
    -DH

  • What is wrong with as3

    this is not a question about 'how i do X'. is rather a 'discussion' (flame or whatever, but to defend or argue about aspects, not people) about 'what is wrong with as3' and what aspects whould be taken into consideration for updates. right now i am using as3, and since i paid for this license, i choose this tool over some alternatives and i am using it to do stuff for other people who pay me to do it, i think it can be helpful for all of us if some actions are started in the right direction. i have already posted about 'all people in adobe are dumbasses that do not know how to make a scripting tool and are messing up my work', but i was pissed at the time (i still am pissed) but i believe this is not the right aproach. instead, if this goes to the right people in adobe, we all may get something in the future, like better and easier todo apps and web presentations.
    pre: not only about the as3 specification, but COMPLY with the specification that you set. for example, some time ago there were problems with matrix transforms. this was corrected later with a patch. but this means it is not even doing what is is supposed to do
    1. scriptable masks and movement, sprites and child sprites: there is a sprite with a mask, the mask is a shape drawn via script, something like
    somemask=new shape();
    somemask.graphics.beginfill();
    (...etc)
    somesprite.mask=somemask;
    just like that. now add some child sprites to 'somesprite', and make 'somesprite' move, scale and rotate. there you will have something like a kaleidoscope, but not what you expected to do with your script. as the child sprites move in the parent mask, you will see that the child sprites appear or dissapear kind of randomly, and if the child sprites are textfields, it may be that the text is rendered outside the mask, or partially rendered outside the mask (as in only part of the text), rendered with the wrongf rotation or in the wrong place. some child sprites are clipped correctly, some dissapear totally when only a part should dissapear (clipped) etc.
    way around: have not tried it yet, but i have the impression that bitmaps have different criteria for clipping, so i am thinking of trying this: appli an empty filter (a filter with params so it does not have any effect on the sprite or in the textfield) so the sprite is rendered as bitmap before doing anything else with it. as i said, i have not done it yet, but it may be a way around this problem, to avoid all this inconsistency with clipping
    1-b. inconsistency between hierarchy and coordinates, specially masks: you apply a mask to a sprite, yet the sprite has a set of coordinates (so 'x' in the sprite means an x relative to its container), yet the mask applied to the very same sprite, as another reference as reference for coordinates (like the stage)
    2. painting via script: in any other languaje, in any other situation, something like:
    beginFill(params);
    (...stuff 1)
    endFill();
    beginFill(params);
    (...stuff 2)
    endFill();
    (...etc)
    means: render region of block 1, then render region of block 2 etc, and no matter what, it should be consistent, since there is noplace for ambiguity. if you read it, you may think what that means, even if you dont run it you may have an idea of the picture you want to draw, but not with as3. as3 somehow manages to screw something that simple, and mixes all the blocks, and somehow uses the boundaries of one block as boundaries for other block. is like all blocks are dumped into whatever, and then uses all lines defined into it as boundaries for a unique block. it changes all boundaries and generates inconsistency between what is shown and redraw regions of the resulting picture, like lines that go to the end of the screen and then dont go away in the next frames, even tough the beginfill endfill block should prevent it
    3. event flow: i dont know what was the policy behind as3 event flow design. it is in no way similar or an extension to previous event flow, neither with any event flow in any other plattform. i dont know how most people start with as3; in my case, i unpacked, installed and when i tried to do something with what i already knew i could not, so i started reading the as3 docs, and since is like 800 pages long, i just read the basics and the rest i would 'wing it'. in the part of the event flow, there was something about bubbling and stuff, it was not clear at all and when i tried to do what is was said in the documentation (like preventing events to 'bubble', as is called in the documentation), i could not see any effect but i could see it was a mess. flash is not the only thing out there to work with pictures or to work with mouse events, but is the only one that deals with things like 'target' and 'currentTarget'. my first experience on needing this was when i was dealing with my own event handlers (so the only thing that had control over mouse was the stage, and i would admin everything via script). there were events generated everywhere, the stage got events that were not genrated directly over the stage, but got there not with stage coordinates but the coordinates relative to the sprite that generated the event. so if i hover the mopuse over the stage, and the stage has some things on it how does it work? i get multiple event calls, like it was hovering multiple times over the stage in a single frame, but in each call with different coordinates? and what if i set all child sprites as mouseenabled=false or compare like 'if (event.target != event.currenttarget)', what if i move the mouse over a child, does it prevent the move mouse event at all? or does it filter only the event call with only stage coordinates? in my case, every time i move over another clip (with mouseenabled = true), the stage gets it as 'mouse up', even tough there was never a mouse release, what the hell? do even the people at adobe know how to handle events with their own tool when they require it? why does an event 'bubble' when i have not specifically tell it to do it? mi thought is that this event flow was very poorly conceived, and tough the intention may have been that there were different cases and it shopuld cover all cases, they actually introduced new problems that were not present in traditional ways to handle it, and it is neither the easier way to handle things, and this way, a very simple problem turns into a very ugly thing because it must handle things that were not neccesary to handle, or were implicit in other situations.
    4. legacy: since as3, all interaction is different, and if you want to do things in the new plattform, using the new features, what you already knew just goes to the garbage can. when a new tool arrives, it should be an extension to previous tools (which is a reason to update instead of just buying a new tool from a different vendor). if everything i had or knew just means nothing from now on, then i can not say 'i know flash script', and my previous knowledge gives me no advantage when aproaching the new version. as3 is a new aproach that requires doc reading and stuff, even if you knew something about previous as specifications or other oo languajes. if you decide to change things from now on, like the things mentioned in this post, instead of just throwing away everything the users alerady knew about the tool, do like in java releases, they mark some things as 'deprecated', they keep working as they should, give a warning, but also a message saying this feature is deprecated, we suggest you use this library instead.
    5. lack of previous functionality: if you 'update' something, it meand all previos functionality is still there (probably improved, but not with bugs if it was working fine), plus something else. now it seems backwards, there are some things that could be done in previous versions but not in this one, like 'duplicatemovieclip'
    6. inconsistency with scripting/programming paradigms: (ok, fancy work, but fits perfectly here): as3 proposed ways to handle things, but the people who designed it got 'too creative', and they did something that is not consistent neither with previous versions of as or with other languajes. the documentations is full of things like 'it looks like x languaje or languaje family, but instead of using XXX word, you must use YYY'. great, what is this? namespaces 'work like', but 'differently' for example from java, .net, .c. its got the idea that a namespace means a grouped functionality but there are rules about where should be placed the file (ok, java has this also, .net takes care of it automatically if all files are registered in the project), but what you got is a mess that 'if you know other languajes you got the general idea, but nonetheless, even if you knew this or previosu versions of as, you still have to read whatever we decided arbitrarily just to be different'. namespaces, event handling, vars definition which is not like previous scripting neither like fully typed languajes.. is just a mess.
    7. lack of scripting and graphics integration: unlike flash and adobe tools that just got on the graphics side leaving all the scripting integratuion apart, most tools from other vendors integrate very well interacton with what is on the screen. the script editor: very poor. autocompletion? a drop down list that does not heklp at all, appears in the wrong places, and when you need it to go, it does not go (so if i want to move away from the uncalled drop down list, i have to click somewhere else, making developement slowewr instead of helping, so the drop down list does not capture all events when i dont want to). in other ides you double click somewhere and it will go to the part of code relevant to that event or whatever. for example microsoft tools, ok i am antimicrosoft, and one of the reasons was that when windows 95 got to market proposing itself as the ONLY pc os you could use if you wanted to keep useing the apps you already had, it was a lousy product full of flaws but you had to keep using it because you had no choice. what is so different from what is happening with flash just now? yet the ide of c# is awesome, works very well and seems reliable.
    adobe people: not all user are designers that just make pretty pictures. if it is not intended for scripting then why is it there. and if there are corrections to be done, they should patch all versions, not only the last one. previous version users also paid for their versions.

    Well, there is no point in arguing.
    I personally believe AS3 does exactly what it promises to do within limits (read: reasonable limits) of ECMA type of language. And sometimes it doesn’t do what we expect it to for it cannot possibly emulate everyone’s thinking process. The task, I guess, is to learn to think in terms of AS3 – not to try to make AS3 think like us. No language covers all the grounds. And no, it is not Java - with no negative or positive connotation. It is what it is. Period. I just hope that AS5 will be more Java like.
    You are right about the fact that it is not necessary to know all the aspects of language in order to perform the majority of tasks. But it is paramount to have a clear idea about such fundamental concepts as display list model and events. For instance, depth swap has no meaning in terms of AS3 because display list object stacking is controlled automatically and there is no need for all these jumping through hoops one has to perform in order to control depth in AS2. There no more gaps in depths and one always know where to find things.
    Similarly, there is no point in having duplicateMovieClip method. More conventional OOP ways of object instantiation accomplishes just that and much more. Just because OOP object instantiation needs to be learned doesn’t mean past hacks have place in modern times. duplicateMovieClip is a horse carriage standing next to SUV. What one should choose to travel?
    Events are implemented to the tee in the context of ECMA specifications. I consider Events model as very solid, it works great (exactly as expected) and never failed me. True, it takes time to get used to it. But what doesn’t?
    By the way, speaking about events, contrary to believe in Adobe’s inconsideration to their following. Events are implemented with weakly reference set to false although it would be better to have it set to true. I think this is because there are smart and considerate people out there who knew how difficult it would be for programming novices to deal with lost listeners.
    I think AS3 is million times better than AS2. And one of the reasons it came out this way is that Adobe made a very brave and wise decision to break totally loose from AS2’s inherent crap. They have created a totally new and very solid language. If they had tried to make it backward compatible – it would be a huge screw up, similar to how our friends at Microsoft are prostituting VB and VBA – extremely irritating approach IMHO.
    Also, Flash legacy issues shouldn’t be overlooked. Flash did not start as a platform for programmers. Entire timeline concept in many ways is not compatible with the best OOP practices and advancements. I think for anyone who is used to writing classes the very fact of coding on timeline sounds awkward. It feels like a hack (and AS2 IS a pile of hacks) – the same things can be nicely packaged into classes and scale indefinitely. As such I wouldn’t expect Adobe to waste time on hacking timeline concept issues by making smarter editor. They have made a new one – FlexBuilder – instead. Serious programmers realize very soon that Flash IDE is not for developing industrial strength applications anyway. So, why bother with channeling great minds into polishing path to the dead end?
    I would like to state that all this is coming form a person who knew Flash when there was no AS at all. And I applaud every new generation of this wonderful tool.
    I believe Adobe does a great job making transition from timeline paradigm to total OOP venue as smooth as possible. And no, they don’t leave their devoted followers behind contrary to many claims. They are working on making developing Flash applications as easy as possible for people of all walks. Welcome Catalyst!
    Of course there is not enough information about AS3 capabilities and features. But, on the other hand, I don’t know any area of human kind activities that does.

  • JScrollPane, what is wrong with my code?

    Hi, I appreciated if you helped me(perhaps by trying it out yourself?)
    I wanted my JScrollPane to display what is drawn on my canvas (which may be large)by scrolling, but it says it doesn't need any vertical and horizontal scroll bars. Here is the code that has this effect
    import javax.swing.*;
    import java.awt.*;
    public class WhatsWrong extends JApplet{
    public void init(){
    Container appletCont = getContentPane();
    appletCont.setLayout(new BorderLayout());
    JPanel p = new JPanel();
    p.setLayout(new BorderLayout());
    p.add(new LargeCanvas(),BorderLayout.CENTER);
    int ver = ScrollPaneConstants.VERTICAL_SCROLLBAR_AS_NEEDED;
    int hor = ScrollPaneConstants.HORIZONTAL_SCROLLBAR_AS_NEEDED;
    JScrollPane jsp = new JScrollPane(p,ver,hor);
    appletCont.add(jsp,BorderLayout.CENTER);
    class LargeCanvas extends Canvas{
    public LargeCanvas(){
    super();
    setBackground(Color.white);
    public void paint(Graphics g){
    g.drawRect(50,50,700,700);
    and the html code:
    <html>
    <body>
    <applet code="WhatsWrong" width = 300 height = 250>
    </applet>
    </body>
    </html>
    What shall I do?
    Thanks in advance.

    What is wrong with your code is that your class, LargeCanvas must implement the Scrollable interface in order to be scrolled by a JScrollPane.
    A comment regarding your use of Canvas and Swing components: The Java Tutorial recommends that you extend JPanel to do custom painting. Canvas is what they call a "heavyweight" component and they recommend not to mix lightweight (Swing) components and heavyweight components.
    There is a lot more information on custom painting on the Java Tutorial in the Lesson "Creating a GUI with Swing.

  • I HATE my new MACBOOK PRO, it will not let me open any PDF files and I downloaded the ADOBE READER three freaking times and it keeps saying that all the files are corrupt. I would rather have my 2008 Dell at this point. what is wrong with this thing

    I HATE my new MACBOOK PRO, it will not let me open any PDF files and I downloaded the ADOBE READER three freaking times and it keeps saying that all the files are corrupt or damaged. I would rather have my 2008 Dell at this point. what is wrong with this thing

    Perhaps the PDF files are corrupted.
    Hit the command key and spacebar, a blue Spotlight in the upper right hand corner appears, now type Preview and press return on the Preview program.
    Now you can try opening the PDF's from the file menu and see what's going on.
    If they are corrupted, perhaps they are trojans from your Windows PC or gotten from a bad location online.
    Download the free ClamXav and run a scan on the possibly infected folder.

  • What is wrong with my monitor photo attached

    i just got a macbook pro yesterday and when i was using all of a sudden this came on the screen, and i just restarted it and it was gone. today i turn it on and this happens again. what is wrong with it.

    I view the forum on a 30" display. But no matter how wide the window is, your picture shows with the right side truncated and a scroll bar. It never occurred to me that I needed to scroll to the right to see what the problem was.
    You have a serious Hardware problem, and the graphics hardware is not a separately-replaceable card.
    Take it back. If within the 14-day period, they will just trade for a new one. If after that, they will sometimes just trade for a new one, but THEY make the decision of whether to repair instead.
    If they exchange, the genius Bar can help you copy your files, but it is always better if you have your own Backups before you go.

  • What is wrong with my Macbook?

    I dropped my macbook (2007 model) and the screen is so cracked that I can not see anything. I got a mini-dvi - vga cord and plugged it into a monitor, but when i turn it on, it just goes to the mac background, and will not show the login screen. What is wrong with it?

    it's putting the monitor as second display, so the login screen (i'm guessing) is only displaying on the first—main—screen, the the one that is cracked.
    restart the macbook and don't touch anything. when the background appears on the secondary monitor, you know the login screen must be up on the first monitor. so type in your username, hit TAB once, then your password.
    you should be able to log in now. then follow these instructions:
    (bare in mind i'm running 10.6.8)
    1) press ALT+F2 to open up displays in system preferences.
    2) you should be able to see a dialog open up in the secondary monitor
    3) if this has a "Gather Windows" button, press it
    4) if step 3) works, you should be able to switch around the main displays, or turn on mirror mode, or whatever

  • What is wrong with my iBook?

    I have a G4 1.xx ghz iBook. It's about 14 months old, and it just stopped working a few days ago.
    It no longer powers up. I can hear what sounds like the fan when I push the power button, but nothing happens. The display worked just fine right before this happened, but now the display doesn't even turn on when I click on the power. It doesn't even make the startup sound.
    I have to click on shift control alt and power to shut it down. It once started up normally since this happened, but it turned itself off after about 10 minutes.
    What is wrong with my iBook? I've been using Windows again in the past week or so at home, and I really hate it.
    Please provide me some suggestions...
    Is this the infamous logic board problem? I thought those would only occur on the G3.
    iBook G4   Mac OS X (10.4.7)  
    iBook G4   Mac OS X (10.4.7)  

    Now it's working just fine. I am using my iBook now.
    I thought that the Apple Care was only good for 12 months. I am on my 14th or 15th month of owning it.
    iBook G4   Mac OS X (10.4.8)  

  • What's wrong with my store procedure?

    HI, I can't figure out what's wrong with my stored procedure. I believe i have a "commit;" where it's not supposed to be. What i really want to acheive is save the record once it finds those keywords. Maybe my syntax is all wrong.
    I am getting the following error msg. PLS-00103
    create or replace
    procedure sp_diag is
    DECLARE
    v_setting_key NUMBER(18);
    v_parent NUMBER(22);
    v_name VARCHAR2(100);
    v_class_key NUMBER(22);
    CURSOR c1 IS
    select setting_key, setting_class_key,name
    from cms2wire.setting_list;
    CURSOR c2 IS
    select setting_class_key, parent_class_key,name
    from cms2wire.setting_class
    where setting_class_key = v_parent;
    BEGIN
    OPEN c1;
    LOOP
    FETCH c1 into v_setting_key, v_parent, v_name;
    EXIT when c1%NOTFOUND;
    WHILE v_parent != null
    LOOP
    OPEN c2;
    FETCH c2 into v_class_key, v_parent, v_name;
    CLOSE c2;
    IF v_name='Diag.'or v_name='Settings.' THEN
    COMMIT;
    END IF;
    END LOOP;
    END LOOP;
    CLOSE c1;
    END;
    -------------------------------------------------------------------------------------

    Now, the way I see it, if you want to save the information, then you need to put it some place, so your slow-by-slow stored procedure becomes something like
    INSERT INTO some_table (column list)
      SELECT a.setting_key,
             a.setting_class_key,
             a.name
             b.setting_class_key,
             b.parent_class_key,
             b.name
        FROM cms2wire.setting_list  a,
             cms2wire.setting_class b
       WHERE a.setting_class_key = a.setting_class_key
         AND b.name in ('Diag.', 'Settings.');
    COMMIT;does it not?

  • What's wrong with my code? please help....

    when display button is clicked it must diplay the remarks but it didn't happen...
    what's wrong with my code? please help
    here is my code.....
    import java.applet.Applet;
    import java.awt.*;
    import java.awt.event.*;
    public class Area extends Applet implements ItemListener,ActionListener
         {Label arlbl = new Label("AREA");
          Choice archc = new Choice();
          Label extlbl = new Label("EXPENDITURE TYPE");
          CheckboxGroup extchk = new CheckboxGroup();
              Checkbox fchk = new Checkbox("FOOD",extchk,true);
              Checkbox schk = new Checkbox("SHELTER",extchk,false);
              Checkbox echk = new Checkbox("EDUCATION",extchk,false);
              Checkbox uchk = new Checkbox("UTILITIES",extchk,false);
          Label exalbl = new Label("EXPENDITURE AMOUNT");
          TextField exatf = new TextField("",20);
          Label remlbl = new Label("REMARKS");
          TextField remtf = new TextField("",30);
          Button disbtn = new Button("DISPLAY");
          Button resbtn = new Button("RESET");
          String display;
          public void init()
              {add(arlbl);
               archc.add("MANILA");
               archc.add("MAKATI");
               archc.add("QUEZON");
               archc.add("PASAY");
               add(archc);
               archc.addItemListener(this);
               add(extlbl);
               add(fchk);
               fchk.addItemListener(this);
               add(schk);
               schk.addItemListener(this);     
               add(echk);
               echk.addItemListener(this);
               add(uchk);
               uchk.addItemListener(this);
               add(exalbl);
               add(exatf);
               add(remlbl);
               add(remtf);
               add(disbtn);
               disbtn.addActionListener(this);
               add(resbtn);
               resbtn.addActionListener(this);
         public void itemStateChanged(ItemEvent ex)
              {int n = archc.getSelectedIndex();
               if(n==0)
                   {if(fchk.getState())
                         {exatf.setText("10000.00");
                         display = archc.getSelectedItem();
                   if(schk.getState())
                        {exatf.setText("15000.00");
                        display = archc.getSelectedItem();
                   if(echk.getState())
                        {exatf.setText("24000.00");
                        display = archc.getSelectedItem();
                   if(uchk.getState())
                        {exatf.setText("8500.00");
                        display = archc.getSelectedItem();
              if(n==1)
                   {if(fchk.getState())
                        {exatf.setText("5000.00");
                        display = archc.getSelectedItem();
                   if(schk.getState())
                        {exatf.setText("11000.00");
                        display = archc.getSelectedItem();
                   if(echk.getState())
                        {exatf.setText("7500.00");
                        display = archc.getSelectedItem();
                   if(uchk.getState())
                        {exatf.setText("24000.00");
                        display = archc.getSelectedItem();
              if(n==2)
                   {if(fchk.getState())
                        {exatf.setText("13000.00");
                        display = archc.getSelectedItem();
                   if(schk.getState())
                        {exatf.setText("7000.00");
                        display = archc.getSelectedItem();
                   if(echk.getState())
                        {exatf.setText("27000.00");
                        display = archc.getSelectedItem();
                   if(uchk.getState())
                        {exatf.setText("6000.00");
                        display = archc.getSelectedItem();
              if(n==3)
                   {if(fchk.getState())
                        {exatf.setText("6000.00");
                        display = archc.getSelectedItem();
                   if(schk.getState())
                        {exatf.setText("9000.00");
                        display = archc.getSelectedItem();
                   if(echk.getState())
                        {exatf.setText("15000.00");
                        display = archc.getSelectedItem();
                   if(uchk.getState())
                        {exatf.setText("19000.00");
                        display = archc.getSelectedItem();
         public void actionPerformed(ActionEvent e)
              {if(e.getSource() == disbtn)
                    {String amtstr = exatf.getText();
                     int amt = Integer.parseInt(amtstr);
                        {if(amt > 8000)
                             {remtf.setText(display + " IS ABOVE BUDGET");
                        else
                             {remtf.setText(display + " IS BELOW BUDGET");
              if(e.getSource() == resbtn)
                   {archc.select(0);
                   fchk.setState(true);
                   schk.setState(false);
                   echk.setState(false);
                   uchk.setState(false);
                   exatf.setText("");
                   remtf.setText("");
    Edited by: lovely23 on Feb 28, 2009 11:24 PM

    Edit: thanks for cross-posting this question on another forum. I now see that I wasted my time trying to study your code in the java-forums to help you with an answer that had already been answered elsewhere (here). Do you realize that we are volunteers, that our time is as valuable as yours? Apparently not. Cross-post again and many here will not help you again. I know that I won't.

  • What's wrong with my script?

    Can someone please look to see what's wrong with my
    navigation bar here:
    http://www.simple-it.us/index2.html.
    The links don't work.
    At the top of the page you can download my files.
    If you figure it out, please tell me in laymen's terms. Flash
    is NOT my forte!
    Thanks!
    Michelle

    Click on the top frame and open the actions window:
    btn_home.onRelease = function() {
    btn_home.getURL("");
    The getURL needs a url inside of the quotes - something like
    index.html

  • What's wrong with my feed ?

    Hi,
    I don't understand what's wrong with my feed : http://www.dailyfrenchpod.com/wordpress/feed
    - my page on iTunes shows all my episodes (and you can download each episode, one by one).
    - but if you subscribe, you can't get any episode (even if you refresh)
    My iTunes page : http://phobos.apple.com/WebObjects/MZStore.woa/wa/viewPodcast?id=191303933
    If you could help me ...
    Thanks.
    Louis
      Windows XP  

    http://feedvalidator.org/check.cgi?url=http%3A%2F%2Fwww.dailyfrenchpod.com%2Fwor dpress%2Ffeed
    Here are the error messages you are getting.
    Read the following tutorial and compare the exmaple feed in it to your feed to correct the mistakes.
    http://www.podcast411.com/howto_1.html
    Rob @ podCast411

Maybe you are looking for

  • How do you use Synergy 7.1 with LabVIEW?

    My company has reciently installed and configured IBM Rational Synergy 7.1 to be used as our Source Code Control tool.  I have installed the appropriate Microsoft Source Code Control Interface so that Synergy will show up in LabVIEW and it does show

  • Can i transfer music from one i pod to another?

    my i tunes disapeared from my computer, so all my music is gone. im upgrading from a 30gb to a 60bb and was wondering if i can transfer my music from the 30 to the 60. any info would be great

  • Photoshop CS5 edits not showing in Lightroom

    Experiencing strange behavior and would appreciate any advice... Am editing .CR2 files, then doing Edit in > Photoshop CS5 > Edit with Lightroom Adjustments and "Stack with Original".  All goes fine until I save and the new image is now displayed in

  • How to map multiple source structures to single target structure

    Hi all, I have the scenario of 2 input files so i am using BPM for it. I have created the message types of the 3 input files. I have to finally generate an XML file which will contain the data of all the 2 files. That is i have to do 3:1 mapping. Sou

  • Plz: Replication 9i Job Network Problem Hang

    Hi ,This problem is posted on this forum by other users but all of them remained unresponsed! I hope somebody will help me now: I have a hang problem in 9i We are using bidirectional Replication (Materialized View Replication) and when mview refresh