Problem with KeyStroke

can anyone tell me whats the problem with the following lines:
JMenuItem jMenuItemHelp = new JMenuItem("Help Topics");
jMenuItemHelp.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_F1, 0));
its giving me an ""MainInterface.java": <identifier> expected at line 51, column 31" error.
all import are in place.
thanks

I hope someone else recognizes this erroneous error. Your code seems okay to me. Maybe it is not the javac compilation, but some source code parser for a dialog editor? A dumb parser might have problems with a qualified expression like KeyStroke.VK_F1. Try 128 or something.

Similar Messages

  • Problem with keystrokes gone. Thank you

    Problem with keystrokes gone after computer shut down and brought back up. Thank you.

    This would not have anything to do with iCloud.  Try posting in one of the other forums where you'll have a good chance of getting a good response.  I'd try for the OSX forum for the verson your computer is using.

  • Re: Problem with KeyStroke (keyCode)

    Apparently, when a KeyStroke represents a character, it doesn't bother to pass along the KeyCode. If you really need that information, you'll have to attach your own KeyListener to capture the lower-level KeyEvents.

    Hi guys!
    I saw that this answer is correct, but it is not for me.
    The following code
    KeyStroke ks = KeyStroke.getKeyStroke('k', 0);does not work: in fatc the 'k' value is casted to int, and the int value of 'k' is not the corresponding VK_K value, so the key pressed is another key!
    I solved this problem in this way:
    1) I've mapped all the DOS character into an hashMap<Character,int[]>, with key=the char to digit, and value=the 3 numers of the DOS code of that characted
    Just some examples:
                    mapping.put('!', new int[] { 0, 3, 3 });//The code for ! is 033
              mapping.put('"', new int[] { 0, 3, 4 });// The code for " is 034
              mapping.put('#', new int[] { 0, 3, 5 });// The code for # is 035
                    mapping.put('i', new int[] { 1, 0, 5 });
              mapping.put('j', new int[] { 1, 0, 6 });
              mapping.put('k', new int[] { 1, 0, 7 });
              mapping.put('l', new int[] { 1, 0, 8 });
                    ......2) When I have to digit a char, retrieve the DOS code, and then press in sequence: ALT code[0] code[1] code[2]
    In this way all works fine

  • Problem With ButtonUI in an Auxiliary Look and Feel

    This is my first post to one of these forums, so I hope everything works correctly.
    I have been trying to get an axiliary look and feel installed to do some minor tweaking to the default UI. In particular, I need it to work with Windows and/or Metal as the default UI. For the most part I let the installed default look and feel handle things with my code making some colors lighter, darker, etc. I also play with focus issues by adding FocusListeners to some components. I expect my code to work reasonably well no matter what the default look and feel is. It works well with Motif, Metal, and Windows, the only default look and feels I've tested with. What I'm going to post is a stripped down version of what I have been working on. This example makes gross changes to the JButton background and foreground colors in order to illustrate what I've encountered.
    I have three source code files. The first, Problem.java, creates a JFrame and adds five buttons to it. One button installs MyAuxLookAndFeel as an auxiliary look and feel using MyAuxButtonUI for the look and feel of JButtons. The next button removes that look and feel. The next button does nothing except print a line to System.out. The next button installs MyAuxLookAndFeel as an auxiliary look and feel using MyModButtonUI for the look and feel of JButtons. The last button removes that look and feel.
    The problem is, when I install the first auxiliary look and feel, buttons are no longer tabable. Also, they cannot be invoked by pressing the space button when they're in focus. When I remove the first auxiliary look and feel everything reverts to behaving normally. When I add the "Mod" version, button tabability is fine. The only difference is I've added the following code:
    if ( c.isFocusable() ) {
       c.setFocusable(true);
    }That strikes me as an odd piece of code to profoundly change the program behavior. Anyway, after adding and removing the "Mod" look and feel, the tababilty is forever fixed. That is, if I subsequently re-install the first look and feel, tababilty works just fine.
    The problem with using the space bar to select a focused button is more problematic. My class is not supposed to mess with the default look and feel which may or may not use the space bar to press the button with focus. When the commented code in MyModButtonUI is uncommented, things behave correctly. Even the statement
    button.getInputMap().remove( spaceKeyStroke );doesn't mess things up after the auxiliary look and feel is removed. So far I've tested this with JRE 1.4.2_06 under Windows 2000, JRE 1.4.2_10 under Windows XP, and JRE 1.5.0_06 under Windows XP and the behavior is the same.
    All of this leads me to two questions.
    1. Is my approach fundamentally flawed? I've extended TextUI and ScrollBarUI with no problems. This is the only problem I've encountered with ButtonUI. My real workaround for the space bar issue is better than the one I've supplied in the example, but it certainly is not guaranteed to work for any arbitrary default look and feel.
    2. Assuming I have no fundamental problems with my approach, it's possible I've found a real bug. I searched the bug database and couldn't find anything like this. Of course, this is the first time I've tried seasrching the database for a bug so my I'm doing it badly. Has this already been reported as a bug? Is there any reason I shouldn't report it?
    What follows is the source code for my example. It's in three files because the two ButtonUI classes must be public in order to work. Thanks for insight you can provide.
    Bill
    File Problem.java:
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    public class Problem extends JFrame {
       public boolean isAuxInstalled = false;
       public boolean isModInstalled = false;
       public LookAndFeel lookAndFeel = new MyAuxLookAndFeel();
       private static int ctr = 0;
       public static void main( String[] args ) {
          new Problem();
       public Problem() {
          this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
          setSize(250, 150);
          setTitle("Button Test");
          JButton install = new JButton("Install");
          JButton remove = new JButton("Remove");
          JButton doNothing = new JButton("Do Nothing");
          JButton installMod = new JButton("Install Mod");
          JButton removeMod = new JButton("Remove Mod");
          this.getContentPane().setLayout(new FlowLayout());
          this.getContentPane().add(install);
          this.getContentPane().add(remove);
          this.getContentPane().add(doNothing);
          this.getContentPane().add(installMod);
          this.getContentPane().add(removeMod);
          install.addActionListener(new ActionListener() {
             public void actionPerformed(ActionEvent e) {
                if ( !isAuxInstalled ) {
                   isAuxInstalled = true;
                   UIManager.addAuxiliaryLookAndFeel( lookAndFeel );
                   SwingUtilities.updateComponentTreeUI( Problem.this );
          remove.addActionListener(new ActionListener() {
             public void actionPerformed(ActionEvent e) {
                if ( isAuxInstalled ) {
                   isAuxInstalled = false;
                   UIManager.removeAuxiliaryLookAndFeel( lookAndFeel );
                   SwingUtilities.updateComponentTreeUI( Problem.this );
          doNothing.addActionListener(new ActionListener() {
             public void actionPerformed(ActionEvent e) {
                System.out.println( "Do nothing " + (++ctr) );
          installMod.addActionListener(new ActionListener() {
             public void actionPerformed(ActionEvent e) {
                if ( !isModInstalled ) {
                   isModInstalled = true;
                   UIManager.addAuxiliaryLookAndFeel( lookAndFeel );
                   SwingUtilities.updateComponentTreeUI( Problem.this );
          removeMod.addActionListener(new ActionListener() {
             public void actionPerformed(ActionEvent e) {
                if ( isModInstalled ) {
                   isModInstalled = false;
                   UIManager.removeAuxiliaryLookAndFeel( lookAndFeel );
                   SwingUtilities.updateComponentTreeUI( Problem.this );
          setVisible(true);
       class MyAuxLookAndFeel extends LookAndFeel {
          public String getName() {
             return "Button Test";
          public String getID() {
             return "Not well known";
          public String getDescription() {
             return "Button Test Look and Feel";
          public boolean isSupportedLookAndFeel() {
             return true;
          public boolean isNativeLookAndFeel() {
             return false;
          public UIDefaults getDefaults() {
             UIDefaults table = new MyDefaults();
             Object[] uiDefaults = {
                "ButtonUI", (isModInstalled ? "MyModButtonUI" : "MyAuxButtonUI"),
             table.putDefaults(uiDefaults);
             return table;
       class MyDefaults extends UIDefaults {
          protected void getUIError(String msg) {
    //         System.err.println("(Not) An annoying error message!");
    }File MyAuxButtonUI.java:
    import javax.swing.*;
    import java.awt.*;
    import javax.swing.plaf.*;
    import javax.swing.plaf.multi.*;
    import javax.accessibility.*;
    public class MyAuxButtonUI extends ButtonUI {
       private Color background;
       private Color foreground;
       private ButtonUI ui = null;
       public static ComponentUI createUI( JComponent c ) {
          return new MyAuxButtonUI();
       public void installUI(JComponent c) {
          MultiButtonUI multiButtonUI = (MultiButtonUI) UIManager.getUI(c);
          this.ui = (ButtonUI) (multiButtonUI.getUIs()[0]);
          super.installUI( c );
          background = c.getBackground();
          foreground = c.getForeground();
          c.setBackground(Color.GREEN);
          c.setForeground(Color.RED);
       public void uninstallUI(JComponent c) {
          super.uninstallUI( c );
          c.setBackground(background);
          c.setForeground(foreground);
          this.ui = null;
       public void paint(Graphics g, JComponent c) {
          this.ui.paint( g, c );
       public void update(Graphics g, JComponent c) {
          this.ui.update( g, c );
       public Dimension getPreferredSize(JComponent c) {
          if ( this.ui == null ) {
             return super.getPreferredSize( c );
          return this.ui.getPreferredSize( c );
       public Dimension getMinimumSize(JComponent c) {
          if ( this.ui == null ) {
             return super.getMinimumSize( c );
          return this.ui.getMinimumSize( c );
       public Dimension getMaximumSize(JComponent c) {
          if ( this.ui == null ) {
             return super.getMaximumSize( c );
          return this.ui.getMaximumSize( c );
       public boolean contains(JComponent c, int x, int y) {
          if ( this.ui == null ) {
             return super.contains( c, x, y );
          return this.ui.contains( c, x, y );
       public int getAccessibleChildrenCount(JComponent c) {
          if ( this.ui == null ) {
             return super.getAccessibleChildrenCount( c );
          return this.ui.getAccessibleChildrenCount( c );
       public Accessible getAccessibleChild(JComponent c, int ii) {
          if ( this.ui == null ) {
             return super.getAccessibleChild( c, ii );
          return this.ui.getAccessibleChild( c, ii );
    }File MyModButtonUI.java:
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.plaf.*;
    public class MyModButtonUI extends MyAuxButtonUI
       static KeyStroke spaceKeyStroke = KeyStroke.getKeyStroke(KeyEvent.VK_SPACE, 0 );
       public static ComponentUI createUI( JComponent c ) {
          return new MyModButtonUI();
       public void installUI(JComponent c) {
          super.installUI(c);
          c.setBackground(Color.CYAN);
          if ( c.isFocusable() ) {
             c.setFocusable(true);
    //      final JButton button = (JButton) c;
    //      button.getInputMap().put( spaceKeyStroke, "buttonexample.pressed" );
    //      button.getActionMap().put( "buttonexample.pressed", new AbstractAction() {
    //         public void actionPerformed(ActionEvent e) {
    //            button.doClick();
    //   public void uninstallUI(JComponent c) {
    //      super.uninstallUI(c);
    //      JButton button = (JButton) c;
    //      button.getInputMap().remove( spaceKeyStroke );
    //      button.getActionMap().remove( "buttonexample.pressed" );
    }

    here is the code used to change the current look and feel :
    try {
                   UIManager.setLookAndFeel("com.sun.java.swing.plaf.motif.MotifLookAndFeel");
             catch (InstantiationException e)
                  System.out.println("Error occured  "+ e.toString());
             catch (ClassNotFoundException e)
                  System.out.println("Error occured  "+ e.toString());
             catch (UnsupportedLookAndFeelException e)
                  System.out.println("Error occured  "+ e.toString());
             catch (IllegalAccessException e)
                  System.out.println("Error occured in .. " + e.toString());
             Dimension dim = Toolkit.getDefaultToolkit().getScreenSize();
             Fenetre fen = new Fenetre();
             fen.setSize(dim.width, dim.height);
             fen.setResizable(false);
                 fen.setLocation(0, 0);
                  fen.setVisible(true);

  • Problem with display

    Hi - My iMac seems to have 'developed' a problem with it's display. The whole screen looks as though it has had its contrast/brightness turned up very high & there is a severe degradation to the quality of all of it.
    The 'lines' & boxes around everything in a window are hardly visible, all the colours are very de-saturated & it also looks like there's a problem with 'aliasing', ie all the graphics on the dock look very 'scratchy' in quality.
    I have tried system prefs, displays - but nothing on there seems to be helping...any ideas??!! - I do have 3 kids who may have been 'fiddling' but I don't know where else to look! - HELP!
    Thanks

    Could be someone may have found the keyboard shortcut for the
    Universal Access> Seeing> 'white on black' reversal; by chance
    that can be selected by random use of a keyboard combination.
    If that's the case, you can visit System Preferences> Universal Access
    and note options in Seeing where you can re-select Black on White, as
    this is the Default.
    { I've heard of another thing called *'invert colors'* which can happen
    through use of a keyboard combination; it may be the same setting:
    re: http://support.apple.com/kb/HT3488?viewlocale=en_US uses
    4 keys, together: Control-Option-Command-8 key combination }
    +Through use of additional user accounts with less privilege settings,+
    +such incidents may be avoided; along with any other account access+
    +into other user files & folders. This in place of or with Parental controls.+
    About keyboard shortcuts:
    • Mastering keyboard shortcuts:
    http://www.myfirstmac.com/index.php/mac/articles/mastering-keyboard-shortcuts
    • Mac OS X keyboard shortcuts:
    http://support.apple.com/kb/HT1343
    • Dan Rodney's list of Mac OS X keyboard shortcuts & keystrokes:
    http://www.danrodney.com/mac/
    • Shortcuts:
    http://shortcuts.heroku.com/
    • Magical Macintosh Key Sequences: (includes vintage)
    http://davespicks.com/writing/programming/mackeys.html
    Hopefully this helps...
    Good luck & happy computing!
    PS: This does sound familiar; you've been there before:
    http://discussions.apple.com/message.jspa?messageID=13124058#
    +{ edited to add links }+

  • Problems with browsers and 'w' key since updates

    Hi
    I ran 'pacman -Syu' a little over a week ago, and since then I've been experiencing two rather odd problems.
    1.
    Using any web-browser (firefox, epiphany, songbird, etc), visiting pages that make use of javascript (i -think- that's the cause) makes the browser stop responding for 10-20 seconds. It goes grey and everything. And then eventually it starts working again. This occurs on many websites such as Facebook, Woot.com, to name a few big ones. It's really starting to drive me nuts.
    2.
    This problem's much weirder. After starting my computer, the w key is very unresponsive. By that I mean for a 'w' keystroke to register I need to hold down the 'w' key for 1 or 2 seconds, after which it will finally work. At first I thought this was a problem with my keyboard, but as the computer remains on, the problem slowly disappears - after about 30 minutes, the 'w' key works as expected. I don't think this is an X/GNOME problem, as I experience the same problems in the TTYs.
    I have a Sony Vaio FE-890:
    oliver@helios:~$ uname -a
    Linux helios 2.6.28-ARCH #1 SMP PREEMPT Fri Feb 13 11:03:55 CET 2009 x86_64 Intel(R) Core(TM)2 CPU T7600 @ 2.33GHz GenuineIntel GNU/Linux
    I've been updating frequently in the interim hoping the problems will go away, but so far no luck. Any thoughts?

    Hi
    Thanks for your suggestions.
    Also, flash doesn't work on webpages anymore. I'm assuming this is some problem with the nspluginwrapper thing...
    Here's pacman.log of the fateful upgrade:
    [2009-02-10 10:32] synchronizing package lists
    [2009-02-10 10:32] starting full system upgrade
    [2009-02-10 11:37] synchronizing package lists
    [2009-02-10 11:38] starting full system upgrade
    [2009-02-10 13:10] removed gnome-network-manager (0.6.5-1)
    [2009-02-10 13:10] upgraded tzdata (2008i-1 -> 2009a-1)
    [2009-02-10 13:10] Generating locales...
    [2009-02-10 13:10] en_US.UTF-8... done
    [2009-02-10 13:10] en_US.ISO-8859-1... done
    [2009-02-10 13:10] Generation complete.
    [2009-02-10 13:10] upgraded glibc (2.9-2 -> 2.9-4)
    [2009-02-10 13:10] upgraded readline (5.2.013-1 -> 5.2.013-2)
    [2009-02-10 13:10] upgraded bash (3.2.048-1 -> 3.2.048-3)
    [2009-02-10 13:10] upgraded dhcpcd (4.0.7-1 -> 4.0.10-1)
    [2009-02-10 13:10] upgraded pm-utils (1.2.3-3 -> 1.2.3-4)
    [2009-02-10 13:10] upgraded hal (0.5.11-4 -> 0.5.11-7)
    [2009-02-10 13:10] upgraded libnetworkmanager (0.6.6-1 -> 0.7.0-1)
    [2009-02-10 13:10] upgraded networkmanager (0.6.6-1 -> 0.7.0-1)
    [2009-02-10 13:10] installed network-manager-applet (0.7.0-1)
    [2009-02-10 13:10] upgraded aircrack-ng (1.0_rc1-1 -> 1.0_rc2-1)
    [2009-02-10 13:10] upgraded gcc-libs (4.3.2-2 -> 4.3.3-1)
    [2009-02-10 13:10] upgraded xcb-proto (1.2-2 -> 1.3-1)
    [2009-02-10 13:10] upgraded libxcb (1.1.90.1-1 -> 1.1.93-1)
    [2009-02-10 13:10] upgraded libx11 (1.1.5-2 -> 1.1.99.2-1)
    [2009-02-10 13:10] upgraded amsn (0.97.2-4 -> 0.97.2-8)
    [2009-02-10 13:10] ATTENTION DB PACKAGE:
    [2009-02-10 13:10] Please consider to run db_upgrade on Berkeley DB databases with a major db version number update.
    [2009-02-10 13:10] upgraded db (4.7.25-1 -> 4.7.25-2)
    [2009-02-10 13:10] upgraded apache (2.2.11-1 -> 2.2.11-2)
    [2009-02-10 13:10] upgraded libvorbis (1.2.0-1 -> 1.2.1rc1-1)
    [2009-02-10 13:10] upgraded avidemux (2.4.3-2 -> 2.4.4-1)
    [2009-02-10 13:10] upgraded texinfo (4.13a-1 -> 4.13a-3)
    [2009-02-10 13:10] upgraded binutils (2.19-1 -> 2.19.1-1)
    [2009-02-10 13:10] upgraded boost (1.36.0-2 -> 1.37.0-1)
    [2009-02-10 13:10] upgraded brasero (0.9.0-1 -> 0.9.1-1)
    [2009-02-10 13:10] upgraded curl (7.19.2-1 -> 7.19.3-1)
    [2009-02-10 13:10] upgraded pycairo (1.8.0-2 -> 1.8.2-1)
    [2009-02-10 13:10] upgraded pygtk (2.13.0-2 -> 2.14.0-1)
    [2009-02-10 13:10] upgraded deluge (1.1.0-1 -> 1.1.2-1)
    [2009-02-10 13:10] upgraded device-mapper (1.02.29-1 -> 1.02.30-1)
    [2009-02-10 13:10] upgraded ed (1.1-2 -> 1.2-1)
    [2009-02-10 13:10] upgraded eigen (1.0.5-1 -> 2.0.0-1)
    [2009-02-10 13:10] upgraded fakeroot (1.11.4-1 -> 1.12.1-1)
    [2009-02-10 13:10] upgraded file (4.26-1 -> 5.00-1)
    [2009-02-10 13:10] upgraded gcc (4.3.2-2 -> 4.3.3-1)
    [2009-02-10 13:10] upgraded libtasn1 (1.7-1 -> 1.8-1)
    [2009-02-10 13:10] upgraded gnutls (2.6.3-1 -> 2.6.4-1)
    [2009-02-10 13:10] upgraded inputproto (1.4.4-1 -> 1.5.0-1)
    [2009-02-10 13:10] upgraded xextproto (7.0.4-1 -> 7.0.5-1)
    [2009-02-10 13:10] upgraded libxext (1.0.4-1 -> 1.0.5-1)
    [2009-02-10 13:10] upgraded ghostscript (8.63-4 -> 8.64-1)
    [2009-02-10 13:10] upgraded hwdetect (2008.12-4 -> 2009.01-1)
    [2009-02-10 13:10] upgraded imagemagick (6.4.8.2-1 -> 6.4.9.2-1)
    [2009-02-10 13:10] upgraded inetutils (1.6-2 -> 1.6-3)
    [2009-02-10 13:10] warning: /etc/inittab installed as /etc/inittab.pacnew
    [2009-02-10 13:10] upgraded initscripts (2008.09-2 -> 2009.01-1)
    [2009-02-10 13:11] update desktop mime database ...
    [2009-02-10 13:11] upgraded inkscape (0.46-9 -> 0.46-10)
    [2009-02-10 13:11] upgraded mkinitcpio (0.5.21-1 -> 0.5.23-1)
    [2009-02-10 13:11] >>>
    [2009-02-10 13:11] >>> If you use the LILO bootloader, you should run 'lilo' before rebooting.
    [2009-02-10 13:11] >>>
    [2009-02-10 13:11] >>> Updating module dependencies. Please wait ...
    [2009-02-10 13:11] >>> MKINITCPIO SETUP
    [2009-02-10 13:11] >>> ----------------
    [2009-02-10 13:11] >>> If you use LVM2, Encrypted root or software RAID,
    [2009-02-10 13:11] >>> Ensure you enable support in /etc/mkinitcpio.conf .
    [2009-02-10 13:11] >>> More information about mkinitcpio setup can be found here:
    [2009-02-10 13:11] >>> http://wiki.archlinux.org/index.php/Mkinitcpio
    [2009-02-10 13:11]
    [2009-02-10 13:11] >>> Generating initial ramdisk, using mkinitcpio. Please wait...
    [2009-02-10 13:11] ==> Building image "default"
    [2009-02-10 13:11] ==> Running command: /sbin/mkinitcpio -k 2.6.28-ARCH -c /etc/mkinitcpio.conf -g /boot/kernel26.img
    [2009-02-10 13:11] :: Begin dry run
    [2009-02-10 13:11] :: Parsing hook [base]
    [2009-02-10 13:11] :: Parsing hook [udev]
    [2009-02-10 13:11] :: Parsing hook [autodetect]
    [2009-02-10 13:11] :: Parsing hook [pata]
    [2009-02-10 13:11] :: Parsing hook [scsi]
    [2009-02-10 13:11] :: Parsing hook [sata]
    [2009-02-10 13:11] :: Parsing hook [usb]
    [2009-02-10 13:11] :: Parsing hook [keymap]
    [2009-02-10 13:11] :: Parsing hook [filesystems]
    [2009-02-10 13:11] :: Generating module dependencies
    [2009-02-10 13:11] :: Generating image '/boot/kernel26.img'...SUCCESS
    [2009-02-10 13:11] ==> SUCCESS
    [2009-02-10 13:11] ==> Building image "fallback"
    [2009-02-10 13:11] ==> Running command: /sbin/mkinitcpio -k 2.6.28-ARCH -c /etc/mkinitcpio.conf -g /boot/kernel26-fallback.img -S autodetect
    [2009-02-10 13:11] :: Begin dry run
    [2009-02-10 13:11] :: Parsing hook [base]
    [2009-02-10 13:11] :: Parsing hook [udev]
    [2009-02-10 13:11] :: Parsing hook [pata]
    [2009-02-10 13:11] :: Parsing hook [scsi]
    [2009-02-10 13:11] :: Parsing hook [sata]
    [2009-02-10 13:11] :: Parsing hook [usb]
    [2009-02-10 13:12] :: Parsing hook [keymap]
    [2009-02-10 13:12] :: Parsing hook [filesystems]
    [2009-02-10 13:12] :: Generating module dependencies
    [2009-02-10 13:12] :: Generating image '/boot/kernel26-fallback.img'...SUCCESS
    [2009-02-10 13:12] ==> SUCCESS
    [2009-02-10 13:12] upgraded kernel26 (2.6.28.1-1 -> 2.6.28.4-1)
    [2009-02-10 13:12] upgraded lib32-freetype2 (2.3.7-1 -> 2.3.8-1)
    [2009-02-10 13:12] upgraded lib32-gcc-libs (4.3.2-1 -> 4.3.3-1)
    [2009-02-10 13:12] upgraded lib32-gtk2 (2.14.6-1 -> 2.14.7-1)
    [2009-02-10 13:12] upgraded lib32-readline (5.2-8 -> 5.2.013-1)
    [2009-02-10 13:12] upgraded libice (1.0.4-1 -> 1.0.5-1)
    [2009-02-10 13:12] upgraded libmikmod (3.1.12-1 -> 3.1.12-2)
    [2009-02-10 13:12] upgraded libnova (0.12.2-1 -> 0.12.3-1)
    [2009-02-10 13:12] upgraded libsndfile (1.0.17-2 -> 1.0.18-1)
    [2009-02-10 13:12] upgraded libsamplerate (0.1.4-1 -> 0.1.6-1)
    [2009-02-10 13:12] upgraded libxi (1.1.4-1 -> 1.2.0-1)
    [2009-02-10 13:12] upgraded lvm2 (2.02.43-1 -> 2.02.44-1)
    [2009-02-10 13:12] upgraded man-pages (3.16-1 -> 3.17-1)
    [2009-02-10 13:12] upgraded mlocate (0.21-1 -> 0.21.1-1)
    [2009-02-10 13:12] upgraded opal (3.4.4-2 -> 3.4.4-2.1)
    [2009-02-10 13:12] * relogin or source /etc/profile.d/openoffice.sh
    [2009-02-10 13:12] * see http://wiki.archlinux.org/index.php/Openoffice
    [2009-02-10 13:12] how to use extensions, e.g. for spell checking
    [2009-02-10 13:12] see /opt/openoffice/share/extension/install what
    [2009-02-10 13:12] is shipped with this package
    [2009-02-10 13:12] upgraded openoffice-base (3.0.0-4 -> 3.0.1-1)
    [2009-02-10 13:12] upgraded patch (2.5.9-1 -> 2.5.9-2)
    [2009-02-10 13:12] upgraded php (5.2.7-2 -> 5.2.8-1)
    [2009-02-10 13:13] upgraded pidgin (2.5.3-1 -> 2.5.4-1)
    [2009-02-10 13:13] upgraded pixman (0.12.0-1 -> 0.14.0-1)
    [2009-02-10 13:13] upgraded pycups (1.9.42-2 -> 1.9.45-1)
    [2009-02-10 13:13] upgraded qt (4.4.3-4 -> 4.4.3-5)
    [2009-02-10 13:13] upgraded reiserfsprogs (3.6.20-3 -> 3.6.21-1)
    [2009-02-10 13:13] upgraded sdparm (1.03-1 -> 1.03-2)
    [2009-02-10 13:13] upgraded smpeg (0.4.4-4 -> 0.4.4-5)
    [2009-02-10 13:13] upgraded sound-theme-freedesktop (0.1-1 -> 0.2-1)
    [2009-02-10 13:13] upgraded syslog-ng (2.0.9-1 -> 2.1.3-2)
    [2009-02-10 13:13] upgraded system-config-printer (1.1.1-1 -> 1.1.3-1)
    [2009-02-10 13:13] extracting fonts... done.
    [2009-02-10 13:13] rebuilding font cache... done.
    [2009-02-10 13:13] upgraded ttf-ms-fonts (2.0-1 -> 2.0-2)
    [2009-02-10 13:13] upgraded unrar (3.8.5-1 -> 3.8.5-2)
    [2009-02-10 13:13] upgraded vlc (0.9.8a-4 -> 0.9.8a-5)
    [2009-02-10 13:13] upgraded wireshark (1.0.5-1 -> 1.0.6-1)
    [2009-02-10 13:13] upgraded xcb-util (0.3.2-1 -> 0.3.3-1)
    [2009-02-10 13:13] upgraded xf86-input-evdev (2.1.0-1 -> 2.1.2-1)
    [2009-02-10 13:13] upgraded xf86-input-keyboard (1.3.1-1 -> 1.3.2-1)
    [2009-02-10 13:13] upgraded xf86-input-synaptics (0.99.3-1 -> 1.0.0-1)
    [2009-02-10 13:13] upgraded xine-lib (1.1.16.1-1 -> 1.1.16.1-2)
    [2009-02-10 13:13] upgraded xkeyboard-config (1.4-2 -> 1.5-1)
    [2009-02-10 13:13] upgraded xorg-xinit (1.1.0-1 -> 1.1.1-1)
    [2009-02-10 13:13] upgraded xterm (239-1 -> 241-1)
    [2009-02-10 15:15] synchronizing package lists
    [2009-02-10 15:16] starting full system upgrade
    [2009-02-10 15:17] ==> to use yaourt as user,add these entries to /etc/sudoers:
    [2009-02-10 15:17] user ALL=NOPASSWD: /usr/bin/pacman
    [2009-02-10 15:17] user ALL=NOPASSWD: /usr/bin/pacdiffviewer
    [2009-02-10 15:17] (Please, use sudo very carefully)
    [2009-02-10 15:17] ==> for a full colorized output, install pacman-color and set PacmanBin in /etc/yaourtrc
    [2009-02-10 15:17] upgraded yaourt (0.9.1-1 -> 0.9.2.4-1)
    [2009-02-10 15:18] synchronizing package lists
    [2009-02-10 15:19] starting full system upgrade
    [2009-02-10 15:24] upgraded bin32-wine (1.1.10-1 -> 1.1.14-1)
    [2009-02-10 15:24] Reading package info from stdin ... done.
    [2009-02-10 15:24] Writing new package config file... done.
    [2009-02-10 15:24] upgraded haskell-sdl (0.5.4-1 -> 0.5.5-1)
    [2009-02-10 15:24] Reading package info from stdin ... done.
    [2009-02-10 15:24] Writing new package config file... done.
    [2009-02-10 15:24] upgraded haskell-sdl-ttf (0.5.2-1 -> 0.5.5-1)
    [2009-02-10 15:25] "nspluginwrapper -r $HOME/.mozilla/plugins/* ; nspluginwrapper -v -a -i" to recreate plugins after update
    [2009-02-10 15:25] Konqueror users need to add $HOME/.mozilla/plugins/ to konqueror plugins path
    [2009-02-10 15:25] upgraded nspluginwrapper (1.0.0-1 -> 1.2.2-1)
    [2009-02-10 15:25] installed lib32-curl (7.19.3-1)
    [2009-02-10 15:25] installed lib32-nspr (4.7.3-1)
    [2009-02-10 15:25] installed lib32-sqlite3 (3.6.10-1)
    [2009-02-10 15:25] installed lib32-nss (3.12.2-1)
    [2009-02-10 15:26] Run
    [2009-02-10 15:26] nspluginwrapper -v -r ~/.mozilla/plugins/npwrapper.libflashplayer.so
    [2009-02-10 15:26] nspluginwrapper -v -a -i
    [2009-02-10 15:26] to upgrade the plugin
    [2009-02-10 15:26] upgraded nspluginwrapper-flash (9.0.124.0-1 -> 10.0.15.3-3)

  • Problem with Enter key and JOptionPane in 1.4

    Hi,
    I had a problem with an application I was working on.
    In this application, pressing [Enter] anywhere within the focused window would submit the information entered into the form that was contained within the frame.
    The application would then try to validate the data. If it was found to be invalid, it would pop up a JOptionPane informing the user of that fact.
    By default, pressing [Enter] when a JOptionPane is up will activate the focused button (in most cases, the [OK] button) thus dismissing the dialog.
    In JDK 1.3 this worked fine. But in JDK 1.4, this has the result of dismissing the dialog and opping it up again. This is because the [Enter] key still works on the frame behind the JOptionPane and thus tries to validate it again, which results in another invalid dialog msg popping up.
    The only way to get out is to use the mouse or the Esc key.
    Now, in the application I put in a workaround that I was not very happy with. So, to make sure it wasn't the application itself, I created a test which demonstrates that it still misbehaves.
    Here it is.
    import java.awt.Container;
    import java.awt.FlowLayout;
    import java.awt.event.ActionEvent;
    import java.awt.event.KeyEvent;
    import javax.swing.AbstractAction;
    import javax.swing.JButton;
    import javax.swing.JComponent;
    import javax.swing.JFrame;
    import javax.swing.JOptionPane;
    import javax.swing.JTextField;
    import javax.swing.KeyStroke;
    import javax.swing.UIManager;
    import javax.swing.UnsupportedLookAndFeelException;
    import javax.swing.WindowConstants;
    * @author avromf
    public class FocusProblemTest extends AbstractAction
         private static JFrame frame;
         public FocusProblemTest()
              super();
              putValue(NAME, "Test");
         public void actionPerformed(ActionEvent e)
              JOptionPane.showMessageDialog(frame, "This is a test.");
         public static void main(String[] args)
              FocusProblemTest action= new FocusProblemTest();
              try
                   UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
              catch (Exception e)
                   e.printStackTrace();
              frame= new JFrame("Test");
              frame.setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);
              Container contents= frame.getContentPane();
              contents.setLayout(new FlowLayout());
              JTextField field= new JTextField("Test");
              field.setColumns(30);
              JButton  button= new JButton(action);
              KeyStroke enterKey = KeyStroke.getKeyStroke(KeyEvent.VK_ENTER, 0, true);
              button.getInputMap(JComponent.WHEN_IN_FOCUSED_WINDOW).put(enterKey, "test");
              button.getActionMap().put("test", action);
              contents.add(field);
              contents.add(button);
              frame.pack();
              frame.setVisible(true);
    }Does anyone have any solution to this problem?

    I know that focus management has changed alot.
    Based on my experimentation a while back, in 1.4 it still believes that the JFrame is the window in focus, even though a JOptionPane is currently in front of it (unless I misinterpreted what was going on). Thus, the frame seems to get the keyboard event and re-invoke the action.
    A.F.

  • New iMac 24 inch, 2.93 GH problems with spotlight and finder

    Has anyone had problems with Spotlight flickering in the upper right corner of the screen with each keystroke and the Finder crashing and relaunching when trying to open certain folders copied from an older computer running 10.4.11 or trying to open home folders on G5 and G4 computers over a local network? I have now received two replacements for my original machine from Amazon.com and all three machines have the same problem. This has been going on for nearly three weeks. I have never had problems like this with Apple products before - and have used them since 1985. Is there a design defect in the new 2.93 GH 24 inch iMac? I have been in touch with Apple Support but no one has resolved the problem and none of the product specialists are using this particular model of new computer. Very frustrating!

    HI Edwin,
    Check the iMac hard disk for errors. Insert Installer disk and Restart, holding down the "C" key until grey Apple appears.
    Go to Installer menu (Panther and earlier) or Utilities menu (Tiger and later) and launch Disk Utility.
    Select your HDD (manufacturer ID) in the left panel.
    Select First Aid in the Main panel.
    (Check S.M.A.R.T Status of HDD at the bottom of right panel. It should say: Verified)
    Click Repair Disk on the bottom right.
    If DU reports disk does not need repairs quit DU and restart.
    If DU reports errors Repair again and again until DU reports disk is repaired.
    Carolyn

  • Keyboard mapping problem with sunstudio

    I'm a new sunstudio user and am having trouble with a setup issue. When I run sunstudio 11 from a sunray with a Sun keyboard all works fine (except the sunray has far too small of screen and it drive me crazy). When I run with my linux desktop being the x-server then none of the special keys (home, end, arrows, backbspace, enter, etc.) work correctly in sunstudio. All other gui apps I've tried (gedit, gvim, staroffice, web browser, etc.) work fine from my linux/pc keyboard.
    Using google I discovered xev. It shows the keycode and keysym that is interpreted for each keyboard stroke. When I compare the output from my linux/pc keyboard vs. the sun keyboard connected to the sunray I see the expected differences in keycode, but the keysym and resulting interpretation (e.g. BACKSPACE) is the same. Yet sunstudio ignores any keystroke except normal alphabet characters that come from my linux/pc keyboard.
    When using my linux/pc keyboard I'm in one of two configs (both act the same):
    - ssh -X hostname
    OR
    - Xephyr :1 -screen 1250x975 -query hostname &
    Thanks for any help.
    cb

    There is a known problem related to control keys in the netbeans GUI.
    http://www.genunix.org/wiki/index.php/Sun_Studio_FAQs#IDE_-TheSun_Studio_IDE_is_ignoring_my_control_keys
    It's hard to tell from your message where the programs are
    executing from.
    Run two X programs next to each other, running on the same machine,
    and displaying to the same X server. Verify that one of them can see
    ALT keys (for example) and the other one can't. Then you know it's
    a problem with the application program, and not due to your keyboard.
    The Sun Studio IDE has no idea what physical keyboard you're using.
    It only sees the keysyms from the X server.

  • Mac Crashes - Log indicates problem with Dock

    My MAC hangs once in a few hours (fairly random) and the Crash Log seems to indicate it is a problem with the Dock Application. There is no correlation between other applications that I am using and the crash. Many times it happens soon after boot up.
    Also, I am not using any widgets and am not synching with an iPhone or iPod.
    The Crash Log is provided below and I would appreciate any support on how to resolve this.
    Process: Dock [500]
    Path: /System/Library/CoreServices/Dock.app/Contents/MacOS/Dock
    Identifier: com.apple.dock
    Version: 1.6.6 (614.7)
    Build Info: Dock-6140700~7
    Code Type: X86 (Native)
    Parent Process: launchd [71]
    Date/Time: 2009-02-11 18:09:21.059 +0530
    OS Version: Mac OS X 10.5.6 (9G55)
    Report Version: 6
    Exception Type: EXCBADACCESS (SIGBUS)
    Exception Codes: KERNPROTECTIONFAILURE at 0x00000000001ffff0
    Crashed Thread: Unknown
    Error Formulating Crash Report:
    * -[NSCFDictionary setObject:forKey:]: attempt to insert nil value (key: VMUSignaturePath)
    0x9328510b
    0x914b5e3b
    0x93284eeb
    0x93284f2a
    0x92d6ebf8
    0x0007bfe5
    0x0008bdd7
    0x0008bf2d
    0x00088fee
    0x00002e74
    0x000094a2
    0x0000b5d4
    0x0000b121
    0x96f2a03b
    0x0000a828
    0x96efe095
    0x96efdf52
    Backtrace not available
    Unknown thread crashed with X86 Thread State (32-bit):
    eax: 0xffff07d3 ebx: 0x00000000 ecx: 0x00000030 edx: 0xfff82f40
    edi: 0x0027d0d0 esi: 0x002456e0 ebp: 0xbfffee18 esp: 0xbfffee10
    ss: 0x0000001f efl: 0x00010282 eip: 0xffff0ef2 cs: 0x00000017
    ds: 0x0000001f es: 0x0000001f fs: 0x00000000 gs: 0x00000037
    cr2: 0x001ffff0
    Binary images description not available

    I have been having similar dock crashes --- I think they are caused by OpenOffice --- OO 3 and 3.01 both seem to have the problem.
    I have a MacBook Pro 17 dual core Intel.
    I started seeing the dock crashes on a 10.5.6 which had been upgraded all the way from Tiger to Leopard and onward to 10.5.6 including secupd2009-001.
    The crashes were always similar to the original poster's. (see below).
    After working on this for weeks I wasn't even able to tell for sure if this was hardware or OS software but I strongly suspected the latter.
    Finally, I paid $100 for a Leopard DVD, and (in a separate partition) did an erase and install.
    The problem went away for a while but now it's back.
    The dock crashes restarted on the same day that I installed OpenOffice.
    I just now dragged the OO icon out of the dock and instantly experienced a true system crash --- system locked up, will not respond to mouse, or any keystrokes --- had to power reset.
    I have just used appdelete to unintall Open Ofice and all its friends.
    I am going to try rebooting now and will agment this reply to tell results.
    ============== UPDATE NEWS FLASH ==========================================
    I restarted after uninstalling OpenOffice and the only relevenat syslog msgs was this one:
    2009-03-18 12:50:18 PM Dock[160] _DESCRegisterDockExtraClient failed 268435459
    I hope I have identified the culprit and will post anything more I learn.
    cb0
    Here are the most recent Dock crash details (system lockup):
    Process: Dock [216]
    Path: /System/Library/CoreServices/Dock.app/Contents/MacOS/Dock
    Identifier: com.apple.dock
    Version: 1.6.6 (614.7)
    Build Info: Dock-6140700~7
    Code Type: X86 (Native)
    Parent Process: launchd [118]
    Date/Time: 2009-03-18 12:31:12.291 +0700
    OS Version: Mac OS X 10.5.6 (9G66)
    Report Version: 6
    Exception Type: EXCBADACCESS (SIGBUS)
    Exception Codes: KERNPROTECTIONFAILURE at 0x0000000000000005
    Crashed Thread: 5
    Thread 5 Crashed:
    0 com.apple.CoreFoundation 0x013432b4 CFRetain + 36
    1 com.apple.LaunchServices 0x02cdd83d _LSCopyDefaultKindString + 719
    2 com.apple.LaunchServices 0x02ccefb0 LSCopyNodeAttributeDisplayKind(LSNodeAttributeStateCache*) + 494
    3 com.apple.LaunchServices 0x02cce9d5 _LSCopyNodeAttribute + 123
    4 com.apple.LaunchServices 0x02cce92f _LSCopyItemAttributeForRefInfoWithOptions + 283
    5 com.apple.LaunchServices 0x02cce80d _LSCopyKindStringForRefInfo + 59
    6 com.apple.dock 0x000a1f32 0x1000 + 659250
    7 com.apple.dock 0x0009cce5 0x1000 + 638181
    8 com.apple.dock 0x0009eb80 0x1000 + 646016
    9 com.apple.Foundation 0x003e37ed -[NSThread main] + 45
    10 com.apple.Foundation 0x003e3394 _NSThread__main_ + 308
    11 libSystem.B.dylib 0x00d2c095 pthreadstart + 321
    12 libSystem.B.dylib 0x00d2bf52 thread_start + 34
    Thread 5 crashed with X86 Thread State (32-bit):
    eax: 0x00000000 ebx: 0x0134329a ecx: 0x02d3a490 edx: 0x00000000
    edi: 0x00000000 esi: 0x00000000 ebp: 0xb10373a8 esp: 0xb1037390
    ss: 0x0000001f efl: 0x00010246 eip: 0x013432b4 cs: 0x00000017
    ds: 0x0000001f es: 0x0000001f fs: 0x0000001f gs: 0x00000037
    cr2: 0x00000005
    Binary Images:
    0x1000 - 0x108ff3 com.apple.dock 1.6.6 (614.7) <2a472439434b10eaa0780018b1512f66> /System/Library/CoreServices/Dock.app/Contents/MacOS/Dock
    0x12a000 - 0x1b4fef com.apple.DesktopServices 1.4.7 (1.4.7) <7898a0f2a46fc7d8887b041bc23e3811> /System/Library/PrivateFrameworks/DesktopServicesPriv.framework/Versions/A/Desk topServicesPriv
    Message was edited by: cb0

  • Problem with mutated vowel

    Hello,
    since I use Acrobat 9.0, I have a problem with the display of one mutated vowel: when I copy a text from an Acrobat-generated PDF-document and paste it into a Word document (Office 2004 and Office X) only the display of the German "ü" is not correct, when I use the "Optima" or "Arial" fonts.
    With the Arial font an "u" followed by a square symbol is displayed.
    With the Optima font the two points are shifted to the right side.
    "ä" and "ö" and all capital letters are displayed correctly.
    When I try "find/replace" in Word, the incorrect "ü" is not found.
    Does anybody know a solution for this problem?
    Your help and hints are appreciated.
    Volker

    Hey Paul and Graffiti,
    thank you for your hints. The umlaute (mutated vowels - ä,ö,ü) are direct keys on a German keyboard. So it's not the problem to find the "ü" or a keystroke to insert. The problem seems to be in the step of conversion from the Acrobat and the display in a text editor after pasting.
    Fonts like Baskerville, Big Caslon, Courier, Futura, Geneva, Helvetica, Lucida Grande, Palatino display the lower "ü" correctly.
    Arial, Times, Times New Roman and all "TTF-fonts" don't, if I paste. When typed directly, the ü is displayed correctly.
    Unfortunately, applications to regulatory health authorities require the font Times New Roman. Of course, I could correct each vowel by deleting and typing "ü" by hand, but my manuscripts are normally about 50 pages . . .
    Volker

  • ValidationTextField in IE6 IE7 problem, 1st keystroke ignored

    hi,
    i have a very interesting problem with "ValidationTextField"
    in IE6 and IE7.
    the validation on textfiels starts at 2nd keystroke, the
    first keystroke in the field is ignored,
    if iset the values by javascript like
    $('theMovieTitle1').value = $('theNewText1').innerHTML;
    $('theMovieTitle2').value = 'Hallo ';
    $('theMovieTitle3').value = 'Hallo ÖÄÜ';
    $('movieDescription').value = 'Austria Österreich
    Fräulein ';
    hmm??
    you can see/test it here:
    http://www.startup-service.com/Spry/demos/formsvalidation/testvalidate.html
    thanks
    herbert

    I don't see that behaviour on your example in IE7 or Firefox.
    If i highlight the text in the field and then begin typing the
    validation occurs immediately
    Can you explain how you are seeing it so i can try to
    recreate?

  • Problem with Keymaps

    Hi,
    I got a problem with a user-defined keymap. Here is a fragment of my code:
    for (int i = 0; i <= 1; i++) {
    keymap[i] = textField.addKeymap("Bindings" + i, textField.getKeymap());
    prepare_keymap(i);
    textField.setKeymap(keymap[actKeymap]);
    private static void prepare_keymap(int which) {
    if (which == 0) {
    set_keymap(which, KeyEvent.VK_A, 0, "urga", "\u0627");
    set_keymap(which, KeyEvent.VK_A, Event.ALT_MASK, "Alt-A", "\u0625");
    set_keymap(which, 65, Event.CTRL_MASK, "Ctrl-A", "\u0623");
    set_keymap(which, KeyEvent.VK_A, Event.CTRL_MASK + Event.ALT_MASK, "Ctrl-Alt-a", "\u064E");
    else if (which == 1) {
    set_keymap(which, KeyEvent.VK_A, Event.ALT_MASK, "Alt-A", "\u0101");
    private static void set_keymap(int which, int keyEvent, int eventMask, String name, final String code) {
    KeyStroke ks = KeyStroke.getKeyStroke(keyEvent, eventMask);
    Action act = new TextAction(name) {
         public void actionPerformed(ActionEvent e) {
              getTextComponent(e).replaceSelection(code);
         keymap[which].addActionForKeyStroke(ks, act);
    The strange thing that happens is: when I press the key "A" WITH metakeys everything works fine, BUT when I press the key "A" WITHOUT any metakeys,
    I get the specified unicode character AND (!!!) an "a".
    Any help will be highly appreciated.
    Thanks in advance
    Dieter

    Does sound like a programming oversight - I would suggest using the feedback link under the Mac OS X tab here at Apple's website. If is an OS level service setting that should be easy enough to fix - if it is an application level issue then every affected app would need to be updated.

  • Problem with Events Manager: 'slct'

    I set up an Events Manager item to run a script whenever the event "Selection" ( 'slct' ) is activated. The script works beautifully and I'm having no problem with the script itself. I am, however, having problems with what happens after the script finishes. I have this problem even if I completely comment out the script or delete everything inside the script file and leave it blank. The purpose of the script is to automate things when I select specific layers. That works and the script has some checks to prevent anything from happening unless one of those specified layers is selected.
    The problem is, when I select a tool using the keyboard shortcuts, it will revert back to the previous tool upon the next keypress. It basically acts as if I am using toggle mode for that tool by holding down the key for that tool.
    I wiped out my preferences but that did not solve the problem. It makes no difference how my keyboard shortcuts are mapped...either default or user defined. So for an example, here is how some of my keys are mapped:
    B-Paintbrush tool
    S-Brush Size Increase
    So if I'm using the Clone Stamp tool and want to switch to the Paintbrush tool, I will press the "B" key. The tool switches as it's supposed to. If I need to change the size or hardness of the brush, I press one of the corresponding keys...let's say "S" to increase size. When I press "S" nothing will happen until I release that key. Once I do release it, the tool switches back to the Clone Stamp tool. You can get this same effect yourself if you hold down the key of the tool you are switching to (use the toggle mode) and then try to change size/hardness using the keyboard shortcut for that function while still holding that tool's key down.
    If I select the tool from the Tools Palette, I do not have this problem. If the tool is selected from within my script, I do not have this problem. The only time I have this problem is when using the keyboard shortcuts to select the tool.
    Keep in mind that I have tried this with the script code completely bypassed/erased so no script code actually exedutes. When I turn of the Events Manager or remove the 'slct' item from Events Manager, I do not have this problem at all. If I hold the <SHIFT> key down while selecting the tool, I do not have this problem (this is the same as if you were to hold down the <SHIFT>+<tool key> and press the key to change size/hardness).
    To me, it seems as though if there is a 'slct' event item in Events Manager and the keyboard is used to select a tool, Photoshop treats it as if that key is being held down (toggled) until another key is pressed (or even the same key).
    If anyone knows how to get around this problem, I would greatly appreciate it. Thank you.

    I'm having the same problem where a keystroke (like changing size "[ or "]") will revert to a previous tool rather than change size. Particularly annoying when you left your previously selected eraser slightly larger or smaller than your brush size and don't realize it till you've erased.
    So far, from reading across quite a number of forums, it seems the event listener istelf causing the issue
    At the moment I've just been thinking of "BB" as my shortcut instead of "B" so when it reverts it reverts back to the brush anyway.
    I'll come back if I find a real solution to this annoyance ;P
    CS5
    Wacom Intuos4
    Windows7

  • Problem with GridControl

    I am using a GridControl in an InfoFrame. If I want to enter
    some data into the grid, it is not possible to enter special
    characters such as "$" or "#".
    I have a similar problem with a TextFieldControl, where I cannot
    enter a backslash.
    How can I solve this problem ?
    null

    For the GridControl item, you will probably have to apply a custom cell editor to the cell you want to prevent these characters.
    Within the cell editor, add a key listener and filter out the keystrokes that are not allowed.
    Similarly, for the TextFieldControl, extend the class and add a key listener to it.
    Hope this helps

Maybe you are looking for