Is it possibiel to disable drag and drop of JTable columns?

Hi,
Using JDK6 I would like to disable user to drag and drop columns and change the default layout of my JTables.
Thanks for any help,

Using JDK6 I would like to disable user to drag and drop columns Read the JTableHeader API. You can prevent reordering of the columns.
and change the default layout of my JTables.How do you expect us to answser this??? What do you mean by changing the layout? Whats wrong with row and column and what do you want to change it to?

Similar Messages

  • SharePoint 2013 How to disable Drag and Drop Functionality

    Hi,
    In SharePoint 2013 in document library we have default behavior of drag and drop documents in document library. How to disable drag and drop documents in document library?

    Hi,
         As a work around, you can edit the Drag and Drop js as to remove the drag and drop functionality, edit the document library page (default
    page) place the content editor web part on top of the library include the modified Drag and Drop js file in the content editor web part, Please save the Drag and Drop js file to other location (probably Site Assets library etc).
    Hope it helps!!!  
    Please remember to mark your question as answered &Vote helpful,if this solves/helps your problem. Thanks, Ajeet

  • How to disable drag and drop feature for a document library?

    Hi
    How can I disable drag and drop feature for a document library? Do I have an option to disable it from the SharePoint's feature set?
    Or can I disable it using a script? If so, how?
    Regards
    Paru

    Hi,
    According to your post, my understanding is that you want to disable drag and drop feature for a document library.
    Drag and drop in SharePoint 2013 is a feature that depends on HTML5, which requires version of browser, SharePoint by default doesn’t has feature to disable or enable this.
    You can try disabling the drag and drop feature by disabling an add-on in Internet Explorer, or
    using Internet Explorer 9 or lower.
    Here is a similar thread for your reference:
    https://social.msdn.microsoft.com/Forums/office/en-US/8961ff07-039d-47b0-ae7d-8e24af96234a/2013-doc-library-settings-turn-off-drag-and-drop-and-findsearchfilter-on-metadata-columns?forum=sharepointcustomization
    http://community.office365.com/en-us/f/154/t/228079.aspx
    More information:
    The Solution to SharePoint 2013 Drop and Drag Not Working
    SharePoint 2013 Drag and Drop Upload Not Working
    Best Regards,
    Linda Li
    Linda Li
    TechNet Community Support

  • Drag And Drop in ALV Column Tree

    Hello All,
    Can anyone tell me the method used for  a drag and drop in a column tree....
    i found it for a simple tree but not for a column tree.....
    thanks in advance....
    Regards,
    Praveen

    Check the links -
    drag drop required for alv column!
    drag and drop in a tree
    Drag&Drop within the Tree
    Drag&Drop within a tree
    Drag and drop in ALV tree
    Regards,
    Amit
    Reward all helpful replies.

  • ADF Button components: How to disable drag and drop [SOLVED]

    Hi everyone
    I need to develop an application which allows not the user to drag and drop button components. I've converted every single af:commandbutton to h:commandbutton, to prevent this behaviour, but a huge lot of other problems arose from this "solution". I'm using JDeveloper 10.1.3.3.0.4157, and I'm a beginner, so please be patient with me.
    Thanks in advance.

    Maybe I've drifted off-topic with this, but I found the way to achieve this. The only limitation is that the change must be done on the client's computer. The drag and drop feature can be disabled by going to the about:config page in Firefox, and setting nglayout.enable_drag_images to false. It can also be done in a more "portable" way by creating a user.js script in the profile folder and setting it from there. Thank you all for stopping by and reading.

  • How to disable drag-and-drop tabs to search bar?

    I always have a lot of tabs open in Firefox, and oftentimes I move tabs around, whether intentionally or habitually (and accidentally). The problem is that a lot of times the tab is dragged on/near the search bar and this causes Firefox to respond by copying the tab's address to the search and start searching.
    I would like to disable one or both of these. I never use this, especially since whatever address I'm at is already found and if I actually wanted to search for it then I would just copy it and search myself. I want to disable the auto search and if possible, also disable copying the address.

    ''guigs2 [[#answer-714993|said]]''
    <blockquote>
    It is possible for window creation, note this work around: [http://www.ghacks.net/2012/12/04/firefox-disable-tab-drag-and-drop-window-creation/] However I did not find one for general dragging/moving tabs.
    Another add on that provided more customization tricks is known as:
    "[https://addons.mozilla.org/en-US/firefox/addon/tab-mix-plus/?src=search]"
    Did this help?
    </blockquote>
    No; as I said, my problem is tabs and the search bar. I drag tabs into new windows practically everyday and the other doesn't seem to have anything related to this either. I only read the description and looked at the pictures and etc, so I did not download it to give it a thorough review prior to declining it as it doesn't seem at all related.
    Curious:
    Does that ghacks thing also disable the tab-search thing in addition to disabling new windows, or did you just post a completely different tab-drag-drop related issue?
    (not rhetorical or sarcastic, I'm actually asking)

  • Disabling drag and drop of jtextfield

    Hey folks,
    i have a problem concerning drag and drop. I try to build a framework where you can drag and drop all panels like in eclipse. The problem now is that i have JTextfields or JList on this panels who have their own Drag and Drop mechanism. Is there a way to disable this mechanism, so the drag and drop of the underling component (my Dropable Jpanel) is called when i drop a panel on a JTextfield?
    Thanks a lot.

    Do you try to change focus before drop event occur. I'm not sure, but I think MouseEvent occur before. Read tutorial pages on DnD, you will find there your solution.

  • Is there a way to disable drag-and-drop on the pages panel?

    Hi, I'm using Indesign CS3 on Windows XP.  My computer is a laptop and the problem I'm having is that when I have the pages panel open, I have sometimes drag-and-dropped pages of a document into a new order without meaning to (the laptop touch pad seems made for these butterfingers-type moves).  The documents that I'm laying out are several hundred pages long, so sometimes I don't notice that I've screwed a few pages up until much later.  If there is any way to just turn this feature off, that would be great.  Due to the arrangement in which I usually work best (on a sofa), I would prefer not to have to attach an actual mouse to the laptop. Thank you for any help.

    Not that I know of.

  • Is it too much to ask to make it an option to disable drag-and-drop altogether so I can finally ditch IE and start using your product?

    I suppose drag and drop is a fine feature for those who want it but it irritates the crap out of me and it seems like it should be simple enough to add in a button or a check-box to turn it off.

    Things to change:
    Replace * with ^
    Replace new with gcnew
    Replace NULL with nullptr
    Replace "pExcel->get_Workbooks();" with "pExcel->Workbooks;
    That will care of most issues. There are a few arrays that also need fixing, such as "Object^ oArgs[]". For this you have to use "array<Object^>^ oArgs" (without the []). This one appears in 2 places and there's also "System::Object*
    oParams[]" which needs to the same treatment.
    This should get the code to a compilable state.

  • Latest Mavericks update disables drag and drop

    Ever since the latest Mavericks update came out, I've not been able to use drag and drop out of Chrome and now out of Image Capture. I've trashed the plist file for Finder with no results. Does anyone have a fix?
    I have to say, I want Mountain Lion stability back. Please.

    Please read this whole message before doing anything.
    This procedure is a diagnostic test. It’s unlikely to solve your problem. Don’t be disappointed when you find that nothing has changed after you complete it.
    The purpose of the test is to determine whether the problem is caused by third-party software that loads automatically at startup or login, by a peripheral device, by a font conflict, or by corruption of the file system or of certain system caches.
    Disconnect all wired peripherals except those needed for the test, and remove all aftermarket expansion cards, if applicable. Start up in safe mode and log in to the account with the problem. You must hold down the shift key twice: once when you boot, and again when you log in.
    Note: If FileVault is enabled, or if a firmware password is set, or if the boot volume is a Fusion Drive or a software RAID, you can’t do this. Ask for further instructions.
    Safe mode is much slower to boot and run than normal, with limited graphics performance, and some things won’t work at all, including sound output and Wi-Fi on certain models. The next normal boot may also be somewhat slow.
    The login screen appears even if you usually login automatically. You must know your login password in order to log in. If you’ve forgotten the password, you will need to reset it before you begin.
    Test while in safe mode. Same problem?
    After testing, reboot as usual (not in safe mode) and verify that you still have the problem. Post the results of the test.

  • Reordering of rows - issue with drag and drop of editable columns in table

    JDeveloper: 11.1.1.6.0
    ADF Faces - Drag and Drop for reordering of rows within the same af:table
    I have a requirement for reordering rows in a table using drag and drop. This table is loaded using a list and I am able to programmatically do the reordering of the rows based on the events of drag and drop by manipulating the list. Reordering of rows is working fine if all the columns are read only. For all the input text and input date columns the values are not getting reordered. Anyone has any idea on what the issue may be with reordering of the rows for editable columns/rows (af:inputText and af:inputDate) in af:table. Below is what Iam doing on drop event which is a collection drop target.
    public DnDAction dropCollection(DropEvent dropEvent) {
    try
    Object dropSite = dropEvent.getDropSite();
    Transferable transferable = dropEvent.getTransferable();
    DataFlavor<RowKeySet> rowKeySetFlavor = DataFlavor.getDataFlavor(RowKeySet.class, "rowmove");
    RowKeySet rowKeySet = transferable.getData(rowKeySetFlavor);
    RichTable table = (RichTable) dropEvent.getDragComponent();
    if (rowKeySet != null)
    CollectionModel dragModel = transferable.getData(CollectionModel.class);
    Object dragM = dragModel.getRowData(0);
    Object currKey = rowKeySet.iterator().next();
    dragModel.setRowKey(currKey);
    table.setRowKey(currKey);
    OrderData orderData = (OrderData)this.prodReportTableData.get(Integer.parseInt(currKey.toString()));
    this.prodReportTableData.remove(Integer.parseInt(currKey.toString()));
    this.prodReportTableData.add(Integer.parseInt(dropSite.toString()), orderData);
    OrderData orderDataAdded = this.prodReportTableData.get(Integer.parseInt(dropSite.toString()));
    JSFUtils.addPartialTarget(this.getProdReportTableBinding());
    catch(Exception e)
    e.printStackTrace();
    return DnDAction.MOVE;
    Code snippet from UI:
    <af:table value="#{pageFlowScope.prodReportBackingBean.prodReportTableData}"
    var="row" styleClass="AFStretchWidth" rowBandingInterval="0"
    rows="40" emptyText="No data to display." id="t1"
    partialTriggers=":::cb1" columnStretching="column:c3"
    binding="#{pageFlowScope.prodReportBackingBean.prodReportTableBinding}" summary="PROD TABLE">
    <af:dragSource actions="MOVE" defaultAction="MOVE"
    discriminant="rowmove"
    dragDropEndListener="#{pageFlowScope.prodReportBackingBean.afterDragAndDrop}"/>
    <af:collectionDropTarget dropListener="#{pageFlowScope.prodReportBackingBean.dropCollection}"
    actions="MOVE"
    modelName="rowmove"/>

    Hi,
    not sure its the reason but you have huge bummer in your configuration.
    <af:table value="#{pageFlowScope.prodReportBackingBean.prodReportTableData}"
    var="row" styleClass="AFStretchWidth" rowBandingInterval="0"
    rows="40" emptyText="No data to display." id="t1"
    partialTriggers=":::cb1" columnStretching="column:c3"
    *binding="#{pageFlowScope.prodReportBackingBean.prodReportTableBinding}"* summary="PROD TABLE">
    JSF component bindings should not be to beans in a scope larger than request to avoid stale component instances.
    Frank

  • Disable drag and drop of bookmarks?

    I would like to disable dragging bookmarks from the bookmarks sidebar onto the browser window, but still be able to use it when rearranging and organizing bookmarks. I am constantly accidentally opening a bookmark when I am on another website. Can anyone help? Thank you in advance...

    It works now. It seems to have fixed itself.

  • Drag and Drop in jtable!

    Hi everybody!
    I want drag some element from some list and drop in some cell in jtable, but i have a problem because this element can use more than one cell, all depends! , the drag moviment seem to work fine between list and the JTable. when the drag cursor is above a row in the JTable, ONLY ONE cell in that row is highlighted, but i want that more than one cell get highlighted and i want put the information in more than one cell.
    Anyone know how to do that?
    thanks in advance
    ps:I am a freshman in foruns, sorry about my english.

    Hi everybody!
    I want drag some element from some list and drop in some cell in jtable, but i have a problem because this element can use more than one cell, all depends! , the drag moviment seem to work fine between list and the JTable. when the drag cursor is above a row in the JTable, ONLY ONE cell in that row is highlighted, but i want that more than one cell get highlighted and i want put the information in more than one cell.
    Anyone know how to do that?
    thanks in advance
    ps:I am a freshman in foruns, sorry about my english.

  • Can I disable drag and drop for bookmarks?

    If not, it would be nice to have that ability in a future release, even if just added to about:config. Sometimes when I click on a folder in the bookmarks menu, Firefox thinks I want to move it when I don't. Thankfully I can hit escape to cancel the operation. However, there are times when I don't catch it and the folder ends up moved to the bottom of the list (or worse, into another folder).

    Note that it should be possible to use "Organize > Undo" in the Library (Bookmarks > Show All Bookmarks) to undo such accidental changes, provided that you haven't closed Firefox.

  • Drag and Drop inside JTable: what draws the 'insert' line during the drag?

    I'm trying to reconfigure a rather complex table with a fair number of custom renderers to include drag & drop of rows for resorting the table. Everything is working great, except that as I drag the rows there is no indication of the current insert point (i.e. the line that appears between rows). When I make a simpler table I see the line... I'm not sure what aspect of my current table is blocking this function. I'm writing in the hope that can someone can direct me to the method(s) responsible for drawing this line.
    Thanks!

    To elaborate a bit for anyone who might read this. I inquired with the Substance developers and they hope to support this feature in v5.1 (which requires SE6), but have no plans to update v4.3 (the last release before a switch to SE6).
    Also, I'd still be grateful for any info pointing me to the Swing methods that draw the drag line.

Maybe you are looking for

  • Text message time stamp while phone is off

    Does anyone know how to find out when a text message was actually sent by the person who sent it to you? I turn my phone off at night and sometimes for short periods during the day and when I turn it on I get several text messages at once.  However i

  • Finger Print reader does not link to Win7 Logon Screen

    Win7 Ultimate 64 bit FingerPrint software 5.9.4 Biometric link to windows Logon accepted MS Server domain client At system boot, the logon screen appears and the fingerprint light is "on". I scan my finger, the light blinks once and no submission of

  • Maximum size of an .air package

    hi forum, are there any limitations / recomendations for a maximum size of an .air package? i'm currently developing on an air application which will be distributed via cd/dvd. the app will have access to an fixed amount of image data (about 1,5 gb),

  • For writing a BDC for MIGO

    Hi, Can i write a BDC for Automatic good recipt in MIGO on the save of inbound delivery. Regards.

  • Flash Pro, How can preview sound with the vidio on embedded video on the timeline

    I am using a windows 7 based machine Flash Pro CC.  I embedded the video on the timeline, basically a person talking. Want to put pictures in and out during certain times of the discussion but when I press play on the preview these is no sound.  When