JTable - how to disable the drag / move  for column

hi there, please give me a hand with this problem,
i am trying to disable drag / move column in JTable.
ie.
===============================================================
JTable mainTable = new JTable();
tableModel recordTable; //this extand AbstractTableModel
this.mainTable.setModel(this.recordTable);
ie.
Product size quantity price
Shoe 8 200 $120
Shirt 9 100 $100
Dress 12 50 $60
the position of column Product,size,quantity,price, however, if i click on price and drag, i will be able to move the whole lot and place to different position ie. Product,price,size,quantity.
=======================================================================
please let me know how can i stop this happening....

Try something like this:
mainTable.getTableHeader().setReorderingAllowed(false);

Similar Messages

  • How to disable the Directory listing for the whole server or a particular a

    Please let me know how to disable the Directory listing for the whole server or a particular application.
    Thank You

    I want to disable the tab focusing( tab index) for a JTextField objectsLook through the API and find methods with the word "focus" in the method name.
    Also can u tell me about how to change the tab index orders for JTextFields."How to Use the Focus Sub System":
    http://java.sun.com/docs/books/tutorial/uiswing/misc/focus.html

  • How to disable the vibration feature for the Alarm?

    How to disable the vibration feature for the Alarm?

    Hi guys , because we have no answer to our issue how to take off the vibration when alarm is on , and our other profiles like ringtones, messages , reminders and so on we need to keep them on vibrate mode , the best solution is to install a free application from store called "alarmed " ; I did put it down on my phone and now i can use the alarm clock without any vibration at all ! That's the answer to our issue , before Apple is going to find a solution !
    Personally , I don't think is going to be fix it soon , as long as the apple script made for pop ups is general one !
    Good luck everyone

  • How to disable the tab focusing for a JTextField object because those ...

    Hi All,
    Here I need some help. I want to disable the tab focusing( tab index) for a JTextField objects because those objects are set as setEditable(false). Also can u tell me about how to change the tab index orders for JTextFields.
    Many thanks,
    Vijaycanaan.

    I want to disable the tab focusing( tab index) for a JTextField objectsLook through the API and find methods with the word "focus" in the method name.
    Also can u tell me about how to change the tab index orders for JTextFields."How to Use the Focus Sub System":
    http://java.sun.com/docs/books/tutorial/uiswing/misc/focus.html

  • How to disable the Save button For a pdf?

    Hi,
    I have a requirement that when you open the livecycle developed pdf, the Save option available in the toolbar (Save As icon) and File menu of the Reader should be disabled. A button will be provided in the form separately to provide the Save functionality. Can anybody help me reg. this? Is there any setting available for this in Adobe Pro or any other tool?
    Regards,
    Maria

    It's not really difficult to disable the save button. But it depends on the context from where you want to delete it. even if you disable the save button the user has the option to print screen and create a fresh pdf. So your question has some philosophical aspects to deal with. Please mail me at [email protected] incase of further quries. I've understood your problem and have got a solution but it's not somewhat legitimate to do. I can share it with you through email.

  • How to disable the timer job for "Database Statistics"

    I want to disable the database statistics timer job using the powershell, but I cant find the exact name of it in the list of timer jobs.
    tried
    Get-SpTimerjob to manually look for it Get-SPTimerJob SPDatabaseStatisticsJobDefinitionor and also looked for staadmin name job-database-statistics
    I even tried to look for it in the list of timer job definitions for a web application with no luck.
    I want to disable the timerjob, so that I can run proc_DefragmentIndices on sharepoint config and SharePoint admin databases.
    SELECT DB_ID() AS [sharepoint_admincontent_cab0c190-db30-4f2c-8b71-504b81d2b5d1];
    GO
    SELECT * FROM sys.dm_db_index_physical_stats
        (1, NULL, NULL, NULL , 'DETAILED');
    1 1131151075
    1 1
    CLUSTERED INDEX
    IN_ROW_DATA 2
    0 52.6315789473684
    1 1131151075
    1 1
    CLUSTERED INDEX
    IN_ROW_DATA 2
    1 0
    1 1131151075
    2 1
    NONCLUSTERED INDEX
    IN_ROW_DATA
    2 0
    80
    Thanks
    Nate

    Thank you Trevor, 
    As per this blog (http://www.houberg.com/2008/05/16/sharepoint-database-indexes-and-statistics/) it seems like
    Microsoft allows this (not explicitly though)
    I ran the Health Analyzer rule  for "Databases used by SharePoint have fragmented Indexes" for all servers.
    I am still seeing a lot of cluster and non clustered indexes having avg_fragmentation_in_percent
     > 60%.
    SELECT * FROM sys.dm_db_index_physical_stats (7, NULL, NULL, NULL , 'DETAILED');
    I finally thought that I should rebuild the indexes to fix the issue, but please suggest if that is not the correct approach to resolve the high fragmented indexes.
    thanks
    Nate

  • How to remove the note text for column (portal)

    Hi to All,
    Just i wanted to know how to remove the note (text) which is coming infrond the column in the appraisal template in portal view.
    My client doest want the text "note" (which i highlighted in the yellow) comming infrond the coulum. Pls can anyone tell me how can i remove only the  "note" text from the template?
    Kind regards,
    Saritha

    Hi Saritha,
    In SE80, Choose Web Dynpro Component HAP_DOCUMENT_BODY and you will find the component controller node, double click it and goto methods tab. Here you can find the method CONVERT_CONTEXT_TO_UI, this method will be triggered twice. Search for the code "CALL METHOD lo_nd_t_cells->get_static_attributes_table", this is the method which defaults the "Note" based on the row and column iid. You can overwrite the code by writing the implicit enhancement.
    Hope it will help you and revert back in case of queries.
    With Regards,
    Giriesh M

  • How to disable the drag feature of the Toolbar inside the JInternal Frame

    hi,
    I have a JInternalfame inside with i add a tool bar.I dont want the user to drag the tool bar and position it some where.I want it to be freezed.
    How to do that.??
    thanks
    neel

    setFloatable(...)
    Please spend some time to read up on the [url http://java.sun.com/docs/books/tutorial/uiswing/index.html]Swing Tutorial, which contains lots of working examples.

  • How to disable the sales organization for journals in an activity?

    Hello,
    I had some products created direcly in mySAP CRM (not downloaded from R/3) that don't need - and don't have - sales organization information (They don't even have the "SD" view on them, and represent product families, that are common to many companies, or even services, valid for all sales organizations in the company). Then, althought I created a journal saying that it was not dependent on a sales organization, when I insert this product on the journal, the error message no. CRM_PRODUCT_I419  appers "Product X in sales organization Y.,distribution channel Z not  scheduled ".
    Is there any way I can disable this check of the activity on a journal's product, or something that could prevent this error from happening (apart form inserting the sales organization information on the product?
    The version I use is 4.0
    Thanks in advance!
    With my best regards
    Simone
    Edited by: Simone Pereira on Apr 16, 2008 10:03 PM

    hi
    m sorry i cant send you any screenshots as such  as i m not having SAP on my system.
    but you can go inside the SPRO and there in CRM-->Master Data> Product-----> Product catalog
    inside the catalog you must be having some product specific attributes there.
    just deactivate them if you do not want to use them
    also inside the org model again check whether the journal is org independent or not
    guess it will help
    best regards
    ashish

  • How to disable the user settings for the transparent container

    Hi Experts,
           I have an form designed using VC - model, which as a input field and button. When i compile and deploy every thing works fine. I get the form as the output.I am able to call this form in the portal and I am able to get the page.
    Issue:  When i right click on the fields in the form I get "User settings for the input field AA" and gives me an option to Hide the field. Which the users doesnot want.
         I tried it on the VC runtime where i don't get the right click option.
    So kindly help me out in resolving this issue.
    Thanks
    Ketan

    Hi Ketan,
    If you have chosen the Rendering Client as WebDynpro HTML(by default it is set so) for the callable object, then you would invariably get the 'probelm' you're facing.
    Instead you could set for the Object Definition -> Rendering Client as WebDnpro Flex in the Callable object (in Guided Procedures). Now you would not get that hide option.
    But one simple question, why would the user want to right click on the field? Even if he hides the fields, he always has the option to make them visible again
    Let me know if it's helpful
    Regards,
    Vani

  • How can I disable the notification sound for remaining credit messages

    My operator sends me a message after every call and text which tells me what remains of my monthly allowances. This is very useful and I don't want to turn it off. I've just got myself a Z10 and the only thing that annoys me about it is that I have not yet found out how to disable the notification sound for this type of message. The device is stock with the latest firmware and no apps.
    I can change the notification for normal text messages in the settings, but there is no obvious entry to change for these messages. Does anyone know how to do it?

    Zotan wrote:
    My operator sends me a message after every call and text which tells me what remains of my monthly allowances. This is very useful and I don't want to turn it off. I've just got myself a Z10 and the only thing that annoys me about it is that I have not yet found out how to disable the notification sound for this type of message. The device is stock with the latest firmware and no apps.
    I can change the notification for normal text messages in the settings, but there is no obvious entry to change for these messages. Does anyone know how to do it?
    If the message comes in the (bell) notifications it can only be switched OFF globally.
    If it is a text message, you can create a contact with the number, then Setting - Notifications - Contacts - Customise - Phone Calls, Email Messages, Text Messages, Other Messaging

  • In Lion 10.7.x I cannot disable the Lock documents for 2 weeks in Time Machine! Thus it prevents to change anything else like the system preferences or other settings. How I can disable it?

    Hello, In Lion 10.7.x I cannot disable the Lock documents for 2 weeks in Time Machine! Thus it prevents to change anything else like the system preferences or other settings. All is locked. How I can disable it?

    Do you mean the check box isn't enabled?
    Or you remove the check but it doesn't "stick"?
    Or you remove the box but documents are stil getting locked?
    That setting doesn't apply to other things in System Preferences, just apps that support AutoSave and Versions.  If you're having a problem with System Prefs, please clarify exactly what.

  • How to disable the previously entered user ID's that automatically appear. For example ; when logging into email , first letter of user ID promts the previously used email user IDs... Want to disable this feature---How can ot be done ?

    Question
    How to disable the previously entered user ID's that automatically appear. For example ; when logging into email , first letter of user ID prompts the previously used email user IDs... Want to disable this feature---How can it be done ?

    *Click the (empty) input field on the web page to open the drop down list
    *Highlight an entry in the drop down list
    *Press the Delete key (on Mac: Shift+Delete) to remove it.
    *http://kb.mozillazine.org/Deleting_autocomplete_entries
    * Tools > Options > Security: Passwords: "Saved Passwords" > "Show Passwords"
    * Tools > Options > Privacy > History: "Remember search and form history"
    * https://support.mozilla.com/kb/Remembering+passwords
    * https://support.mozilla.com/kb/Form+autocomplete

  • How to disable the status icon in Skype 4 for Andr...

    Dear Skypers,
    How to disable the status icon in Skype 4 for Android phones?
    The guide on this following support page not working anymore: https://support.skype.com/en/faq/FA12359/how-do-i-enable-or-disable-the-status-icon-in-skype-4-for-a...
    Older version has the option to disable Skype Status and get rid of the Skype icon on Android status bar. But latest 4.4.0.31835 could not disable Skype Status in notifications settings. :/
    Device: Google Nexus 4
    Android: 4.3 JWR66Y
    Skype: 4.4.0.31835
    Please bring back the option to disable the Skype icon on Android status bar. This is the main reason I uninstall Skype. :/
    Kudos to the team, the apps is really smooth and fluid to use. Would be nice if you guys are following the Android Design Principles and using Google Cloud Messaging for push notification to improve User Experience and battery life.
    Kind regards,
    /chrone
    everytime i get ahead, i feel more dead.
    Solved!
    Go to Solution.
    Attachments:
    how to get rid of skype icon on android status bar.png ‏46 KB

    Long click on this notification a sub menu having field "App info" would appear goto App Info. You can goto there by "Manage Apps">"Skype" also. 
    Uncheck Option "Show Notifications" A dialog will open. Don't worry about notifications for now just click OK. Now the notification icon skype has also been removed. 
    Now simply check "Show notification again". After doing this you would get notifications but skype icon would not be shown in the status bar anymore.
    Issue: this is just a trick you need to repeat this every time sign out and sign in again. Mostly you don't do that so no need to worry.

  • Facing Strange Problem in DIR HOW TO DISABLE THE RIGHT CLICK MOUSE IN THE DIRECTOR? (through parent script/ movie?)

    Summary : HARD QUESTION : In the DIR file, the game runs well, right click = no effect. Coz I'm not making right click scripts. BUT in EXE file, right click = ERROR.
    Explanation :
    In the Adobe Director screen, this DIR file game is worked 100%.
    I tested right click EVERYWHERE... NOTHING HAPPENS.
    Because I don't make any programming with "on rightmouseup" or "on rightmousedown" command.
    THEN, I published it into EXE...
    I tested right click EVERYWHERE...I hoped the result will be the same as DIR tests....
    WHEN I RIGHT CLICK IN THE AREA THAT'S GIVEN ON EXITFRAME ME, IT SHOWS ERROR, CHANGING PICTURES.....
    this does not happened in the DIR file...
    I didn't make a runmode program or anything else.... This is awkward... mystery for me...
    WHY THERE'S A DIFFERENCE IN DIR and EXE... it should be exactly the same result.
    I have used Director for years.... This is really strange for me...
    >>>>>>>>HOW TO DISABLE THE RIGHT CLICK MOUSE IN THE DIRECTOR?
    THIS ONE is useless.... It doesn't prevent the rightmouse click,...
          on rightmouseup me
                 nothing
         end
          on rightmousedown me
                 nothing
         end

    Dear Adobe Forums friends
    I need your help and guide through this problem...
    In the game's dir file that is run on the DIRECTOR softwawre,
    the game runs perfectly, I can do LEFT CLICKS (coz I programmed the script)
    and when I do RIGHT CLICKS = there are no effect ( coz I don't do script for it)
    LATER THIS GAME TURNED INTO EXE.
    It supposed to run like the dir file as ABOVE. BUT STRANGELY, WHEN
    I DO RIGHT CLICKS, it turns Error and showing as the picture attachment.
    The right clicks that goes error are above the picture of numeric button only. (in DIR file
    this run normal). I looked into the script behind the numeric button picture, there are only "on exitframe me", there are no script I made inside the "on exitframe me" that is triggering RIGHT CLICKS.
    1. I wonder why there are differences in DIR and EXE effect
    2. Why right click? Left click effects are all normal.
    3. IS THERE ANY WAY TO DISABLE ALL RIGHT CLICKs since the beginning of EXE. So the game will be run normal. I don't need right clicks anyway, but whenever people do right click there will be ERROR.??
    4. Is there any way to STOP THE MESSSAGE BOX TO APPEAR IN FRONT OF THE GAME? (I hate the Dirrector Error Message Box), or auto press OK.
    NB: this game uses Buddy API Xtras, File IO Xtras.
    Thx
    David S

Maybe you are looking for

  • Flash drive does not appear in Finder or on desktop

    When I plug a flash drive into my iMac, it sometimes does not show up in Finder or on the desktop (or if it shows up when I plug it in, it disappears after awhile). As a result, I am unable to eject it properly, and when I physically disconnect it a

  • Index creation in Oracle Text ???

    Hi, I have never used oracle text before. The background info is got corruption errors on database alert log, identified it is an oracle9.2.0.5 bug in aix 5.2, need to apply 9.2.0.6 patchset. Temporary solution provided by oracle support was to drop

  • What cable to buy to connect iPod to my stereo?

    hello - i'm about to purchase iPod classic 120, and would like to know what cable i need to buy to be able to connect the iPod directly to my stereo + speakers, w/o having to run it through iTunes. i have an airport, and imagine there is a way to pla

  • IMac G5 wont turn on, strange clicking sound

    Brought my iMac home from work (where it was working fine). Plugged it in and it wont turn on. I hear a strange clicking like sound and then that stops. Help!

  • Viewing PDF or CHM (compiled HTML) files in a JEditorPane (Editorkit av.?)

    I want to view PDF or CHM files in a JEditorPane, for example for use in JavaHelp. Does anybody know if there is a free EditorKit available for viewing at least one of these two kinds of files (especially for PDF), or if it is possible to "plug" the