Can you select a JTable row programmically??

Seemingly a simple thing to want to do but I don't see an easy way of doing
this...is there?
Thanks

Seemingly a simple thing to want to do but I don't
see an easy way of doing
this...is there?
ThanksYes,
JTable table = new JTable();
table.setRowSelectionInterval(index0, index1)

Similar Messages

  • HT5035 Can you select whether to use a gift card or your credit card when purchasing

    I have iTunes gift cards but don't always want to redeem them. Sometimes I want to use my credit card.  Do you have to automatically redeem the gift cards or can you select credit even if your gift card has a balance?

    You can't choose which to use to pay for your order. The default order of payment is free credits first, if you have some, then store credits then credit card. I'm not sure how to explain this but this is what I know. You can contact support if you want for more info.
    http://www.apple.com/support/itunes/

  • HT4528 how can you select 1 photo from a shared photo stream and save it to your HD

    Can you select a single photo from a shared photo stream that some had sent me as I want to save and print the family photo?

    FAQ photo stream http://support.apple.com/kb/HT4486

  • How can you set the max row for a 'open cursor' in a stored proc?

    I would like to know how can you set the maximum amount of row returned in a resultset coming from a stored proc?
    You can do it via JDBC with cStatement.setMaxRows(10); but it works only for select that you do via JDBC...
    I would like the same functionality using open cursor inside a stored proc...
    Thanks...

    is "where ROWNUM <= 10" the equivalent of "cStatement.setMaxRows(10);" because the ROWNUM as problem with the ORDER BY clause and the setMaxRows() as no problem...

  • Can you select a scene using time code?

    When you are selecting a scene from a larger clip can you designate in an out points using the time code?

    Yes you can.  I find that turning off skimming helps, but isn't necessary, too.  Remember that when a clip in the Browser is selected, the Dashbord reflects that clip's timecode.  JKL keys can help find a specific spot, and the left/right arrow keys will move the playhead one frame at a time.  So, to specificaly type in timecode, here is how that is achieved:
    1- Select a clip in Flimstrip view by clicking on it, or in List view by selecting the clip in the list, then clicking on the filmstrip preview above to make it active.
    2- Click once on the timecode display in the Dashboard.
    3- Type in timecode, using periods rather than colons;semi-colons.  Hit return and the playhead will be at that timecode.
    4- Hit "i" for an In-Point or "o" for an Out-Point.

  • How can you select the "from" in Mail with multiple accounts?

    Is there a simple dropdown to select the "From" field in Mail when using multiple accounts?
    All I can find is a support page saying From is defined by the email account that is highlighted and active.
    Thanks

    Hoo,
    When you hover your mouse over your name in the from field it presents a little arrow. Click it and it lets you select who you are sending an email as.
    Also if your reading an email that you got say to your @iCloud.com email when you hit compose it will automatically select your @iCloud.com email to compose your email.
    Hope that helps,
    Weston

  • Can you select the server name or I.P. from SQL

    I am trying to find where I can get the server name or IP address from an SQL query, Can you Help?

    Do you mean the database host? It's like this:
    SQL> select host_name from v$instance;
    HOST_NAME
    sqlintdb4                                                                                                                                                                                                                                                                                                                               

  • Airplay on iTunes - can you select a reciever's zone(s)?

    Hello, I have Airplay on iTunes streaming fine to a new Denon receiver. Latest firmware / software on all.
    Due to the way my home system is set up, I need Airplay to stream to Zone 2 of my receiver instead of Zone 1 (Zone 1 plays only in the den, while Zone 2 lets me play music throughout the house via Control4).
    The person who helped with my setup said that when you select 'Multiple' in Airplay, each Zone should show up as an option under the Denon Receiver, so you can select one or both zones of the Denon in Airplay, in which case I could simply select Zone 2. After a lot of seaching I have been unable to verify this though.
    I get no Zone options under my receivers in Airplay - only the option to select the receivers themselves.
    Does anyone actually see Zone options under their receiver in Airplay? If so, any advice on how to activate this functionality?
    thank you.

    Thank you, Winston.
    So I guess there is no known way for Airtunes streaming to play on zone 2 of a receiver instead of (or in addition to) zone 1?
    Being that every A/V receiver must reserve Zone 1 for 5-channel home theatre, this seems like a major limitation of the Denon and Marantz integrations with Airplay. One would think they realized that most users would want to stream in rooms besides where the TV is located...
    I guess I'll need to step up to Apple TV and/or Sonos to accomplish this.

  • Can you select the row in a table view without highlighting the cell?

    I have an an app with a table view which is presented modally. Cell selections in this table are saved in the parent controller so that they can be reselected if the table is reloaded after being dismissed.
    When the cell is first highlighted, I want to momentarily highlight the cell and have it fade out, which I do by unselecting the cell from the modal view controller's didSelectRowAtIndexPath by calling setSelected:animated on the table view cell.
    However, when I present the table view controller modally again and want to display the previously selected cell as selected, I don't want the cell background to be highlighted, and I'm having trouble doing this.
    In order to make sure the table view knows the cell is selected, I am calling selectRowAtIndexPath. I need to make sure the cell is selected so that I can set/unset the cell's accessoryType. However, this has the sideeffect of highlighting the cell too, which looks weird and confusing to the user.
    I've tried things like temporarily setting the cell's selection style to none, but while that stops the cell background from highlighting? I've tried setting the selectionStyle to UITableViewSelectionStyleNone, but while this prevents the cell background from highlighting, the cell text still changes to white, so it the text is invisible against the white background.
    Is there a easy way of setting a cell to selected in the table view without also changing the highlight and text colour of the actual cell? Immediately setting the cell to be unselected still makes the highlight visible for a split second.

    I tried that, but setting the highlighted property doesn't seem to affect it.
    I figured out how what I was doing wrong though. I was setting selection style UITableViewSelectionStyleNone, selecting the cell, then setting the selection style back to whatever it had previously been. This causes the background not to draw highlighted, but the text and accessory type to still draw highlighted.
    In order to fix this, I moved the code to set the cell selection style to whatever it had previously been to the didDeselectRowAtIndexPath method.

  • How can you SELECT via Database Link CLOB data using Application Express?

    Customer Issue:
    Developer using Oracle's Application Express 3.1. The Developer is trying to SELECT a CLOB datatype column from a remote (10.2.0.3) database, via a database link on her 10.2.0.4 based client Application. The Developer wants to be able to select CLOB data from the remote database which has limitation that she can't make any changes to the remote database.
    Developer's Comments:
    I do a select and get the error. Getting error ORA-22992: cannot use LOB locators selected from remote tables. So she feels she can't use dbms_lob.substr in this configuration I can do a "select into" but that is for one value. I am trying to run a select statement for a report that brings back more than one row. I do not have permission to change anything on the remote database. I want to access the remote database and multiple tables.
    This is not something I work with, would greatly appreciate help or ideas. Is this a limitation of the 3.1; or does she just not have this set up correctly; or should she be using a Collection (if yes, please share example)
    Thanks very much,
    Pam
    Edited by: pmoutrie on Jun 4, 2009 12:01 PM
    Hello???
    Would really appreciate an answer.
    Thanks,
    Pam

    This may not be a perfect solution for you but it worked for my situation.
    I wanted to grab some data from Grid Control's MGMT$JOB_STEP_HISTORY table but I couldnt' create an Interactive Report due to the existance of a CLOB column. I cheated this by creating a view on the GC DB, grabbing the first 4000 characters and turning it into a varchar2 column:
    create view test_job_step_history as
    select job_Name, target_name, status, start_time, end_time, to_char(substr(output,1,4000)) output
    from MGMT$JOB_STEP_HISTORY where trunc(end_time) > trunc(sysdate)-90
    In an APEX Interactive Report:
    select * from test_job_step_history@GCDB
    Granted, the output looks aweful right now but I am only looking for a very particular output (failed, denied, ORA-, RMAN-, etc) so the formatting isn't the most important thing to me right now.
    If anyone can improve -- and I'm sure you can -- on this I'd love to hear about it.
    Thanks,
    Rich

  • How can I select and delete rows based on the value in one column?

    I searched through the discussion board, and found a thread on deleting blank rows, but not sure how to modify it to work with my issue.
    I have put together a rather complicated spreadsheet for designing control systems, it calculates parts needed based on check boxes selected in a second spreadsheet.
    Since not all systems require all parts there are many rows that have a 0 quantity value, I would like to select these rows and delete them once I have gone through the design phase (checking off required features on a separate sheet).
    I like the way the other thread I found will gather all the blank rows at the bottom without changing the order of the rows with data in them.
    I don't understand exactly how the formula in the other thread works well enough to modify it to look for a certain column.
    I hope I made myself clear enough here, to recap, I would like to sort the rows based on a zero value in one (quantity) column, move them (the zero quantity rows) to the bottom of the sheet, and then delete the rows with a zero quantity (I can delete them manually, but would like to automate the sorting part).
    Thanks for any help anyone can provide here.
    Danny

    I apologize but, as far as I know, Numbers wasn't designed by Ian Flemming.
    There is no "this column will be auto-destructing after two minutes"
    You will have to use your fingers to delete it.
    I wish to add a last comment :
    if your boss has the bad habit to look over your shoulder, it's time to find an other one.
    As I am really pig headed, it's what I did. I became my own boss so nobody looked over my shoulder.
    Yvan KOENIG (VALLAURIS, France) mercredi 13 juillet 2011 20:30:25
    iMac 21”5, i7, 2.8 GHz, 4 Gbytes, 1 Tbytes, mac OS X 10.6.8
    Please : Search for questions similar to your own before submitting them to the community
    To be the AW6 successor, iWork MUST integrate a TRUE DB, not a list organizer !

  • Can you select another query in a query?

    i.e. SELECT A.FIELD1, <PSQUERYNAME>, A.FIELD2
    I'm trying to select the results of a select, e.g.
    SELECT A.FIELD1, (SELECT B.FIELDB FROM TABLE2 B) FROM TABLE1 A
    and it was suggested that I might be able to do this by making the embedded SELECT a separate query and then referencing it. Is this possible? If not, is there another way to do this within PS Query?
    Thanks.
    Mike

    Yes, that makes sense - but how can I construct this in the PS Query tool? The top level of the query asks you to pick a record, and then select record fields - I see no option that would enable me to select a query or the (one-row single field) result of a query.
    e.g., how would I code
    SELECT
    A.BIRTHDATE,
    (SELECT B.DUMMY FROM DUAL B)
    FROM PS_PERSON A

  • Can you SELECT INTO a temporary table?

    I was wondering if you can do this and what the syntax would be. I tried to SELECT INTO GLOBAL TEMPORARY TABLE and it didn't work.

    If you are looking to Create a GTT, load data into it and then be able to select from the GTT after createion, you'll need to remember to preserve the rows after a commit e.g.:
    create global temporary table gtemp on commit preserve rows as select * from tab;
    However, your question is a bit on the vague side as to EXACTLY what you are wanting to do.
    As an addendum
    It didn't work is a completely useless statement without telling us how you know it didn't work
    Message was edited by:
    JS1

  • Can you select more than one partition at the same time?

    Thank you in advance.
    What is the SQL*Plus syntax to select multiple partitions from a partitioned table?
    Example: select tran_date from transaction_table (partition1, partition2, partition3);

    I think Justin is correct and you should have statistics in place and a reasonable partition scheme so that the optimizer selects the correct partitions rather than telling it what to do. You paid a lot for partitioning after all.
    There are some, possibly misguided, examples in the manuals showing how to create a view so you can delete from a single partition without specifying the partition criteria in the delete statement. This in effect turns partitioning back into DIY partitioning i.e. separate tables, union all and pretend its a single logical table using a view. But backwards.
    So to do what you want you just assume the partitions are separate tables, and then use union all to glue the ones you want back together.
    select * from sales partition (sales_q1_2000)
    union all
    select * from sales partition (sales_q1_2001)
    union all
    select * from sales partition (sales_q1_2003)
    union all
    select * from sales partition (sales_q1_2004);It probably goes without saying that as well as making the expensive version of partitioning behave like the free alternative, there is the possibility that it will perform like it as well.

  • How can you select which pictures to upload from camera? plus facebook ?

    Is there any way to select which pictures from your digital camera you would like to upload on to iphoto? Or is the only way to upload all of the pictures on your camera? I have 214 pictures on my camera and 210 of them are already in iphoto...i only want to upload the new 4!
    Another question..
    I am trying to upload my pictures on to Facebook, and they are significantly smaller than the pictures I uploaded via my PC. How can I get them to upload at normal size?
    THANKS!

    Re: the FaceBook problem
    This sounds like you're uploading the Thumbnails that iPhoto uses to display the pics in the iPhoto Window not the pics themselves. Have you been uploading from the Data folder in the iPhoto Library Folder?
    There are three ways (at least) to get files from the iPhoto Window.
    1. Drag and Drop: Drag a photo from the iPhoto Window to the desktop, there iPhoto will make a full-sized copy of the pic.
    2. File -> Export: Select the files in the iPhoto Window and go File -> Export. The dialogue will give you various options, including altering the format, naming the files and changing the size.
    3. Show File: Right- (or Control-) Click on a pic and in the resulting dialogue choose 'Show File'. A Finder window will pop open with the file already selected.
    Regards
    TD

Maybe you are looking for

  • How to Change the filed name in a standard SAP Transaction

    HI all, In the SAP Standard Display Vendor Transaction ie in XK03   there is an Screen with the Screen Number 220 In that Screen Number 220 there is a field by name Account memo I need to change that field name Accountmemo to DD Number. Please Sugges

  • New Patch in XML Publisher

    Hello Tim, In your announcement for the new patch, i think you haven't specified the new patch number. Below is your post. Thank You. This is a patch for Template Builder 10.1.3.4 and 10.1.3.4.1 The patch address the following issues: +8463992 - INCO

  • Blog Starter Template in Dreamweaver CC

    I am doing a favor for a co-worker. I am building her a website from scratch for a blog she wants to start regarding Real Estate Law. She already purchased a domain with Gator, therefore where I upload this site is already established. I was going to

  • ITunes Says No Room-Won't Sync

    My iPod mini is nearly full with pop tunes (half a gig left). I want to replace all those tunes with classical music. I have less than a gig of classical music on iTunes. I have it set to Sync only selected songs, genres etc. And the only genre I hav

  • How to retrieve database connection port? Oracle XE 11g beta

    Hi, I installed Oracle XE 11g beta two weeks ago. I can use Application Express in the local host and from other networks. I have been trying to connect to the database with SQL Developer from another PC in the same network, but I just can't. User an