Toggle between allowing cell editing and disallowing....

Hi,
I have an edit button and when clicked it allows the user to edit all cells on the table, when clicked again all cell editing is disabled. I have a method which is called by the edit button event handler which works fine.. what to put in the method is the problem!
I was using:
private void setTableEnabled(boolean enable){
         if(enable)
             table.setCellSelectionEnabled(true);
             table.setEnabled(true);
             table.setBackground(enabledTableColour);
         else
             table.setCellSelectionEnabled(false);
             table.setEnabled(false);
             if(table.isEditing())
             {     table.getCellEditor().stopCellEditing();
             table.setBackground(disabledTableColour);
     }This code worked except when i use the table.setEnabled(false) my dropdowns don't work. The editing needs to be disabled when the application is loaded. i dont know why it effects my dropdown menus...
Any ideas why or how i could go about it another way?
Would really appreciate any help or insight!
Thanks,
Saz
***

I was using:
private void setTableEnabled(boolean enable){
         if(enable)
             table.setCellSelectionEnabled(true);
             table.setEnabled(true);
             table.setBackground(enabledTableColour);
         else
             table.setCellSelectionEnabled(false);
             table.setEnabled(false);
             if(table.isEditing())
             {     table.getCellEditor().stopCellEditing();
             table.setBackground(disabledTableColour);
You should make use of the fact that a boolean can only have 1 of two values... You don't need to check it with an if, so your code can be rewritten as:
    private void setTableEnabled(boolean enable){
        table.setCellSelectionEnabled(enable);
        table.setEnabled(enable);
        if (enable) {
            table.setBackground(enabledTableColour);
        } else {
            table.getCellEditor().stopCellEditing();
            table.setBackground(disabledTableColour);
This code worked except when i use the
table.setEnabled(false) my dropdowns
don't work. The editing needs to be disabled when the
application is loaded. i dont know why it effects my
dropdown menus...What dropdowns?

Similar Messages

  • Adjusting Space between table - cell border and cell content ?

    Hi all,
    Need a quick help.
    I am using a static table. By default, I have some space between the cell content and the text (yes, the cell margins).
    I wanted to reduce this space to '0'.
    Is there any option to adjust the cell margins? Thanks in advance !!
    1 more Q:-
    There are no options to merge 2 cells, are there ?
    Thanks,
    Navin.
    Edited by: 890074 on Mar 4, 2012 10:17 PM

    Hi Naveen,
    Until Documaker 11.5, there are no options to reduce the cell margin and no options to merge cells as well.
    Thanks.

  • Differences between Oracle Personal Edition and Enterprise Edition

    What are the differences between the databases of Oracle Personal Edition and the Oracle Enterprise Edition..?

    I have just looked at the metalink document and see that Oracle are still blatantly lying about the availability of analytical functions.
    We chose standard edition on the basis of this document and were very annoyed to find we could not use analytical functions.
    The document is about 8i. Of course we are all on 9i these days aren't we ?

  • Difference between Oracle9i Standard Edition and Oracle9i Enterprise Editio

    Hi,
    Can someone please tell me what is the difference between the Oracle9i Standard Edition and Oracle9i Enterprise Edition.
    Regards

    First, if you want Enterprise Options like Partitioning, you need to have Oracle Enterprise Editions. Note that partitioning is not included in an Enterprise Edition license ! You have to buy the option separatly (+25% of price).
    A good reason to use EE is the ability to scale to more than 4 cpus...
    Note that on some systems like Solaris 10, you can use SE with a multi-cpu machine, you just need to create projects and allocate at most 4 cpus for the oracle user.
    Check with your sales representative for some coefficients per core depending on your architecture .
    Message was edited by:
    Laurent Schneider

  • What is the difference between 9i standard edition and enterprise edition

    hi,
    who can tell me what is the difference between ora 9i standard edition and enterprise edition?? relevant http links are also appreciated. thank you!
    regards,
    iron teung.

    If your 'professor' really said that then I think you need to find a new college!I agree. 11g is a superset of 9i. In fact,you can tell 11g to run in 9i compatibility mode.
    >
    I firmly believe that you would do well starting with
    9i and then going through the new features with each
    release to 11g.Since 9i is officially about to start it's second year in 'Extended Support' (which, due to the surcharge in support fee, will likely see a drop-off in adoption) I would encourage anyone studying Oracle database to start with 10g.
    But the idea of starting at 9i is not bad.
    >
    'Client' is the software required to
    access/interact/maintain an Oracle database remotely
    from a client machine. Different features become
    available as you progress from Personal to Standard
    to Enterprise editions. They are cost related to
    whichever license you buy in a production environment.One point of confusion is that Personal Edition really is targeted for the Developer and therefore includes all capabilities, features and options of Enterprise Edition turned on and included in the license. (Except RAC and OEM packs) When I draw a picture, I put Personal Edition at the top as most capable.

  • Is there an easy way to toggle between an Apple ID and a cell phone number in Messages?

    My son has an iPod but just a regular cell phone. We communicate a lot through texts/Messages but he doesn't always have a wifi connection on his iPod so sometimes, he is only reachable through his cell phone number and other times through his Apple ID. Is there an easy way to select which channel I want to contact him through on Messages?

    Hi,
    On your Mac in Messages with his conversation in "focus" (the one selected) Click and hold his Name in the "to" Spot and the top right of the right hand pane where the conversation is.
    This will become a Drop Down and show you the iMessages (and other accounts he might have) options.
    In some cases they may not have been used before and may not have the indicator.
    Example
    NOTE.
    Any phone number will be listed as a potential iMessages ID as well any emails.
    In the above example I happen to know that both the emails are Apple IDs  (What I don't know is if my wife as linked either to her iPhone Number)
    8:21 pm      Wednesday; November 5, 2014
    ​  iMac 2.5Ghz i5 2011 (Mavericks 10.9)
     G4/1GhzDual MDD (Leopard 10.5.8)
     MacBookPro 2Gb (Snow Leopard 10.6.8)
     Mac OS X (10.6.8),
     Couple of iPhones and an iPad

  • : How to make a cell editable and uneditable in a JTable

    i have created a table and want to make some modifications in the cells and also make it uneditable...i hace used abstract table model . kindly guide me

    You have got to implement the 'isCellEditable' method within your abstract table model. If you want to allow the user to only edit cells in the first column you would add the following:
    public boolean isCellEditable (int row, int col) {
      if ( col == 0 ) {
        return true
      } else {
        return false;
    }That should be sufficent to base your own needs off.
    Jon

  • Database link between Oracle Standard Edition and Oracle Enterprise Edition

    Hi,
    I am looking at setting up a data transfer process between an Oracle 11g Enterprise Edition database and an Oracle 11g Standard Edition database. Database links would be required each way.
    I heard once that this is not permitted as connecting Standard to Enterprise via a DB Link means that the Standard Edition database would now need an Enterprise license.
    I have searched around but can't find anything to confirm this. Am I being mislead by this information? Is it permitted to
    connect Standard to Enterprise via a DB Link?
    John

    John O'Toole wrote:
    Hi,
    I am looking at setting up a data transfer process between an Oracle 11g Enterprise Edition database and an Oracle 11g Standard Edition database. Database links would be required each way.
    I heard once that this is not permitted as connecting Standard to Enterprise via a DB Link means that the Standard Edition database would now need an Enterprise license.
    ============================================================================
    Where did you hear that?
    --- On the internet
    And you believed it?
    --- Sure. They can't put anything on the internet that isn't true
    Where did you hear that?
    --- On the internet.
    ============================================================================
    I have searched around but can't find anything to confirm this. Am I being mislead by this information? Is it permitted to
    connect Standard to Enterprise via a DB Link?I would be shocked if it were not permitted due to licensing issues. When a db-1 has a link pointing to db-2, as far as db-2 is concerned db-1 is just another client .. no different than sqlplus. If you have an Enterprise Edition database, of course it will need to be properly licensed. But that doesn't mean all of its clients (including a SE database) have to be EE licensed.
    But even my reply is just something you read on the internet. Licensing questions can only be definitively answered by Oracle itself. Ultimately you will need to put your hands on an official Oracle document or a written statement from someone authorized to make such statements.
    >
    John

  • Differences between BI Standard Edition and EE?

    I am looking at using BI Publisher to integrate with APEX 3.x... Now I was looking at BI Publisher EE but noticed that there is a Standard Edition.. Could you explain to me what the difference is between the two versions?
    Is it a licensing issue (per user versus per server/processor) or is there a difference in the code? Will the Standard Edition work with APEX 3.x?
    Thank you,
    Tony Miller
    UTMB/EHN

    Hi Tony,
    I haven't seen different versions of BI Publisher other than the standalone and eBusiness embedded. Where are you seeing reference to BI Publisher Standard Edition? IT-Eye has a good writeup on BI EE vs BI SE:
    http://www.it-eye.nl/weblog/2007/06/25/oracle-business-intelligence-standard-edition-one-bi-on-a-budget
    Of course its not direct from Oracle, so no guarantees its correct ... but hey, might even be better than coming from Oracle.
    Regards,
    Gareth
    Blog: http://garethroberts.blogspot.com/

  • Difference​s between LabVIEW Education Edition and LabVIEW 2009 + NXT Module

    Recently saw the announcement regarding LabVIEW Education Edition.
    From the information available at this time it's hard to tell the difference between this product and just adding the NXT module to standard LabVIEW 2009 if your only interest in LabVIEW is for NXT  programming.  Anymore details about this new product would be appreciated as well as info on how it's different from the alternative.  Are there some unique VIs not present in the standard NXT module?  Obviously the pricing is very different, but for a student the academic version of LabVIEW is actually lower cost than this new Education Edition.

    Inh-
    LabVIEW Education Edition (LVEE) includes the NXT Module and the API to interface with Vernier products.    LVEE is geared towards middle school and high school classrooms to get students interested in math and science.  It includes curriculum for teachers that may not be familiar with programming and LabVIEW in general to use the NXT bricks and the LabVIEW environment. 
    LabVIEW with the NXT module only has the NXT API and not the Vernier API.  It will not include the course work and as extensive example programming useful for teaching. 
    For additional information on LVEE, please take a look at the Getting Started with LabVIEW Education Edition or go to ni.com and search for “labview education edition”. 
    Regards,
    Mike S
    NI AE

  • I there any dependcy between Java Enterprise Edition and Java standard Edit

    Hi Friends,
    Is J2EE 1.4 uses Java SDK 1.4 or 1.5.Please reply as earlier as possible.It is urgent
    Thanks
    Bye

    Each version of the Java EE platform must be able to run on the associated version of the Java SE platform. So, J2EE 1.4 must be able to run on J2SE 1.4 , Java EE 5 must be able to run on Java SE 5, etc. Note that this doesn't mean a particular implementation of Java EE can't be run with a more recent version of the JDK. For example, the J2EE 1.4 SDK can be run with J2SE 1.4 or Java SE 5. The key is that both the implementation of the Java EE platform and the applications written to that particular release of the platform must write to the corresponding Java SE version API. In other words, neither a J2EE 1.4 implementation nor a J2EE 1.4 application should make use of an API that was added in Java SE 5.
    --ken                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • App Store Mavericks issue - App Store Button Toggles between "Install App" button and "Free Update"

    When I go to the app store and click on the "Free Upgrade" Button it switches immediately to the green "Install App" button.  Nothing is downloading in the background.  When "Install App" is clicked on it immediately goes back to "Free Download". 
    Currently running 10.7.5, 2009 Macbook Air, app store account is Canadian.  Currently located in Grenada.  Friends with other accounts (USA, Canada) have been able to upgrade without issue.

    This has been happening for a few weeks now with no solution in sight. It seems to be an issue with the App Store, not the phone. You'll just have to deal with it for now. Use the search function on the right or just look through recent thread titles to see several other discussion on this issue.

  • How to reduce space between cell border and text ?

    I want to make a very small print of my class timetable. But I can't reduce the table size after a certain size. The major portion is taken up due to space between the cell borders and the text in them. Is there anyway I can reduce that space so that I can make the font size a little more and still keep the table size small.

    Assuming your are using Pages '09 (4.0.3) ..
    First select all the cells which you wish to change.
    Go to Inspector - Text Inspector, and reduce the Inset Margin

  • Toggling Between iTunes Library and Music Store

    Does anyone know if there's a way to toggle between the Music Store and the most recent view in your iTunes Library? For example, if my current Library view is of a particular Artist, then I go to the Music Store, when I return to the Library, the display defaults to All Genres, All Artists, All Albums.
    Gateway PC   Windows XP  

    Try double clicking the music store to open it in a new window. You can do the same for any playlists etc. In seperate windows, they won't affect one another.

  • Selection on Oracle 8i Standard Edition and Enterprise Edition

    I have seen "Oracle8i: A Family of Database Products" which states the feature difference between oracle8i standard and enterprise edition, for example, failover, parallel server, ...
    However, if I only use one databse in my application then it seems that there is no difference between standard and enterprise edition.
    Is there any significant difference between those that I must use enterprise edition one, e.g. performance???

    Hi,
    Can anybody give me a short explaination about the differences between the Standard Edition and the Enterprise Edition. Is the standard edition a fully qualified development and production environment?
    Regards,
    Joshua The diff between SE and EE has to do with what you license. SE for example, is not licensed for REP and Parallel Server but that might not stop someone from implementing them ? I consider SE and EE to be 'fully qualified development and production environment' but that is just my opinion.
    RP.

Maybe you are looking for