Focus on button

Hi,
I have a list item (username drop down), date item (defaulted to current date) and a "Run Report" button which calls an Oracle Report (Daily Sales report by User) using an URL. Everything works well so far.
Most of time, users will run this report for the current date. Due to this, I just want to invoke this report from the date item by pressing the 'enter' key instead of pressing the "Run Report" button. How can I do this?
Please help me.
Thanks
Leo.

Hello Everyone,
Please help me to do this.
Thanks
Leo

Similar Messages

  • In  Zoom Burst Effect Guided Edit, when i use the  Add Focus Area button instead of focusing on what i choose it bring the entire photo into focus.

    In Zoom Burst Effect in Guided Edit, when I use the Add Focus Area button instead of focusing on what I chose it brings the entire photo into focus.

    I'd try resetting the pse 12 preferences by going to Adobe Photoshop Elements Editor (Edit)>Preferences>General
    and click on Reset Preferences on next launch, then restart pse 12.

  • How to focus No button in JOptionPane.showConfirmDialog?

    How to focus No button in JOptionPane.showConfirmDialog when the Dialog window is opened?
    (default it focus Yes button).
    Please help me. Thank you very much.

    Use the showOptionDialog(...) method then you can specify the buttons and which button has focus.

  • How to focus a button

    Hi all,
    Sorry about this stupid question, but really get confused now.
    I?ve got an Applet and i want to focus a button when it starts! How can i do this?
    thx

    Don't know if anyone is looking at this, but I went through a coupla days work, so I thot I would post. I was only able to get it working in IE. This solves the problem of initially not having focus on the applet, setting initial focus to a component and resetting the focus when switching back & forth betweens apps. First the HTML<SCRIPT LANGUAGE="JavaScript">
    <!--
    function setFocus() {
      hide.hideField.focus();
      document.TestApplet.setFocus();
    // -->
    </SCRIPT>
    <form id=hide>
    <INPUT style="border: 0px;" ReadOnly id=hideField maxLength=0 name="hideField" type=text notab>
    </form>
    </HEAD>
    <BODY onFocus="setFocus()" onLoad="setFocus()">
    <OBJECT classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93"
    //removed some
    <PARAM NAME="scriptable" VALUE="true">I have no idea how this is going to post. This calls the JApplets setFocus method on loading and on focus. Make sure scriptable="true". Now the JApplet.public class Applet1 extends JApplet {
      public void start() { Focus.setFocus(jButton2); }
      public void init() {
        getContentPane().addContainerListener(Focus.cl);
      public void setFocus() { Focus.setFocus(); }
      static class Focus {
        private static Component lastFocus;
        public static ContainerListener cl = new ContainerAdapter() {
          public void componentAdded(ContainerEvent ce) {
         Component child = ce.getChild();
         addlisteners(child);
        private static void addlisteners(Component c) {
          c.addFocusListener(fl);
          if(c instanceof Container) {
         Container ct = (Container)c;
         ct.addContainerListener(cl);
         for(int i=0; i<ct.getComponentCount(); i++) {
           addlisteners((Component)ct.getComponent(i));
        public static FocusListener fl = new FocusAdapter() {
          public void focusGained(FocusEvent fe) {
         lastFocus = (Component)fe.getSource();
        public static void setFocus() { setFocus(lastFocus); }
        public static void setFocus(final Component comp) {
          if (comp != null) {
         SwingUtilities.invokeLater(new Runnable() {
           public void run() { comp.requestFocus(); }
    }I tried to make it compatible with AWT, but haven't tested it too much. Focus might also be made into it's own class, instead of an inner class so that it can be called from anywhere (after dialogs???).

  • Focus on Button MFC

    Hi,
    I created a custom button class inherited from CButton. I override the OnDraw to customize the button.
    In a dialog, i am using 4 custom buttons. I want to set the TAB order programatically and also on focus i need to change some color.
    Can anyone please tell me how to achieve this.
    Thanks & Regards
    Lokanath Nayak

    you can use 
    SetWindowPos(hNewControl, hOldControl, 0, 0, 0, 0, SWP_NOMOVE|SWP_NOSIZE);Use can use SetWindowPos specifying the hWndInsertAfter parameter to set the tab order.check this outhttp://blogs.msdn.com/b/oldnewthing/archive/2004/08/02/205624.aspxif you use mfc. u can create variable for button and just you can use mybutton.SetFocus()

  • How to set Focus on button?

    I would like to hit enter key after the user id and password. The focus should be set on the OK button. But when I hit the enter on the keyboard and it doesn't work. Hope anyone who knows this can provide some helps in way. Thanks in advance.

    Tom is right, but if your button doesn't lie directly on a "contentPane" , the getRootPane method return a null value.
    The other way to set the focus on your button is to call
    button.requestFocus() method ,
    but be careful :call it after you call setVisible(true) (or at least after you call pack()) on your frame or dialog (I suppose you have one) .
    A Swing component that's a top-level window is realized by having one of these methods invoked on it: setVisible(true), or (this might surprise you) pack(). After (just after!!) a window is realized, all components that it contains are realized (you could think they now exist).
    It is useless to call reqestFocus() before setVisible(true) or pack() .
    Hope it helps!
    Paul.

  • A focus question: button activated by mouse or by ENTE

    In the following program:
    If the program is run as is ? The button can be activated only by the mouse.
    If the part:
    // try {
    // UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
    // catch(Exception e) {
    // e.printStackTrace();
    is used, the button can be activated also by ENTER and the focus is the default.
    How to get the second option not using SystemLookAndFeel ?
    Which option is better for an application or an applet ?
    Help would be appreciated.
    import javax.swing.*;
    import java.awt.event.*;
    public class Focus extends JPanel {
    JButton b2;
    public Focus() {
    // try {
    // UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
    // catch(Exception e) {
    // e.printStackTrace();
    b2 = new JButton(("Is it ok?"));
    add(b2);
    b2.addActionListener(buttonListener);
    ActionListener buttonListener = new ActionListener() {
    public void actionPerformed(ActionEvent e) {
    if(e.getActionCommand().equals("Is it ok?")) {
    System.out.println("It's ok !!!");
    public static void main(String[] args) {
    JFrame fr = new JFrame();
         Focus fc = new Focus();
    fr.getContentPane().add(fc);
         fr.setVisible(true);
    fr.pack();

    dialog.setModal(true);beat you!
    You did provide code though :)

  • Default Focus to Button

    Hi,
    I have around 10 controls on my JDialog and Edit-F2 (Caption on JButton)
    is one of them. Other components are disabled except the Edit-F2 button.
    Now my Problem is when the Dialog pop's up on Pressing F2 the funtionality
    associated with edit button should be executed. I am unable to set the
    focus of the first time on Edit-F2 button. I tried grabFocus (),
    requestFocus (), requestDefaultFocus (). I have implemented the keylisteners
    also.
    Please help. Thanks in advance.
    -regards
    deena

    Hello,
    There is one important thing to know about Swing and the focus management :
    The focus manager sets automatically the focus on the first component of the Frame that as the focus.
    If this first component is a container, it sets the focus on the first component of this container.
    And if this component is also a container that contains other components, it sets the focus on the first of them.
    Etc...
    So, if you want a button to be the default button of a container, use the add(Component comp, int index), or the add(Component comp, Object constraints, int index) with index set to 0. You should do the same with the parent component of your button. Here is an example with a panel :
       JFrame frame = new JFrame("test") ;
       JPanel panel0 = new JPanel() ;
       panel0.add(new JButton("button 1"));
       panel0.add(new JButton("button 2"));
       JPanel panel1 = new JPanel() ;
       panel1.add(new JButton("button 3")) ;
       panel1.add(new JButton("default button"),0);
       frame.getContentPane().add(panel0) ;
       frame.getContentPane().add(panel1 , 0 );Running this code you should not need to call requestFocus nor any other method to set the focus on "default button".
    Do not forget to set some constraints on your components to layout them correctly...

  • Firefox Loses Window Focus, Mouse Button profiles change to default

    I have a G700 mouse, which supports various hotkey profiles. For default profile, i have most buttons disabled. For games, i have game-specific hotkeys, and for firefox, i have firefox specific hotkeys (new tab, close tab, etc).
    There are 2 times that I notice this behavior:
    1) During regular browsing, clicking on various links causes firefox to lose focus, and the mouse software reverts from the "firefox" profile to the "default" profile. Interacting with firefox in any way does not fix this problem. the only way for firefox to become the default profile again is to click a different window or on the desktop, and then click back into firefox. The profile seems to be lost right after clicking a (javascript) link, though the number of links clicked is arbitrary. I cannot reproduce this issue with any fixed results (number of click, time period before losing focus, etc). But I can reproduce this issue reliably.
    When the mouse buttons stop working, the keyboard hotkey shortcuts DONT stop working. I dont have to re-select the firefox window to use keyboard shortcuts, I only have to do that if i want to use the mouse shortcut.
    2) If I am in private browsing mode, clicking links (specifically for websites that contain flash) causes the window which contains flash to move into the background and the non-private window becomes the foreground. Again, the mouse loses focus and the only way to regain focus is to manually click the window or to click away on a non-firefox object, then click the window. I believe this is a flashplayer based issue, though, and is unrelated to the profiles issue. When this happens, any interaction with a flash video also forces firefox's KEYBOARD hotkeys to not work. Ctrl+w and ctrl+t dont do anything, hitting escape does not give firefox control over keyboard hotkeys, and hitting "tab" only selects elements within the flash object. For youtube, it cycles through various clickable controls.
    EDIT: I have tried resetting the firefox profile and using a completely new profile, and i have also tried syncing profiles. This is a persistent problem.

    I'm using Firefox 23. This has been a problem since I got my mouse in September ish of 2012. As I stated, I've worked with logitech on this issue, they have no idea why it happens because only firefox exhibits this behavior. No other app on my computer does this and Firefox reset and clean profile do not do anything to solve the problem. Using logitech logging, I can produce a log and output of whenever the profile switches. I might be able to use logitech scripting to output debug information about what exactly causes it but that would take dev time I don't have.

  • How to keep focus on button while entering text

    Hello,
    In a JFrame I have a JButton and a JTextField
    I want it so the user can enter text in the field and hit 'Enter' to trigger the ButtonActionPerformed event.
    I figured, once a JTextField event like keytyped happens, I could button.requestFocusInWindow();
    But then I cant type into the TextField anymore.
    How is this done?

    Use this:
    getRootPane().setDefaultButton(yourButton);
    This will make your button the default button if you are using a JDialog or JFrame. When the user finishes typing and presses enter the button will respond.
    I think this should work in a JFrame as well. I used it in a JDialog.

  • How to avoid focus issue while navigating via Browser Back button

    Hi
    I'm facing some problem in setting focus on Buttons.
    Please refer application: http://apex.oracle.com/pls/otn/f?p=47869:2
    login credentials:
    Workspace: vsanthanam
    user: vijay
    pswd: apex_demo
    In this application, i have 2 pages.
    Page#2 has Submit button
    Page#3 has Cancel button
    Both buttons are HTML based and can be accessed using access Key ALT + s and ALT + c.
    The problem is:
    When i go back to previous page (pgid#2) of the application using IE Browser's Back Button from pgid#3,
    because of onFocus event set in Submit button, control comes back to pgid#3.
    Is there any possible way to set the focus to other items. so that whenever IE brower back button pressed, application would remain in
    page#2.
    Approaches i took:
    If we use onclick, instead of onfocus then again the problem remains since we have to have onfocus = "this.click();" to incorporate Accesskey features.
    Another way is onKeyup event. if we use onKeyup, we can avoid this browser back issue, but vanishes access key features.
    Any pointers on this would be of great help.
    Many Thanks
    --Vijay
    Please NOTE: I intentionally created two buttons in each page. This is required to have HTML buttons with access key features,
    otherwise application gives some flaws in HTML-accesskey.

    Thanks a ton Andy!
    This is what exactly we require, to change the focus to other items when we move away from page.
    application works perfect now.
    Thank you once again for your handy solutions.
    --Vijay                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Fn+F5 wifi switch not working. X301: win 7 pro 64: Radio button highlit no action when pressed.

    Can't turn wifi radio on. Hardware slider switch OK, Fn+F5 shows radio button, illuminates when focus on button, does not operate when button pressed. So no wifi available. X301 Intel 5300 AGN: driver version 13.1.1.1. /1-13-10 Device working properly : do not allow PC to turn off device: media state enabled. Windows network diagnostics - 'There might be a problem with the wifi driver' Lenovo toolbox - diagnostics :- available and capable to send and receive data. (obviously not true!) PCI express status test passed, no other tests can run because no network can be seen. Other laptops adjacent to X301 can see the wifi network signal. Tried, disable and uninstall drivers and device. Latest updates from Microsoft, Lenovo and Intel. Rolling back and restore have become corrupted and trying these fails. Has anyone any other ides to try please? Thanks

    damn ! that was it ... you wouldn't believe how long i was struggling with that strange error
    chrome-remote-desktop is actually  a pretty cool tool to remotely control your pc from your mobile.
    well, but it had to go now ... thanks for your help !

  • Key focus is not visible for all objects when tabbing

    I'm using LabView 5.1.
    The key focus is not visible for all objects when tabbing through a "disabled and grayed-out" object.
    For example, let's say I create a panel with 3 buttons. If I create a "disabled" attribute for button 2 and assign the value "2" (disabled and grayed-out) to it. When I will run this VI, the key navigation will go through button 1 and button 3 (skipping button 2 as expected) but the key focus on button 3 will not be visible.
    Is this a bug with LabView or am I doing something wrong ?

    Hi Ben,
    Don't worry, time is not an issue... I'm posting an example of a VI with the problem I described. I noticed that the problem occurs only with "dialog buttons".
    When you have time, let me know if you see the same behavior. If you do, I will report the problem to National Instrument.
    Thanks for your time !
    BigBen
    Attachments:
    3buttons.vi ‏22 KB

  • How to implement custom lov button without the standard template.fmb?

    hello,
    i am developing a application using oracle forms 10g. i can't use the standard template.fmb because my application does not run in ebs. there comes the problem: i want to implement the lov button function like the template does, such as :
    1. when the text item get focus, lov button display.
    2. when the text item lost focus, lov button disappear.
    3. when scrollbar scrolls, the position of lov button adjust accordingly.
    4. there is only one lov button in one form and the lov button was created dynamicly.
    i found it's so complex to do this.
    anyone can help?

    Try to change the following setting to true
    app.ui.lovButtons=falsein $ORACLE_HOME\forms\java\oracle\forms\registry\registry.dat

  • JTable custom cell editor losing focus

    This is a followup to Re: Tutorial on AWT/Swing control flow wherein I ask for pointers to help me understand the source of focus-loss behaviour in my JTable's custom cell editor.
    I have done some more investigations and it turns out that the focus loss is a more general problem with custom cell editors which call other windows. Even the color-picker demo in the JTable tutorial at http://download.oracle.com/javase/tutorial/uiswing/examples/components/index.html#TableDialogEditDemo has this problem, IF you add a text field or two to the layout BEFORE the table. The only reason the table in the demo doesn't lose the focus when the color-picker comes out is because the table is the only thing in the window!
    Here is the demo code, augmented with two text fields, which are admittedly ugly here but which serve the desired purpose:
    * Copyright (c) 1995, 2008, Oracle and/or its affiliates. All rights reserved.
    * Redistribution and use in source and binary forms, with or without
    * modification, are permitted provided that the following conditions
    * are met:
    *   - Redistributions of source code must retain the above copyright
    *     notice, this list of conditions and the following disclaimer.
    *   - Redistributions in binary form must reproduce the above copyright
    *     notice, this list of conditions and the following disclaimer in the
    *     documentation and/or other materials provided with the distribution.
    *   - Neither the name of Oracle or the names of its
    *     contributors may be used to endorse or promote products derived
    *     from this software without specific prior written permission.
    * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
    * IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
    * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
    * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE COPYRIGHT OWNER OR
    * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
    * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
    * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
    * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
    * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
    * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
    * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
    import javax.swing.*;
    import javax.swing.border.Border;
    import javax.swing.table.AbstractTableModel;
    import javax.swing.table.TableCellEditor;
    import javax.swing.table.TableCellRenderer;
    import java.awt.*;
    import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;
    public class TableDialogEditDemo extends JPanel {
        public class ColorEditor extends AbstractCellEditor
                implements TableCellEditor,
                ActionListener {
            Color currentColor;
            JButton button;
            JColorChooser colorChooser;
            JDialog dialog;
            protected static final String EDIT = "edit";
            public ColorEditor() {
                //Set up the editor (from the table's point of view), which is a button.
                //This button brings up the color chooser dialog, which is the editor from the user's point of view.
                button = new JButton();
                button.setActionCommand(EDIT);
                button.addActionListener(this);
                button.setBorderPainted(false);
                //Set up the dialog that the button brings up.
                colorChooser = new JColorChooser();
                dialog = JColorChooser.createDialog(button, "Pick a Color", true,  //modal
                        colorChooser, this,  //OK button handler
                        null); //no CANCEL button handler
             * Handles events from the editor button and from the dialog's OK button.
            public void actionPerformed(ActionEvent e) {
                if (EDIT.equals(e.getActionCommand())) {
                    //The user has clicked the cell, so bring up the dialog.
                    button.setBackground(currentColor);
                    colorChooser.setColor(currentColor);
                    dialog.setVisible(true);
                    //Make the renderer reappear.
                    fireEditingStopped();
                } else { //User pressed dialog's "OK" button
                    currentColor = colorChooser.getColor();
            public Object getCellEditorValue() {
                return currentColor;
            public Component getTableCellEditorComponent(JTable table,
                                                         Object value,
                                                         boolean isSelected,
                                                         int row,
                                                         int column) {
                currentColor = (Color) value;
                return button;
        public class ColorRenderer extends JLabel
                implements TableCellRenderer {
            Border unselectedBorder = null;
            Border selectedBorder = null;
            boolean isBordered = true;
            public ColorRenderer(boolean isBordered) {
                this.isBordered = isBordered;
                setOpaque(true);
            public Component getTableCellRendererComponent(
                    JTable table, Object color,
                    boolean isSelected, boolean hasFocus,
                    int row, int column) {
                Color newColor = (Color) color;
                setBackground(newColor);
                if (isBordered) {
                    if (isSelected) {
                        if (selectedBorder == null) {
                            selectedBorder = BorderFactory.createMatteBorder(2, 5, 2, 5,
                                    table.getSelectionBackground());
                        setBorder(selectedBorder);
                    } else {
                        if (unselectedBorder == null) {
                            unselectedBorder = BorderFactory.createMatteBorder(2, 5, 2, 5,
                                    table.getBackground());
                        setBorder(unselectedBorder);
                return this;
        public TableDialogEditDemo() {
            super(new GridLayout());
            JTextField tf1 = new JTextField("tf1");
            add(tf1);
            JTextField tf2 = new JTextField("tf2");
            add(tf2);
            JTable table = new JTable(new MyTableModel());
            table.setPreferredScrollableViewportSize(new Dimension(500, 70));
            table.setFillsViewportHeight(true);
            JScrollPane scrollPane = new JScrollPane(table);
            table.setDefaultRenderer(Color.class,
                    new ColorRenderer(true));
            table.setDefaultEditor(Color.class,
                    new ColorEditor());
            add(scrollPane);
        class MyTableModel extends AbstractTableModel {
            private String[] columnNames = {"First Name",
                    "Favorite Color",
                    "Sport",
                    "# of Years",
                    "Vegetarian"};
            private Object[][] data = {
                    {"Mary", new Color(153, 0, 153),
                            "Snowboarding", new Integer(5), new Boolean(false)},
                    {"Alison", new Color(51, 51, 153),
                            "Rowing", new Integer(3), new Boolean(true)},
                    {"Kathy", new Color(51, 102, 51),
                            "Knitting", new Integer(2), new Boolean(false)},
                    {"Sharon", Color.red,
                            "Speed reading", new Integer(20), new Boolean(true)},
                    {"Philip", Color.pink,
                            "Pool", new Integer(10), new Boolean(false)}
            public int getColumnCount() {
                return columnNames.length;
            public int getRowCount() {
                return data.length;
            public String getColumnName(int col) {
                return columnNames[col];
            public Object getValueAt(int row, int col) {
                return data[row][col];
            public Class getColumnClass(int c) {
                return getValueAt(0, c).getClass();
            public boolean isCellEditable(int row, int col) {
                if (col < 1) {
                    return false;
                } else {
                    return true;
            public void setValueAt(Object value, int row, int col) {
                data[row][col] = value;
                fireTableCellUpdated(row, col);
        private static void createAndShowGUI() {
            JFrame frame = new JFrame("TableDialogEditDemo");
            frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            JComponent newContentPane = new TableDialogEditDemo();
            newContentPane.setOpaque(true);
            frame.setContentPane(newContentPane);
            frame.pack();
            frame.setVisible(true);
        public static void main(String[] args) {
            javax.swing.SwingUtilities.invokeLater(new Runnable() {
                public void run() {
                    createAndShowGUI();
    }When you come back from choosing a color, tf1 is given the focus, instead of the table. This is because bringing the color picker window to the front causes a focus lost event for the cell editor component; it's temporary, as it should be, so why on earth is the system losing track of who has focus in the window??
    I see the following in Window#getMostRecentFocusOwner():
      public Component getMostRecentFocusOwner()
        if (isFocused())
          return getFocusOwner();
        else
          Component mostRecent =
            KeyboardFocusManager.getMostRecentFocusOwner(this);
          if (mostRecent != null)
            return mostRecent;
          else
            return (isFocusableWindow())
                   ? getFocusTraversalPolicy().getInitialComponent(this)
                   : null;
      }My app has a custom focus traversal policy, so I'm able to see who is being called, and indeed, getInitialComponent() is being called. Clearly, the KeyboardFocusManager is actually losing track of the fact that the table was focussed at the point where control was transferred to the color picker! This strikes me as completely unreasonable, especially since, as noted, this is a temporary focus loss event, not a permanent one.
    I'd be grateful for any wisdom in solving this, since similar behaviour to this little demo -- without focus loss, naturally -- is an essential part of my application.

    Looks like it is because the 'restore-focus-to-previous-after-modal-dialog-close' is in a later event than when the control returns to the action performed (which I guess makes sense: it continues the action event handler and the focus events are handled later, but I needed two chained invoke laters so it might also be that the OS events comes later).
    The following works for me (in the actionPerformed edited):
               // create the dialog here so it is correctly parented
               // (otherwise sometimes OK button not correctly the default button)
               dialog = JColorChooser.createDialog(button, "Pick a Color", true,  //modal
                            colorChooser, this,  //OK button handler
                            null); //no CANCEL button handler
                    //The user has clicked the cell, so bring up the dialog.
                    button.setBackground(currentColor);
                    colorChooser.setColor(currentColor);
                    button.addFocusListener(new FocusListener() {
                        @Override
                        public void focusLost(FocusEvent e) {}
                        @Override
                        public void focusGained(FocusEvent e) {
                            // dialog closed and focus restored
                            button.removeFocusListener(this);
                            fireEditingStopped();
                    dialog.setVisible(true);but a simpler request might be better (althoug I still need an invoke later):
    // rest as before except the FocusListener
                    dialog.setVisible(true);
                    button.requestFocusInWindow();
                    EventQueue.invokeLater(new Runnable() {
                        public void run() {
                            fireEditingStopped();
                    });And a quick fix to the renderer so you can actualy see the focus on it:
                    if(hasFocus) {
                        Border border = DefaultLookup.getBorder(this, ui, "Table.focusCellHighlightBorder");
                        setBorder(BorderFactory.createCompoundBorder(
                                border, BorderFactory.createMatteBorder(1, 4, 1, 4,
                                        ((MatteBorder) getBorder()).getMatteColor())));
                    }

Maybe you are looking for