Right-click multiple JTable rows at once?

Hi everyone,
Haven't posted for a while but I've been trawling through Google and these forums looking for anyone who has implemented a JTable that allows the user to right-click multiple rows after selecting the multiple rows with a left-click. Currently the JTable allows multiple rows to be selected (MULTIPLE_SELECTION policy enabled) yet when you right-click on any of the highlighted rows it only right-clicks on the one out of the group you happened to click on and deselects all the other previously selected rows. Does anyone know of a way of enabling the right-click of multiple items (new listener or just a simple parameter change?)
Any help would be much appreciated.

I just have a mouse listener which, on a right-click, selects the row if it's not currently selected and does nothing if the row is already selected; then pops up the menu.

Similar Messages

  • We used to be able to sort by multiple columns/rows at once by right clicking on the header and choosing show more options-how do we do that in the new Numbers?

    We used to be able to sort by multiple columns/rows at once by right clicking on the header and choosing show more options-how do we do that in the new Numbers?  It doesn't appear anywhere.  Do I now have to sort massive tables by each column one at a time now?  Also there used to be an easier way to merge/unmerge cells without me having to go to the table menu each time.  Am I missing something?

    Multiple column sort is a missing feature in the new version.  Hopefully soon to return. You can do a multicolumn sort by sorting one at a time in reverse order of importance.
    For merging and unmerging cells, I select the cells and right click to bring up the contextual menu. Merge and unmerge are on the menu.  You could also create keyboard shortcuts for Merge Cells and Unmerge Cells in the Table menu.

  • Regarding pop up menu on the right click of a row of a table in a frame

    hi to all,
    i am a naive in applet and swing.
    i have some proplem regarding table in a frame.
    actually i want to open a pop up menu on the right click of a row of a table in the frame.please send the code regarding this.

    Hi,
    You're probably better off directing this to the swing forum but a starter for ten is the use of the MouseListener interface and the boolean isRightMouseButton method.
    http://java.sun.com/docs/books/tutorial/uiswing/events/mouselistener.html
    Regards,
    Chris

  • Help..how to make right click on jtable pleassssssss

    I'm creating a table that need to have a right click on the row
    please help me I really need this in my project....

    look here:
    http://forum.java.sun.com/thread.jsp?forum=31&thread=293211

  • Lost ability to right click multiple files and choose 'open with'

    In XP I can select a bunch of mp3 files, for example, right click and choose 'open with...' whatever application I want.
    In windows 7 I only get 'open with' in the context menu on single files. How do I enable 'open with' for a selection of files? Please tell me Windows 7 hasn't disabled this useful behaviour.

    Hi,
    You can change the register key to realize the function.
    For example, your mp3 player is windows media player, you can copy the following content (without quote) to the notepad and save it with the “.reg” extension.
    The context is below:
    Warning: While this procedure might solve the issue or problem, serious problems might occur if you modify the registry incorrectly by using Registry Editor or by using another method. These problems might require that you reinstall the operating system. Microsoft cannot guarantee that these problems can be solved. Modify the registry at your own risk. For more information about modifying the registry, see Microsoft support article 256986.
    “Windows Registry Editor Version 5.00
    [HKEY_CLASSES_ROOT\*\shell]
    [HKEY_CLASSES_ROOT\*\shell\open with]
    @="open with player"
    [HKEY_CLASSES_ROOT\*\shell\open with\command]
    @="\"C:\\Program Files\\Windows Media Player\\wmplayer.exe\" \"%1\""
    [HKEY_CLASSES_ROOT\*\shell\removeproperties]
    "ProgrammaticAccessOnly"="Apartment"
    [HKEY_CLASSES_ROOT\*\shell\removeproperties\DropTarget]
    "CLSID"="{09a28848-0e97-4cef-b950-cea037161155}" ”
    You should change the bold text with the path of your player. After you’ve changed the key, you can right click the chosen MP3 files and choose “open with player” to play the music.
    If you still have some problems, please post here.

  • Mac OS multiple JTable rows dragging issue

    Hi ,
    I implemented dragging for a JTable component.
    user selects multiple rows from Jtable and drag them to another JTable component.
    for windows this seems to work fine.
    but for apple Mac platform when user selects x rows and start dragging rows all rows get deselected except last one.
    the only solution seemed to hold key Command pressed and start dragging which seems to work.
    but apple users of my application are complaining ! they don't want to be obliged to use command key+ click to drag.
    I only setDragEnabled() for first JTable and wrote a TableTransferHandler to do the drag drop Job.
    is there a solution to get rid of using command key + click when dragging on apple Mac ?
    thanks for help

    Normally, it is the the command (apple) key.

  • JTable: Allowing the highlight of a row with a right click

    Hi, this is my first post here. I'm using a JTable to display data from a JDBC ResultSet and I added a popup menu to the JTable (activated with the PopupTrigger) to display options related to the selected row like DELETE, UPDATE, etc.
    But the problem is that if you right click (the PopupTrigger that MS Windows has) anywhere on the table the Pop Up shows even if you aren't right clicking over the selected row.
    What I want to do is to:
    * When I right click over a row on the JTable I want to highlight that row and then show the PopUp menu so it correctle performs the operation on the row the Menu is placed over.
    * Or another option is not to show the PopUp at all in case the cursor is not over the selected row.
    Anyway, the bottom line is that I need a way to know in which row of the JTable is the mouse over?
    Thanks in advance.

    Thanks my man! That was my missing piece!
    I also used the JTable.addRowSelectionInterval(clickedRow, clickedRow) to highlight the clicked row.
    10 Duke Dollars coming your way.
    class IFramePersons_jTablePerson_mouseAdapter
            extends java.awt.event.MouseAdapter
        IFramePersons adaptee;
        IFramePersons_jTablePerson_mouseAdapter(IFramePersons adaptee)
            this.adaptee = adaptee;
        public void mouseClicked(MouseEvent e)
            if(e.getClickCount() == 2)
                adaptee.jTablePerson_mouseClicked(e);
        public void mousePressed(MouseEvent e)
            maybeShowPopup(e);
        public void mouseReleased(MouseEvent e)
            maybeShowPopup(e);
        private void maybeShowPopup(MouseEvent e)
            if(e.isPopupTrigger())
                int clickedRow = adaptee.jTablePerson.rowAtPoint(e.getPoint());
                adaptee.jTablePerson.addRowSelectionInterval(clickedRow, clickedRow);
                adaptee.jPopupMenuRow.show(e.getComponent(), e.getX(), e.getY());
    }

  • JTable - row selection not working + change the text format

    Hi All,
    I have written a code to display Jtable with 2 columns, 1 column to display image+text and other is multiline.
    I have used 2 different cell renderer for achiveing the same.
    Please advice on the following:
    @ When I click on row, only one column gets selected. How to fix this?
    @ Data to be displayed in rows is fetched from database. And on some STATUS value row should be in bold text or plain text. I have achieved this but withou logic to iterate over it.
    @ When user right clicks on the row allow them to set text in the row as bold or plain.(Just like we do with mails in outlook box)
    Below is the code:
    Hi All,
    I have written a code to display Jtable with 2 columns, 1 column to display image+text and other is multiline.
    I have used 2 different cell renderer for achiveing the same.
    Please advice on the following:
    @ When I click on row, only one column gets selected. How to fix this?
    @ Data to be displayed in rows is fetched from database. And on some STATUS value row should be in bold text or plain text. I have achieved this but withou logic to iterate over it.
    @ When user right clicks on the row allow them to set text in the row as bold or plain.(Just like we do with mails in outlook box)
    Below is the code:package jtab;
    import java.awt.Component;
    import java.awt.Dimension;
    import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;
    import java.awt.event.MouseEvent;
    import java.awt.event.MouseListener;
    import java.awt.image.BufferedImage;
    import java.io.File;
    import java.util.Vector;
    import javax.swing.ImageIcon;
    import javax.swing.JEditorPane;
    import javax.swing.JFrame;
    import javax.swing.JMenuItem;
    import javax.swing.JOptionPane;
    import javax.swing.JPopupMenu;
    import javax.swing.JScrollPane;
    import javax.swing.JTable;
    import javax.swing.table.DefaultTableCellRenderer;
    import javax.swing.table.DefaultTableModel;
    import javax.swing.table.TableCellRenderer;
    import jtab.TestIcon.iconRenderer;
    public class SampleJtable {
         JFrame frame;
         JTable table;
         JScrollPane panel;
         JPopupMenu popupMenu ;
         public static void main(String[] args) {
              SampleJtable sample = new SampleJtable();
              sample.loadGUI();
         public void loadGUI(){
              frame = new JFrame("Sample Program for Font and ImageIcons");
              frame.setContentPane(panel);
              frame.setSize(550,250);
              frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
              frame.setVisible(true);
         public SampleJtable(){
              BufferedImage images[] = new BufferedImage[1];
              try{
                   images[0] = javax.imageio.ImageIO.read(new File("C:/go.gif"));
              }catch(Exception e){
                   e.printStackTrace();
              final Object data [][] = {{"Auftrag \n test \n 777,Abdherhalden Josef, \n 1957,Grenchen Kaufe \n P",new ImageStore(images[0],"Bourquin Rene")},
                        {"Auftrag \n test \n \n 1957,Grenchen Kaufe \n N",new ImageStore(images[0],"Bourquin Rene")}};
              String colIds [] ={"Beschrebung","Von"};
              DefaultTableModel model = new DefaultTableModel(data, colIds) {  
    public Class getColumnClass(int column) {  
    return data[0][column].getClass();
              /*Vector<Object> rowData1 = new Vector(2);
              rowData1.add("Auftrag \n test \n 777,Abdherhalden Josef, \n 1957,Grenchen Kaufe");
              rowData1.add(new ImageStore(images[0],"Bourquin Rene"));
              Vector<Object> rowData2 = new Vector(2);
              rowData2.add("Auftrag \n test \n 777,Abdherhalden Josef, \n 1957,Grenchen Kaufe");
              rowData2.add(new ImageStore(images[0],"Bourquin Rene"));
              Vector<Vector> rowData = new Vector<Vector>();
         rowData.addElement(rowData1);
         rowData.addElement(rowData2);
              Vector<String> columnNames = new Vector<String>();
         columnNames.addElement("Beschrebung");
         columnNames.addElement("Von");     
              DefaultTableModel model = new DefaultTableModel(rowData, columnNames) {  
              table = new JTable(model);
              table.setDefaultRenderer(ImageStore.class, new ImageRenderer());          
              table.getTableHeader().getColumnModel().getColumn(0).setCellRenderer(new LineCellRenderer());
              table.setRowHeight(84);
              panel = new JScrollPane(table);
              panel.setOpaque(true);
         class ImageRenderer extends DefaultTableCellRenderer {  
         public Component getTableCellRendererComponent(JTable table,
         Object value,
         boolean isSelected,
         boolean hasFocus,
         int row, int column) {  
         super.getTableCellRendererComponent(table, value, isSelected,
         hasFocus, row, column);
         ImageStore store = (ImageStore)value;
         setIcon(store.getIcon());
         setText(store.text);
         return this;
         class ImageStore {  
         ImageIcon icons;
         String text;
         int showingIndex;
         public ImageStore(BufferedImage image1,String s) {
         icons = new ImageIcon(image1);
         showingIndex = 0;
         text = s;
         public ImageIcon getIcon() {  
         return icons;
         public void toggleIndex() {  
         showingIndex = (showingIndex == 0) ? 1 : 0;
         class LineCellRenderer extends JEditorPane implements TableCellRenderer {
              public LineCellRenderer() {           
              setOpaque(true);
              setContentType("text/html");          
              public Component getTableCellRendererComponent(JTable table, Object value,
              boolean isSelected, boolean hasFocus, int row, int column) {
              //System.out.println("Whats in value = "+ value.toString());
              String [] strArray = value.toString().split("\n");
              String rtStr = null ;
              System.out.println("TYPE+ "+ strArray[strArray.length-1].toString());
              String val = strArray[strArray.length-1].toString().trim();
              if (val.equalsIgnoreCase("N")){
                   System.out.println("TYPE+ IS NEW");
                   rtStr = "<html><head></head><body><b><div style=\"color:#FF0000;font-weight:bold;\">" + strArray[0] + "</div>" +
                             " <div style=\"color:#0000FF;font-weight:bold;\">" + strArray[1] + "</div>" +
                             "<div style=\"color:#0000FF;font-weight:bold;\">" + strArray[2] + "</div>" +
                             "<div style=\"color:#0000FF;font-weight:bold;\">" + strArray[3] + "</div>" +
                             "</b></body></html>";
              else {
                   System.out.println("TYPE+ IS PENDING");
                   rtStr = "<html><head></head><body><div style=\"color:#FF0000;\">" + strArray[0] + "</div>" +
                   " <div style=\"color:#0000FF;\">" + strArray[1] + "</div>" +
                   "<div style=\"color:#0000FF;\">" + strArray[2] + "</div>" +
                   "<div style=\"color:#0000FF;\">" + strArray[3] + "</div>" +
                   "</body></html>";
              setText(rtStr);
              return this;

    Posting code again........
    package jtab;
    import java.awt.Component;
    import java.awt.Dimension;
    import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;
    import java.awt.event.MouseEvent;
    import java.awt.event.MouseListener;
    import java.awt.image.BufferedImage;
    import java.io.File;
    import java.util.Vector;
    import javax.swing.ImageIcon;
    import javax.swing.JEditorPane;
    import javax.swing.JFrame;
    import javax.swing.JMenuItem;
    import javax.swing.JOptionPane;
    import javax.swing.JPopupMenu;
    import javax.swing.JScrollPane;
    import javax.swing.JTable;
    import javax.swing.table.DefaultTableCellRenderer;
    import javax.swing.table.DefaultTableModel;
    import javax.swing.table.TableCellRenderer;
    import jtab.TestIcon.iconRenderer;
    public class SampleJtable {
    JFrame frame;
    JTable table;
    JScrollPane panel;
    JPopupMenu popupMenu ;
    public static void main(String[] args) {
    SampleJtable sample = new SampleJtable();
    sample.loadGUI();
    public void loadGUI(){
    frame = new JFrame("Sample Program for Font and ImageIcons");
    frame.setContentPane(panel);
    frame.setSize(550,250);
    frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    frame.setVisible(true);
    public SampleJtable(){
    BufferedImage images[] = new BufferedImage[1];
    try{
    images[0] = javax.imageio.ImageIO.read(new File("C:/go.gif"));
    }catch(Exception e){
    e.printStackTrace();
    final Object data [][] = {{"Auftrag \n test \n 777,Abdherhalden Josef, \n 1957,Grenchen Kaufe \n P",new ImageStore(images[0],"Bourquin Rene")},
    {"Auftrag \n test \n \n 1957,Grenchen Kaufe \n N",new ImageStore(images[0],"Bourquin Rene")}};
    String colIds [] ={"Beschrebung","Von"};
    DefaultTableModel model = new DefaultTableModel(data, colIds) {
    public Class getColumnClass(int column) {
    return data[0][column].getClass();
    /Vector<Object> rowData1 = new Vector(2);
    rowData1.add("Auftrag \n test \n 777,Abdherhalden Josef, \n 1957,Grenchen Kaufe");
    rowData1.add(new ImageStore(images[0],"Bourquin Rene"));
    Vector<Object> rowData2 = new Vector(2);
    rowData2.add("Auftrag \n test \n 777,Abdherhalden Josef, \n 1957,Grenchen Kaufe");
    rowData2.add(new ImageStore(images[0],"Bourquin Rene"));
    Vector<Vector> rowData = new Vector<Vector>();
    rowData.addElement(rowData1);
    rowData.addElement(rowData2);
    Vector<String> columnNames = new Vector<String>();
    columnNames.addElement("Beschrebung");
    columnNames.addElement("Von");
    DefaultTableModel model = new DefaultTableModel(rowData, columnNames) {
    table = new JTable(model);
    table.setDefaultRenderer(ImageStore.class, new ImageRenderer());
    table.getTableHeader().getColumnModel().getColumn(0).setCellRenderer(new LineCellRenderer());
    table.setRowHeight(84);
    panel = new JScrollPane(table);
    panel.setOpaque(true);
    class ImageRenderer extends DefaultTableCellRenderer {
    public Component getTableCellRendererComponent(JTable table,
    Object value,
    boolean isSelected,
    boolean hasFocus,
    int row, int column) {
    super.getTableCellRendererComponent(table, value, isSelected,
    hasFocus, row, column);
    ImageStore store = (ImageStore)value;
    setIcon(store.getIcon());
    setText(store.text);
    return this;
    class ImageStore {
    ImageIcon icons;
    String text;
    int showingIndex;
    public ImageStore(BufferedImage image1,String s) {
    icons = new ImageIcon(image1);
    showingIndex = 0;
    text = s;
    public ImageIcon getIcon() {
    return icons;
    public void toggleIndex() {
    showingIndex = (showingIndex == 0) ? 1 : 0;
    class LineCellRenderer extends JEditorPane implements TableCellRenderer {
    public LineCellRenderer() {
    setOpaque(true);
    setContentType("text/html");
    public Component getTableCellRendererComponent(JTable table, Object value,
    boolean isSelected, boolean hasFocus, int row, int column) {
    //System.out.println("Whats in value = " value.toString());
    String [] strArray = value.toString().split("\n");
    String rtStr = null ;
    System.out.println("TYPE " strArray[strArray.length-1].toString());
    String val = strArray[strArray.length-1].toString().trim();
    if (val.equalsIgnoreCase("N")){
    System.out.println("TYPE IS NEW");
    rtStr = "<html><head></head><body><b><div style=\"color:#FF0000;font-weight:bold;\">" strArray[0] "</div>"
    " <div style=\"color:#0000FF;font-weight:bold;\">" strArray[1] "</div>"
    "<div style=\"color:#0000FF;font-weight:bold;\">" strArray[2] "</div>"
    "<div style=\"color:#0000FF;font-weight:bold;\">" strArray[3] "</div>"
    "</b></body></html>";
    else {
    System.out.println("TYPE+ IS PENDING");
    rtStr = "<html><head></head><body><div style=\"color:#FF0000;\">" strArray[0] "</div>"
    " <div style=\"color:#0000FF;\">" strArray[1] "</div>"
    "<div style=\"color:#0000FF;\">" strArray[2] "</div>"
    "<div style=\"color:#0000FF;\">" strArray[3] "</div>"
    "</body></html>";
    setText(rtStr);
    return this;
    }

  • Problems with new start button right-click context menu

    I have been unable to come up with a rhyme or reason to this problem.
    For some reason the Windows 8.1 start button will no longer respond to a right-click.  The context menu will not come up.  You can see that the active window is no longer active because the border color changes.  The start button works as
    expected when left-clicking it.
    I first noticed this on a brand new Windows 8 machine that I upgraded to Windows 8.1.  The problem occurred while I was messing with trying to customize the default user profile.  The next time I logged in with a new user account the start button
    was broke.  The system I was using was stripped down.  It had NO additional software on it except the drivers and necessary associated applications, and all available Windows updates were installed.  I chaulked it up to something I messed up.
    Next, I reformatted 20 lab computers with Windows 8.1 Pro and joined them to a Server 2003 domain.  Users have roaming profiles and folder redirection policies.  The folder redirection policies redirect AppData, Documents, and Desktop to a folder
    on the server and the contents of these folders are shared between Windows XP and Windows 8.1.  The roaming profiles are unique and new.  Thus far all users have only logged on to Windows XP so they have the version 1 profile and when they logon
    to the Windows 8.1 box a new .v2 profile folder is created.
    Today, we logged about 12 users into these individual machines for the first time and about 3 or 4 of them could not right-click their start button.  Once the problem occurs, it never goes away regardless of what machine they log into.  The only
    way to solve the problem is to default the profile off the computer and delete the roaming profile folder off the server.  The problem has reoccurred after this but I'm not sure what triggers it.
    In addition, I have tried renaming the user's redirected application data folder and letting Windows 8.1 create a new one in case there was a conflict with a Windows XP setting.  This did not resolve the issue.

    In my environment we had a network "Default User.V2" profile that we used with Win7 clients.  Now, with Win8 and Win8.1 we've configured the clients to use V3 and V4 profiles (http://support.microsoft.com/kb/2887239/en-us). 
    That link is for the Win8 hotfix, which changes the roaming profile of users to .V3, but there's also one for 8.1 and it changes the profile folder to .V4.
    Anyway, we have since deleted the Default User.V2 from our network.  In testing the creation of .V4 roaming profiles with Win8.1, I've figured out a little more about the WinX folder.  If I have a roaming profile and log into a Win8.1 computer
    for the first time, the WinX folder is created as part of my profile during the "Hi, we're setting things up, many bright colors" spiel before you get to the Metro screen.  However, when I log out, because the WinX folder is in the Local AppData, it doesn't
    get uploaded to my roaming profile location.  If I then log back into the same computer, everything is fine because that computer still has a local copy of my profile with WinX in the Local AppData.  However, if I log into any other computer, the
    WinX folder doesn't get created and I can no longer right click on the Start menu (until I copy it to my Local AppData on that computer).
    So, it seems that when I first log in to a Win8.1 computer and go through the "Hi....etc etc....many different colors" startup, the WinX folder is created and will work on that computer, but if I log into another computer, it isn't downloaded as part of
    my roaming profile or re-created.  Also, if you have the GPO set to delete copies of roaming profiles off of the computer when a user logs out, I would guess that the WinX folder would then get deleted and when you log back in you'd have the same issue.

  • Bug in right click selection in reports

    Build 22.71, on Linux and Windows.
    When I go to, for example, the sessions report, and right click on a row which I want to invoke a trace session command on, the whole column where I right clicked get selected, so it does not correctly indicate to the user which session will have trace enabled on.

    Add mouselistener:
    MouseListener ml = new MouseAdapter() {
          public void mousePressed(MouseEvent e) {
             if (SwingUtilities.isRightMouseButton(e)) {
               doSomething();
          }//mousePressed
          public void mouseReleased(MouseEvent e) {
            if (SwingUtilities.isRightMouseButton(e)) {
              doSometing();
          }//mouseReleased
        };//mouseListener
        myList.addMouseListener(ml);

  • BW precalculation server is not showing the functions when right clicked.

    Hi All,
    I have BW precalculation server.When i tried to execute the tcode "RSPRECADMIN"-- and right click on the server it is not displaying the next window,which is used to maintain like display the queue(ctrlf10) or edit the servert etc..But when i  ctrlf10 i am able to get the functionality.Other users are able to get the window once they right click on the server,but not me.
    Please let me know if i need to check the system settings or do any modifications to the settings.
    Thanks In advance,
    Eshwar.

    Hi Rohit,
    I got the solution for it.
    Actually we activated the "quick cut and  paste"  option in the sap system...on tht top right hand corner there is icon called "customiz local lay out" in this we have ticked the "quick cut and  paste"  and hence iam not getting the window once i right click on the server.But once i unticked the "quick cut and  paste"
    option i am able to get the window once i right click on the server.
    Rohit, hope it will help in solving you issue also.
    Thanks All of you for your interest in trying to help me,
    Eshwar.

  • X220 touchpad, Can't right click drag with more than one stroke

    1. Put cursor over a file or folder on the desktop.
    2. Hold the lower right corner of the touchpad (embedded right button)
    3. Drag with another finger (either hand)
    4. Lift off the dragging finger to reposition, then touch again, and it lets go of the icon, returning it to the original position.  (This means I'm not accidentally lifting off the right button. If I was doing that, the icon would remain where I moved it to.
    There are 3 ways to keep it from doing this:
    a. Use the right hard button above the pad.
    b. Press the touchpad button below the bend along the lower edge (As close to the edge as possible.
    c. Insulate the button pressing finger from the pad with folded paper, or press with a pencil eraser.
    b and c above show that it's the presence of a touch in the active area above the lower edge bend,  This touch, plus another touch being initiated in any other area of the pad interrupts the drag operation.
    The "tap and drag" settings have no effect on this.
    I just received the machine today after a 1 month order wait, and this is frustating enough to make me want to send it back.  As-is, it's nearly impossible to do right-click moves using the right pad button.  It becomes a 2-handed operation, one to hold the upper right button, and the other to do the dragging.
    Solved!
    Go to Solution.

    ok. 
    Control panel, "Programs and Features"   Uninstalled Thinkpad Untranav Utility  and driver items.
     Rebooted.  Confirmed that these applications ar eno longer present.
     Checked Device Manager, under Mice and Pointing Devices.  All it shows there is "PS/2 compatible Mouse"
    Results:
    1. Right click with touchpad right switch now generates a right click.
    2. Left, and right click drags with the touchpad lower switches now work, but there is a tendency for the finger touch to move the cursor off target before the press is completed.
    Suggestion to Synaptics.
    When pressing one of the touchpad switches, there will always be a finger touch on the touchpad sensing surface first, which will probably have a negative effect.
    To avoid this, any initial touch in the lower left or right areas should be ignored, and any cursor motion generated by that touch should be undone as soon as the switch closes.
    Downloaded latest driver and utility. 
    Installing driver (15.3.6.0 / 6hgx40ww) first, and restart.
    Result for driver reinstall:
    1. Right click with touchpad right switch works
    2. Right click multiple swipe drag works.
    3. Left click drag works, but ONLY if the clicking finger is touching the active area of the pad.  If you click too close to the edge, or use an object to press the switch, then the switch closure itself is not recognized.  The same issue exists for right clicks.
    Actually the behavior seems to be reversed now,  You MUST have a finger touch in the areas that prevented movement earlier to register the click event,  If you press the switch too high, or too low, or with an object, such as pencil eraser, then there's no click.
    So, with the new driver. I get acceptable dragging action as long as my finger isn't too far out of position.
    However, doing things like dragging a scrollbar with these buttons is still very frustrating, since the cursor tends to move off target before the switch closes.  This can be avoided by bringing the finger down onto the pad very quickly, to close the switch before any movement takes place.  A slow press will almost always move the cursor before the click.
    Installing the utility (7VGQ14WW) next.
    Still works, and the initial lag when trying to drag things is now gone. 
    So, aside for the cursor to move while clicking, I'd say the problem was fixed by the new driver. 
    Thanks for the fast responses, and to the driver devs for fixing it this quickly.

  • Context menu on right-click

    How can i get a context menu popup when the user right-clicks a table row? Will the conflict with the selection listener? thanks

    [url http://java.sun.com/docs/books/tutorial/uiswing/components/menu.html#popup]Bringing Up a Popup Menu

  • Highlight JTable Row with Right-Click

    How can I get a JTable to highlight a row when that row is right-clicked? Thanks, Jeremy

    table.addMouseListener(new MouseAdapter()
    public void mouseClicked (MouseEvent e)
    if(e.isMetaDown())
    int row = table.rowAtPoint(e.getX((), e.getY();
    table.setSelectionInterval(row, row);
    });Or something like that.

  • Double click on a JTable row.

    I got and run a sample about double click on a JTable and it works fine. This sample defines a TableModel as shown at the end this note.
    On the other hand, I have an application in which I have defined a JTable
    using the DefaultTableModel as follows :
    DefaultTableModel dtm = new DefaultTableModel(data, names);
    JTable table  = new JTable(dtm);  where data and names are String arrays.
    Of course the mouse listener stuffs have been also specified.
    table.addMouseListener(new MouseAdapter(){
         public void mouseClicked(MouseEvent e){
          if (e.getClickCount() == 2){
             System.out.println(" double click" );
         } );Because the difference with the sample was the table model,
    I changed it with the DefaultTableModel class. At this point, the Double click does not work anymore.
    So I gues it should be an option which prevents double click to work.
    I thought of using mousePress() instead of mouseClick(), but it's very dangerous (I tried). . If by error the user clicks twice (instead of only once) the mousePress method is invoked twice for the same entry
    My question is now simple, may I use double click on a JTable with the default table model. If so, what I have to do ?
    Thanks a lot
    Gege
    TableModel dataModel = new AbstractTableModel() {
         public int getColumnCount() { return names.length; }
         public int getRowCount() { return data.length;}
         public Object getValueAt(int row, int col) {return data[row][col];}
         public String getColumnName(int column) {return names[column];}
         public Class getColumnClass(int col) {return getValueAt(0,col).getClass();}
         public void setValueAt(Object aValue, int row, int column) {
           data[row][column] = aValue;
         };

    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import javax.swing.table.*;
    public class ClickIt extends MouseAdapter
        public void mousePressed(MouseEvent e)
            JTable table = (JTable)e.getSource();
            Point p = e.getPoint();
            if(e.getClickCount() == 2)
                System.out.println("table.isEditing = " + table.isEditing());
            int row = table.rowAtPoint(p);
            int col = table.columnAtPoint(p);
            String value = (String)table.getValueAt(row,col);
            System.out.println(value);
        private JTable getLeftTable()
            final String[] names = { "column 1", "column 2", "column 3", "column 4" };
            final Object[][] data = getData("left");
            TableModel dataModel = new AbstractTableModel() {
                public int getColumnCount() { return names.length; }
                public int getRowCount() { return data.length;}
                public Object getValueAt(int row, int col) {return data[row][col];}
                public String getColumnName(int column) {return names[column];}
                public Class getColumnClass(int col) {return getValueAt(0,col).getClass();}
                public void setValueAt(Object aValue, int row, int column) {
                    data[row][column] = aValue;
            JTable table = new JTable(dataModel);
            return configure(table);
        private JTable getRightTable()
            String[] colNames = { "column 1", "column 2", "column 3", "column 4" };
            JTable table = new JTable(new DefaultTableModel(getData("right"), colNames));
            return configure(table);
        private Object[][] getData(String s)
            int rows = 4, cols = 4;
            Object[][] data = new Object[rows][cols];
            for(int row = 0; row < rows; row++)
                for(int col = 0; col < cols; col++)
                    data[row][col] = s + " " + (row*cols + col + 1);
            return data;
        private JTable configure(JTable table)
            table.setColumnSelectionAllowed(true);
            table.setCellSelectionEnabled(true);
            table.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
            table.setPreferredScrollableViewportSize(table.getPreferredSize());
            table.addMouseListener(this);
            return table;
        private JPanel getContent()
            JPanel panel = new JPanel(new GridLayout(1,0,0,5));
            panel.add(new JScrollPane(getLeftTable()));
            panel.add(new JScrollPane(getRightTable()));
            return panel;
        public static void main(String[] args)
            JFrame f = new JFrame();
            f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            f.setContentPane(new ClickIt().getContent());
            f.pack();
            f.setVisible(true);
    }

Maybe you are looking for

  • For a SharePoint list LVWP - how to open links in new window? (Without SPD - Without access to server)

    Hi there, I canNOT use SharePoint Designer nor do I have access to server to change any 14 hive files. I have a SharePoint 2010 List with a field of type Hyperlink. I need these links to open in New Window. Only links with-in this LVWP should open in

  • Need help finding my serial # for photo shop elements 12

    Have photo shop elements and can't seem to find where I can get my serial number so I might download the program. I'm beginning to think I,m dumb,  I follow the instructions but the only number I have is the redemption code. Can anyone help with a si

  • Payment error/in purchase

    Hi, i just made an in purchase at war of nation and it went through just fine, while i was making my second purchase 20 min later, it asked to me to contact itunes support, help please, my credit card has funds

  • Failing over from MDC02 back to MDC01 on XSan

    cross-posted from Xsan discussion... Looking for some advice on an XSan MetaData controller problem.  Last week, we had a failover from our primary MetaData controler (metasvr01) to our backup MetaData Controller (metasvr02).  So far, so good. After

  • Won't shut down

    When turning off my laptop after hours of use.. it always hang for a really long time... so i have to press the power button, so i could turn it off. is this problem a factory defect? been experiencing it for week...