Clicking on a column without disturbing the existing selection

Hello good people,
I am still getting used to Swing and my question may be really silly. Thanks in advance for helping me out!
I have a JTable in which one of the columns has checkboxes. Using Ctrl+select, one can select multiple rows. Clicking without ctrl, unselects the previous selection. This is all good and default behavior. However, I would like to be able to click on one of the checkboxes in one of the selected rows and not disturb the selection. My target is to enable/disable the checkboxes of all the selected rows.
Basically, my question is: How do I not disturb the selection if a user clicks in one of the already selected rows and the checkbox column. In other words, if I clicked on the cell (r, c) where row r is already selected and column 'c' is the checkbox column, I would like to retain the selection.
Thanks,

what I meant was if you click on the flag cell of one of the selected rows, all the rows (emails) will be flaggedIn my version of Outlook (which is really old) only the row you click on will be flagged and the other rows are deselected.
But you could try adding a MouseListener to the table. When a mousePressed event is received you could save all the selected rows. You would also add a TableModelListener to the TableModel. Whenever the flag field is selected you could then loop through all the saved selected row and set the flag. You would want to remove the TableModelListener before you start the loop to prevent multiple table model events from being generated. Then when the loop finishes you would need to add the listener back to the model.
However, this is not a very good solution since it depends on the mousePressed event firing before the ListSelectionModel is updated.

Similar Messages

  • Alternate fact table without disturbing the existing fact table in EIS

    I have a question in EIS, how to load or work with alternate fact table, without disturbing the existing fact table, pls provide me with some procedure and steps
    thank u in advance
    sunil

    Yes you can have multiple models and metaoutlines load one cube. I've done it before. The trick is you ahve one "master" metaoutline that you put all the measures in (even if they are manually added. You use that to build the cube. Then you can have multiple metaoutlines build different measures within the cube. The idea is you have to have them update different intersections or the last one in will be what you get. I have a client that gets sales info from one source, shipment info from a different relational source . in all I have 10 differnt models and metaoutlines that build one cube. you just lump the load statements into one CBS file. It works great (or as great as EIS works). The biggest issue is timing to make sure all the sources are available when the load is going to be doe. Of course you could build different parts at different times.

  • Help to modify the Release procedure without disturbing the existing class

    Hi All,
    We have a requirement to modify the existing workflow approval procedure for PR and PO to include a case, where the PO amount is less than certain value (say 100 EUR) and the material group is equal to certain value, then we need to include the approval levels L2 (defined for PR) and X2 (defined for PO).
    Taking the case for PO`s, please note the following information,
    Existing release Strategies & release Levels for PO are
    51          Level X4
    52          Level X4 + X3
    53          Level X4 + X3 + X2
    54          Level X4 + X3 + X2 +X1
    Characteristics used
    Total Net order Value
    Purchasing organization
    Order Type
    Purchasing Group
    Example : If the PO triggering a Release strategy 51 and if the conditions PO Value and Material Group satisfied then in addition to X4 system should send the PO  Approval to X2 also. Similarly if the Po triggering the Release strategy 52 then in addition to X4 + X3, approval from X2 also required (provided if the condition satisfies).
    Solutions tried
    1)  We can achieve the requirement by adding a dummy variable in the Characteristics and defining the new release strategy 55 with Level X4 + X2 and using the User Exit EXIT_SAPLEBND_002 .But we donu2019t want to touch the Characteristics and class because this is used by other companies also.
    2) Also we can add a characteristic Material group with value equal to the required value and define 2 new release strategies 55 with Level X4 + X2 and 56 with Level X4+ X3 +X2.For all the other release strategies we can maintain the material group value as blank. Since the characteristics used by many companies we donu2019t want this option also.
    Request your valuable suggestion to meet the above requirement, without disturbing the existing characteristics and Classes, would be highly appreciable.

    >
    MadhanRaj S wrote:
    But we cannot use those because these are used by other companies of the same organization.
    >
    > We need a solution other than these two options with out disturbing the existing charecteristics and class.
    It looks to me like you need a new release strategy for the company that is different. This is a perfectly normal way to use release strategies and is exactly what they are designed for.
    Cheers,
    Mike

  • How can I link an image without leaving the existing window in adobe acrobat??

    Hi everybody
    I'm new using adobe acrobat, but I saw (once) that in a manual, they linked a image.
    Just by passing the mouse over the linked word, the image appears "over" the pdf, without leaving the existing window
    Is this still possible?? and How??
    Thanks for your help

    If you need to do it very often, I've developed a web-service that allows
    you to enter a phrase (let's say "Product 1"), and have an image "pop-up"
    whenever the user hovers or clicks that phrase in your document. Contact me
    personally for more information.

  • I want to delete a column that is referenced in a formula in another column without deleting the other column

    How can I delete a column of numbers that are referenced in another column without deleting the other column?

    select the column to delect by click in the column header
    select the contextual menu for that column by clicking (and holding) the down arrow:
    select "Delete Column" to remove the column:

  • How do I turn selected text in a Pages document into two columns without turning the whole document into two columns?

    How do I turn selected text in a Pages document into two columns without turning the whole document into two columns?

    Menu > Insert > Layout Break (before and after text) > click in text > Inspector > Layout > Layout > columns: 2
    Peter

  • Can i have two internet connections connected to two airport extremes separately without disturbing the home sharing option.

    can i have two internet connections connected to two airport extremes separately without disturbing the home sharing option. i want to have both the airport extremes to use a single imac for streaming music or video to my apple tv's at different places where one apple tv is in the range of one airport extreme.it's not a problem if both airport extremes have different wifi id's with separate internet.The imac which i use for streaming the music and videos is only in the range of only one airport extreme.is it possible if i can stream music or videos to my apple tv which is not in the range of same airport extreme which i use for imac but in the range of other airport extreme.
    Finally what i need is i want to use two internet networks as my highest possible internet bandwidth is about 1mbps.and i know that i cant mix both the networks and make it as 2mbps.

    Yes, that is possible. Please check out the following Apple Support article for details on how.

  • How do you move a track region in Garage Band to a new starting point without altering the existing length of the track?

    How do you move a track region in Garage Band to a new starting point without altering the existing length of the track? Thanks.

    What exactly are you trying to do? You can drag any region by grabbing it in the middle of the upper area with the highlighted name of the region. However, if you move it towards the end of the track, the length of the track will get longer, to accommodate the extra part of the region. DO you want to speed up the region, to shorten it or do you want to trim it? You can simply grab the right margin of the region and drag it, to make the region shorter.

  • Modifying an "ssl-proxy-list" without disturbing the active sessions.

    Hello,
    I would like to know if it is possible to have two SSL modules installed in a CSS11503 with each one having it's own "ssl-proxy-list" ("ssl-proxy-list list1" and "ssl-proxy-list list2"), but the two lists (list1 and list2) are exactly the same.
    I will explain my idea:
    In normal situation the two "ssl-proxy-list" are active and the user's encrypted sessions are load balanced between the two SSL modules. But when we need to make a change to the "ssl-proxy-list", like changing a server's certificate, I would like to be able to suspend one service (type ssl-accel with the "ssl-proxy-list List1" attached to it for example) and wait for all active sessions to terminate before suspending the "ssl-proxy-list list1" for applying the changes.
    Once the first "ssl-proxy-list" is updated I would make it active again and apply the same changes to the second "ssl-proxy-list".
    Doing this this way I would like to be able to upgrade the servers's certificate during the working houres without disturbing the connected users...
    Do you think this way of doing would be possible, or do you have an other solution to modify a "ssl-proxy-list" without disturbing the active running sessions ?
    Thank you for your answer,
    Best regards

    Hi Francois,
    An SSL proxy list may belong to multiple SSL services (one SSL proxy list per service), and an SSL service may belong to multiple content rules. You can apply the services to content rules that allow the CSS to direct SSL requests for content.
    The CSS supports one active SSL service for each SSL module in the CSS, one SSL service per slot. You can configure more than one SSL service for a slot but only a single SSL service can be active at a time.
    No modifications to an SSL proxy list are permitted on an active list. Suspend the list prior to making changes, and then reactivate the SSL proxy list once the changes are complete. Once you have modified the SSL proxy list, suspend the SSL service, reactivate the SSL proxy list, and then reactivate the SSL service.
    You can use maximum 4 different certificates at a time.
    Use the suspend command to suspend an active SSL proxy list.
    To suspend an active SSL proxy list, enter:
    (config-ssl-proxy-list[ssl_list1])# suspend
    use the url below for your reference:
    http://www.cisco.com/en/US/docs/app_ntwk_services/data_center_app_services/css11500series/v7.10/command/reference/CmdSSLC.html
    Kind regards,
    Sachin Garg
    Senior Specialist Security
    HCL Comnet Ltd.
    http://www.hclcomnet.co.in
    A-10, Sector 3, Noida- 201301
    INDIA
    Mob: +91-9911757733
    Email: [email protected]

  • Remove Structured Anchored Frame  without disturbing the XML Structure - Reg.

    Dear All,
    Please any one help me!, How to remove the xml Structured Anchored Frame without disturbing the XML Structure.
    Manually If I'm removing the XML Structured Anchored Frame, the XML Structured is gone.
    I tried so many ways.  If  I am removing manually in Grouped Frame, then this problem is not happens.
    I mean, Create 2 separate frames Move any xml structured contents to that frames. Group that 2 frames and make it anchored.
    Now you can remove that anchored, this xml Structure is not disturbing (I mean not removed).
    If I did the same in above method for Single Text Frame, this xml Structure is gone.
    Kindly any one person resolve this problem, Thanks in advance!!!
    Note:
    (1) I tried through in InDesign CS6 Plug-In, this is working perfectly. But I need in Javascript to do this.
    Thanks & Regards
    T.R.Harihara SudhaN

    Hm – if you can do it with a Group object, why don't you wrap around a group object?
    With ExtendScript it's quite possible to create Groups with only one single object.
    If we have a text frame selected, you could add a "helper" rectangle to the spread.
    Group the text frame and the rectangle, then remove the rectangle from the group.
    Now you have a Group with a single text frame.
    var myTextFrame = app.selection[0];
    var myHelperRectangle = app.documents[0].layoutWindows[0].activeSpread.rectangles.add();
    var myGroup = app.documents[0].layoutWindows[0].activeSpread.groups.add([myTextFrame,myHelperRectangle]);
    myGroup.rectangles[0].remove();
    app.documents[0].select(myGroup);
    Uwe

  • How Do I go directly to Desktop without disturbing the Opened pages? I am using Lion OS

    How Do I go directly to Desktop without disturbing the Opened pages? I am using Lion OS

    You can tap one of the keyboard Function (F) keys. Without knowing which keyboard you use it 's a little difficult to say. If you don't have a keyboard shortcut to do that, create one in System Preferences - Keyboard. I have my F6 key set to take me directly to the desktop. However the way your question is phrased I'm not positive that is what you are asking.

  • How to run the variable exit without calling the variable selection screen?

    Hi all
    I have a query with 2 variables 0P_PRQUA (Previous Calendar Quarter (SAP Exit)) and ZCCDAT02.
    ZCCDAT02 is a Key Date variable that is derived based on the last day of the quarter that is entered in 0P_PRQUA. The exit code works correctly when calling up the variable screen and ZCCDAT02 is derived properly.
    The problem is that 0P_PRQUA is set to "Can be changed in query navigation". So if the user changes the value of the quarter the exit is not triggered and the value of ZCCDAT02 does not change.
    Is it possible to trigger the exit or is there another way to do it? Ideas would be appreciated. I am trying to create a Web Template with a Dropbox box for the Quarter.
    Query is written in BW 3.X.
    Regards
    Chami

    Hi guys
    Just to restate the requirement. I want the user to be able to change the value of the variable, WITHOUT calling the variable selection screen.
    I want the user to be able to change the value of the quarter by using a dropdown box from within the web template. Once that is selected I want the value of ZCCDAT02 to be derived from the new value of the quarter.
    Regards
    Chami

  • Need to Display columns depending on the prompt selection

    I  need to show the only the columns as per the prompt selection given by the user.
    Suppose there are 5 prompts say (first name, last name, phone number, address, DOJ). All the prompts should be optional. If the user gave input for first name and last name then only this two columns must be displayed in the report.

    Yes it is possible but you will have to write down formulas for these columns.
    First add all required object in your report and format them in your report.
    Now say you want Last name to appear when you user enters last name in prompt.
    Write down following formula
    Report Detail Area
    =If(UserResponse("Last Name"))="USER INPUT" Then [LNAME]
    For column Heading you can use
    =If(UserResponse("Last Name"))="USER INPUT" Then "Column Heading"
    The same pattern may be applied for other columns.
    Regards,
    Bashir Awan

  • How do I delete part of a column without deleting the whole column

    I'm trying to deleting certain cells within the same column but I don't know how without deleting the entire column.  It sounds so simple but I'm sure I'm overlooking something.  Thanks.

    jackiego26 wrote:
    Bummer! Thought there would be something similar to Excel. 
    Excel describes this in different terms, and the Excel user goes through a different set of steps, but the reality is that in Excel as in Numbers you are shifting content from one set of cells to another, not 'deleting cells'.
    If you were actually 'deleting cells' from rows 2-11 of a column, then shifting all cells right of the deleted cells into the space left by the 'deleted' cells, one of the results would be that at the right edge of the table, rows 2 through 11 would end one column 'earlier' than the rest of the rows (from which 'cells' had NOT been deleted.
    Excel: Select the cells whose content is to be replaced, tell Excel to 'delete cells'. Tell Excel which direction to move content to fill the cells. Excel moves that content into the emptied cells.
    Numbers (method 1): Select the cells whose content is to be moved. Copy. Select the first cell that is to receive the content. Paste.
    Numbers (method 1a): Select the cells whose content is to be moved. Drag the content to the first cell that is to receive the content. Drop.
    Numbers (method 2): Select the cells whose content is to be moved. Press shift-command-X (or go Edit > Mark for Move. Select the first cell to receive the content. Press Shift-command-V (or go Edit > Move.
    Regards,
    Barry

  • How to show all fileds column without scroll the report output.

    Hi,
    In my report output shows few columns and need to scroll right to see rest of fields . but i want to see all columns without scroll to right side in output.
    Please guide me how to fix the fileds in report.
    Regards.

    Hello,
    Why dont you use WAD and then switch off these properties in Webitem paging properties.
    i think that would give you more flexibility with paging,scrolling but with some extra effort of creating a WAD
    waiting for your feedback
    Regards
    Nitin Bhat

Maybe you are looking for