How to tell buttons to select with ENTER (not only buth SPACE)?

The standard behaviour of the Java Swing components are different than the standard Windows behaviour. In Windows, a button is selected if you press ENTER/Return. In Java Swing, this doesn't work - you have to press SPACE. Is there a general setting in Swing to change this behaviour for all buttons (also in dialogs)?

Well, i found the basic reason: i use Swing default Look&Feel (Metal). If i use Windows Look&Feel, this button selektion behaviour changes => ENTER in Windows Look&Feel is SPACE in Metal Look&Feel (for button selections).

Similar Messages

  • How to create a transport request with query and only with its structure.

    HI guru,
                how to create a transport request with query and only with its structure.transport request should not  include any other query items like ( variables, conditions...etc)
    thanks in advance.
    venkata

    Hi,
    Goto RSA1 and then Transport Connection -> In SAP Transports select Object Types-> Query Elements -> Then select Query->Give Technical name of the query and then select for transfer. In the right side you can choose the components which you wanted to transport.
    Regards,
    anil

  • How to tell whether iPhone is unjailbroken or not?

    how to tell weather iPhone is unjailbroken or not?
    So, about this time last week i decided to jailbreak my iphone 4 ios 5.01. being 15 most of my friends with iphones have it jailbroken. so after hours of youtube i found a way to do it and It was a success! i was really excited that i finally had a jailbroken iphone. However, i started to realize that it was not a big difference from before i jailbroken it. It started to run slow and glitch up. I also have read that jailbreaking you iphone voids your warranty with apple and i do not feel that its worth it. So i uninstalled every application that i have downloaded from cydia and uninstalled cydia its self. After i uninstalled cydia, i backed up my iphone and transfered all of my apps to my cpu. Then i restored my iphone and set it up from the previous backup i just made. Everything went perfectly! however i want to know if my iphone has actually been un-jailbroken being that i restored my iphone from a back up wear my phone was in a jailbroken state. and since i uninstalled cydia from my phone before i backed it up and restored it, there isnt any clear way to tell whether its still jailbroken or not. please if you understand anything i just said please help me lol. i do not want my warranty to continue being voided ! thanks!  

    If you restored from a backup remnants of the jailbreak will still be on the phone. You must go to settings/general/reset - Erase all content and settings, delete all iPhone firmware images from your computer, then do a Restore and set it up as a new phone. You cannot restore your backup. You must reinstall your apps, set up email accounts and other settings from scratch. You will lose all app content, such as game scores.
    Even this will not remove all traces of the jailbreak; Apple will still be able to tell it was jailbroken. But for your purposes the jailbreak will be gone.
    There is one exception; if you also unlocked the phone as part of the jailbreak the modem firmware will not match the iOS version, and future updates may cause problems.

  • We have version 10.5.8 photoshop CS3 for Mac. How do we fix a problem with photoshop not resizing dpi? For example we resized a 72 dpi image to 200 dpi, when we do a pdf analysis it read as 344 dpi.

    We have version 10.5.8 photoshop CS3 for Mac. How do we fix a problem with photoshop not resizing dpi? For example we resized a 72 dpi image to 200 dpi, when we do a pdf analysis it read as 344 dpi.

    Sounds like it's a problem with the Acrobat settings. Did you set them to the same resolution?

  • How to setup my iPad to sync automatically not only the movies and songs I have bought but also the tv shows?

    How to setup my iPad to sync automatically not only the movies and songs I have bought but also the tv shows?

    Chris Bui wrote:
    Thank you Diavonex......... This is not a joke and please do respect when people really need help.
    Diavonex was not treating this as a joke. He was giving you the answer to your question in a perfectly polite and respectful way. Without the Apple ID credentials to which the iPad is locked or proof that you are the original purchaser, there's nothing you can do. The device is useless to you.

  • How to tell SAFARI to select especific mail service

    Does any one know, how to tell SAFARI to use for example, YAHOO web mail serivice instead of MAC MAIL, when selecting the option MAIL LINK TO THIS PAGE.
    Tks in advanced from México

    Ralphjh,
    An Automator workflow can save the page in a web archive format:
    First download the Save Safari Web Archive workflow.
    I would add two additional actions at the beginning of the workflow, each from Automator's Safari library, so that your final workflow would look like this:
    1) *Get Specified URLs* -- Deselect or use the minus sign to remove the default www.apple.com address. Open your puzzle page in Safari, make it frontmost, and click on the Current Safari Page button.
    2) *Display Webpages*
    3) *Run AppleScript* -- No need to modify the existing script.
    4) *Get Selected Finder Items*
    5) *Move Finder Items* -- The desktop is default.
    Save the Workflow as File Format: application, and add it to your Login Items.
    It all may be for naught however. I suspect that upon your return from vacation, you'll be disappointed to find that opening any one of the saved files will only result in opening the current day's puzzle. For example, on Tuesday April 29th, the puzzle linked from the URL you posted opened the puzzle for +that day,+ Puzzle Number 760. A quick look at the 30 Day Killer archive (scroll down the page) reveals that each day's puzzle has its own URL. The actual URL for Puzzle Number 760 is:
    http://www.sudoku.org.uk/DailyKiller.asp?day=29/04/2008
    You'll notice that the URLs for the individual days' puzzles in the Killer Archive differ only in the dates appended to them. You would likely need to find a way to incorporate that pattern into an AppleScript -- correlating the current date to the updated URL.
    Regards, Andrew99

  • In interactive how to use AT LINE-SELECTION WITH SET PF-STATUS

    Hi all,
             I am developing an interactive report in which i am using gui status (pf-status ) for AT USER-COMMAND and AT LINE-SELECTION  event .But when i used at line-selection event is  not working with pf-status even though i use PICK function code .
    plz help me to work with both the event i.e.
    AT USER-COMMAND.
    AT LINE-SELECTION.
    Thanks a lot in Advance .
    Regards,
    Tarak

    hi,
      In PBO of Module Pool, Please Write in this way
    MODULE status_9001 OUTPUT.
    Set the PF-STATUS
      SET PF-STATUS '9001'.
    To Set the Title of Screen
      SET TITLEBAR 'TITLE'.
    ENDMODULE
    Setting PF status to the (SAP) system default
    set pf-status 'BASIC'.
    How to check for pf-status
    AT USER-COMMAND.
    CASE SY-UCOMM.
    WHEN 'ART'.
    PERFORM STYR_ARTSKONTI.
    WHEN 'PST'.
    PERFORM STYR_POSTER.
    WHEN 'BIL'.
    PERFORM VIS_BILAG.
    ENDCASE..

  • ChoiceGroup and TextField on same Form -- how to tell which is selected?

    Hi everyone. I have a form with a ChoiceGroup and a TextField. I have 6 pre-defined entries in the ChoiceGroup, and I'd like for the user to be able to either select an entry or enter their own in the TextField. If I have a single command 'Go', is it possible to determine which of the two was selected by the user last?

    Okay, I've solved this.
    For anyone else who may run in to this, look at using ItemStateListener and use it to catch changes to the ChangeGroup or the TextField.

  • How to change button names linked with the 'connect command?'

    Hi,
    I have linked a button in the sequence view to the Exeution entry point 2 (Single Pass) using the 'Connect command'. The button now displays 'Single Pass' as its caption name while running. I want to give a custom name to this button, but it should still be connected to the single pass function. How can rename it?
    Regards
    Gopal

    Hi,
    see this link: http://forums.ni.com/ni/board/message?board.id=330&message.id=7318&query.id=380755#M7318
    You will find the Text for the buttons in one of the ini files. Use the CustomStrings.ini to define your new text, which will override the text defined in the other ini file located in the NI folder when the Operator Interface or SeqEditor first launched and loads the various resources.
    Hope this helps
    Regards
    Ray Farmer
    Regards
    Ray Farmer

  • How to create button in selection screen

    hi
    experts can u help me plzzzzzzzzzzz
    for this

    Hi,
    You can create Push Buttons in the Slection Screen by assigning a User commnand to it.
    Below is the stynax
    SELECTION-SCREEN BEGIN OF SCREEN 1000.
      SELECTION-SCREEN PUSHBUTTON 15(25) PUBU
                       USER-COMMAND CODE1.
      SELECT-OPTIONS SEL2 FOR SPFLI_WA-CONNID.
      PARAMETERS     PAR2 TYPE I.
    SELECTION-SCREEN END OF SCREEN 1000.
    then you need to write the code for the User command ( here CODE1) at the Selection screen event.
    You can also check the Program demo_sel_screen_pushbutton in any Sap Server. this is a demo program.
    Let me know incase you need any further info,
    Thanks and Regards
    Message was edited by:
            Pallavi S

  • How to populate the parameter selection with a formula

    Post Author: jhartney
    CA Forum: Formula
    Confused or maybe just way to much coffee but I need some help here.
    I want to create a dynamic multiple select parameter field pulled from the database.  The fields in the DB are FIRSTNAME and LASTNAME and I want to concat those to look like "LASTNAME, FIRSTNAME" and populate the parameter list.  The selection from that list will later be passed to the record selection to match in a different database table/field FULLNAME.
    JON

    Post Author: jhartney
    CA Forum: Formula
    Answered my own Q,
    I created a SQL command and used that to populate the parameter field.

  • How to access internal hard drive with screen not working

    Veteran Mac user from Spain,
    I am a graphic designer and i have a MacBook Pro 17 inch Intel Core 2 Duo 2.4 GHz (Santa Rosa) which i purchased in October of 2007 along with a 23 inch Apple Cinema HD Display Monitor which i have hooked up to my MacBook when i am working at home. About 2 months ago the right hand ventilator started making a very loud noise but because i had a lot work on i did not have time to send it away to be fixed. Then about a month ago the fan stopped working and i was very concerned that my MacBook was going to overheat but to my surprise the temperature never rose above 60 degrees, so i continued to work and every thing seemed to be okay. But a couple of weeks ago i was online and the computer suddenly froze up and when i restarted it all i got was a black screen on both the MacBook and the Cinema Display Monitor. The hard disk seems to boot correctly and the keyboard on the MacBook also is responsive (volume, brightness controls, caps/number lock, etc… are all responsive and the retroilumination on the keyboard also works). So on reading up on the forums i discovered that the graphics card NVIDIA 8600M GT is in fact faulty. I called apple and explained the problem and they told me that i will also have to replace the logic board.
    On discovering the problem i realised that it would take a while to be fixed and i would need another Mac to continue working. So last week last week i purchased a Mac Mini and hooked it up to my Cinema Display and everything is working fine, BUT i desperately need to access my work folder on my MacBook's internal drive.
    Can anybody tell me how to transfer the files from my MacBook (late 2007) to my Mac Mini without the screen working on my MacBook?
    If it helps, my MacBook is running Leopard 10.5.8 and the Mac Mini is running Lion 10.7.2. The Mac Mini has an Intel i5 processor 2.3 GHz.
    I would really appreciate the help, it is very urgent and i need to find a very quick solution, clients depend on it.

    Thank you very much for your swift response.
    I am going to try the second option that you propose because as i mentioned in my first post, i had my MacBook Pro hooked up to my Apple Cinema HD Display monitor and both screens were black.
    Just one question…
    Will the hard drive need an extrenal power source?
    I am guessing that it will use the Mac Mini's power supply but i just want to make sure.
    Thanks again! You have been most helpful.

  • Select with Where not in (subSelect)

    Hi,
    Is there any special about that 'not' in this ORacle sql (10g) that it doesn't return me any rows, unlike SQLServer with same code:
    select count(*) from t1_ups where  id_ups not in (select b.id_ups from t1_dups b)
    COUNT(*)              
    0
    vs.
    select count(*) from t1_ups where  id_ups not in ('abc', 'def','xyz')  --select b.id_ups from t1_dups b)
    COUNT(*)              
    16
    DDL:
        "id_ups"            VARCHAR2(20 BYTE),   is the same for both tables.I see that if remove <not> it works fine. is there any OR --> AND converssion happaned with negation?
    My global task is to make UNION "with replacement" when if any records exist in id_dups they will replace ones from id_ups, so I try to do it in separate parts.
    Thanks
    Tr
    Edited by: trento on Nov 16, 2010 3:00 PM

    trento wrote:
    Hi,
    Is there any special about that 'not' in Yes, you need to be aware how the syntax reacts to NULL values.
    create table in_or_not
      col1  number
    TUBBY_TUBBZ?insert into in_or_not values (2);
    1 row created.
    Elapsed: 00:00:00.05
    TUBBY_TUBBZ?select 1 from dual where 1 not in (select col1 from in_or_not);
                     1
                     1
    1 row selected.
    Elapsed: 00:00:00.00
    TUBBY_TUBBZ?insert into in_or_not values (NULL);
    1 row created.
    Elapsed: 00:00:00.00
    TUBBY_TUBBZ?select 1 from dual where 1 not in (select col1 from in_or_not);
    no rows selected
    Elapsed: 00:00:00.01http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:442029737684

  • When working with quick selection tool (and not only) the whole psd file gets damaged.

    Hello there,
    Since I first tried Photoshop CS6 on PC I encounter the following problem: when I use quick selection tool at some point the selection gets completely random and I see parts of my artwork disapear. Even after closing the file without saving the changes I see the artwork completely corrupted, without any possibility to recover. As if parts of the image were deleted.
    The problem persisted after I changed to Creative Cloud on Mac (I'm running OS X 10.8.5.)
    I have just seen that it also happens when I work with regular layer masks.
    I desperately need to fix this problem because I cannot keep using hours of retouching work again and again.
    Hope someone can help.
    Cheers
    Julia

    I am also having the same exact issue. This is the third time this has happened in about six months. I use the quick selection tool and I see a alpha mask that looks truncated and it show random parts of the image in the mask which has nothing to do with the selection. But the worst part of this is that my retouching layer the only other layer comes back completely empty even if I try to save the file in various other file types like tiff and it comes back empty. I'm losing a lot of retouching time here. I also hope some else has an answer.
    Thanks
    Mike

  • How to change draw dashed line with arrowhead (not straight)?

    Hi friends,
    The following code sinept draws an arrowed line from a given point to the other point. I want to know how it can changed to be dashed line as well? I would appreciate it if anybody help me for doing such changes.
    Thanks in advance,
    Reza_mp
    import javax.swing.*;
    import java.awt.*;
    import java.util.ArrayList;
    public class ArrowExample extends JFrame
        enum ArrowHead {
            HEIGHT(10), WIDTH(10);
            int n;
            ArrowHead(int n) {this.n = n;}
            public int value() {return n;}
        java.util.List<Arrow> arrows;
        BasicStroke stroke;
        private class Arrow {
            Point start;
            Point end;
            Polygon arrowHead;
            public Arrow(Point start, Point end) {
                this.start = start;
                this.end = end;
                double direction = Math.atan2(end.y - start.y, end.x - start.x);
                System.out.println(direction * 180/Math.PI);
                arrowHead = new Polygon();
                arrowHead.addPoint(0, 0);
                Point p1 = rotate(ArrowHead.WIDTH.value()/2, ArrowHead.HEIGHT.value(), direction);
                arrowHead.addPoint(p1.x, p1.y);
                Point p2 = rotate(-ArrowHead.WIDTH.value()/2, ArrowHead.HEIGHT.value(), direction);
                arrowHead.addPoint(p2.x, p2.y);
                arrowHead.addPoint(0, 0);
                arrowHead.translate(end.x, end.y);
            public Point rotate(int x, int y, double dir) {
                Point p = new Point();
                double r = Math.sqrt(x*x + y*y);
                double theta = Math.atan2(y, x);
                p.setLocation(Math.round(r*Math.cos(theta + dir + Math.PI/2)),
                              Math.round(r*Math.sin(theta + dir + Math.PI/2)));
                return p;
            public void draw(Graphics2D g) {
                g.drawLine(start.x, start.y, end.x, end.y);
                g.drawPolygon(arrowHead);
                g.fillPolygon(arrowHead);
        public ArrowExample() {
            super("Arrows");
            setDefaultCloseOperation(EXIT_ON_CLOSE);
            JPanel p = new JPanel() {
                protected void paintComponent(Graphics g) {
                    super.paintComponent(g);
                    Graphics2D g2d = (Graphics2D)g;
                    Stroke oldStroke = g2d.getStroke();
                    Color oldColor = g2d.getColor();
                    g2d.setStroke(stroke);
                    g2d.setColor(Color.black);
                    for (Arrow a : arrows)
                        a.draw(g2d);
                    g2d.setStroke(oldStroke);
                    g2d.setColor(oldColor);
            p.setBackground(Color.white);
            add(p, BorderLayout.CENTER);
            stroke = new BasicStroke(3);
            arrows = new ArrayList<Arrow>();
            arrows.add(new Arrow(new Point(10,10), new Point(100,100)));
            arrows.add(new Arrow(new Point(300,10), new Point(300,100)));
            arrows.add(new Arrow(new Point(450,450), new Point(400,100)));
            pack();
            setSize(500, 500);
        public static void main(String[] args) {
            setDefaultLookAndFeelDecorated(true);
            SwingUtilities.invokeLater(new Runnable() {
                public void run() {
                    new ArrowExample().setVisible(true);
    }

    Change the draw method as follows:
            public void draw(Graphics2D g) {
                Stroke s = g.getStroke();
                g.setStroke( new BasicStroke( 3.0f, BasicStroke.CAP_BUTT,
                   BasicStroke.JOIN_MITER, 1.0f, new float[] { 10.0f, 10.0f }, 0.0f ) );
                g.drawLine(start.x, start.y, end.x, end.y);
                g.setStroke( s );
                g.drawPolygon(arrowHead);
                g.fillPolygon(arrowHead);
            }

Maybe you are looking for

  • BAPI and screen checks

    Hello, The scenario is like this. F-02 is used to post a document. There is a field XREF2 (12 chars) to which a search help is assigned. This field when used in F-02 does not accept other values other than the ones provided by search help. Now, when

  • Selecting a group of Images? only last image getting adjustments?

    sorry if this is a stupid question, but when I select a range of images and apply image rotation or stamp metadata, only the last image in the selection gets the adjustment that I apply to the images. It seems that when I select the images, the whole

  • Flash Builder for PHP 4.5.1

    So I own Flash Builder 4.5 and upgraded to Flash Builder for PHP 4.5. Yesterday Adobe released an update for Flash Builder 4.5.1 which includes support for delpying for iOS devices. So my question is how soon is Zend going to provide and update to Fl

  • How do I replace photoshop elements 9 download for windows

    I bought PE9 as a download. I want to replace it with another download and found a page where this could be done. But when I tried downloading, it skipped over the spot where I would input my serial number. As a result, the files I got were useless.

  • OHS restarts automatically with a load test of 1500 users

    Hi All, We have performance issue with OAM 11.1.1.5. We have integrated with peoplesoft with OAM. When we test the users with a load of 1800 concurrent users, OHS gets restart Automatically. Can anyone let me know are there any performance tuning par