How to handle (drag and drop) and Action Event in a JList?

I am having many JList,
On click of an element in JList I am loading a image in JSP.
But If I try to drag and drop one image from one bucket to another bucket Iam not getting any problem,
But I when I drag all the images from the target List to some other List and make the target List empty.
Now If I try to move the image from source list to the target list Iam getting this error,
Exception in thread "AWT-EventQueue-6" java.lang.NullPointerException
     at pdfViewer.NewFileSegregater$24.valueChanged(NewFileSegregater.java:1944)
     at javax.swing.JList.fireSelectionValueChanged(Unknown Source)
     at javax.swing.JList$ListSelectionHandler.valueChanged(Unknown Source)
     at javax.swing.DefaultListSelectionModel.fireValueChanged(Unknown Source)
     at javax.swing.DefaultListSelectionModel.fireValueChanged(Unknown Source)
     at javax.swing.DefaultListSelectionModel.fireValueChanged(Unknown Source)
     at javax.swing.DefaultListSelectionModel.insertIndexInterval(Unknown Source)
     at javax.swing.plaf.basic.BasicListUI$Handler.intervalAdded(Unknown Source)
     at javax.swing.AbstractListModel.fireIntervalAdded(Unknown Source)
     at javax.swing.DefaultListModel.addElement(Unknown Source)
     at pdfViewer.NewFileSegregater.actionPerformed(NewFileSegregater.java:2918)
     at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
     at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
     at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
     at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
     at javax.swing.plaf.basic.BasicButtonListener$Actions.actionPerformed(Unknown Source)
     at javax.swing.SwingUtilities.notifyAction(Unknown Source)
     at javax.swing.JComponent.processKeyBinding(Unknown Source)
     at javax.swing.KeyboardManager.fireBinding(Unknown Source)
     at javax.swing.KeyboardManager.fireKeyboardAction(Unknown Source)
     at javax.swing.JComponent.processKeyBindingsForAllComponents(Unknown Source)
     at javax.swing.JComponent.processKeyBindings(Unknown Source)
     at javax.swing.JComponent.processKeyEvent(Unknown Source)
     at java.awt.Component.processEvent(Unknown Source)
     at java.awt.Container.processEvent(Unknown Source)
     at java.awt.Component.dispatchEventImpl(Unknown Source)
     at java.awt.Container.dispatchEventImpl(Unknown Source)
     at java.awt.Component.dispatchEvent(Unknown Source)
     at java.awt.KeyboardFocusManager.redispatchEvent(Unknown Source)
     at java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(Unknown Source)
     at java.awt.DefaultKeyboardFocusManager.preDispatchKeyEvent(Unknown Source)
     at java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(Unknown Source)
     at java.awt.DefaultKeyboardFocusManager.dispatchEvent(Unknown Source)
     at java.awt.Component.dispatchEventImpl(Unknown Source)
     at java.awt.Container.dispatchEventImpl(Unknown Source)
     at java.awt.Component.dispatchEvent(Unknown Source)
     at java.awt.EventQueue.dispatchEvent(Unknown Source)
     at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
     at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
     at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
     at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
     at java.awt.EventDispatchThread.run(Unknown Source)
Please help me how to solve this problem..

Er, sure. In the class pdfViewer.NewFileSegregater on line
1944 (!), in the valueChanged() method, something is pointing to
null.
That method is being called from
pdfViewer.NewFileSegregater.actionPerformed() on line
2918 (!!).
Of course, none of us know what's going on in those code
segements but you. And for the record, that's not how to spell
Segregator.

Similar Messages

  • When I try to drag and drop to combine events in iPhoto, the drag accelerates out of control when it reaches the top or bottom of the screen. How can I slow it down?

    When I try to drag and drop to combine events in iPhoto, the drag accelerates out of control when it reaches the top or bottom of the screen. How can I slow it down?

    from iphoto  Help
    Album overview
    A photo album in iPhoto is just like one you would create with printed photos: It’s a collection of photos you select from your library and arrange in the order you want.
    You can create photo albums to:
    Focus on a particular subject, such as your favorite nature photos
    Group pictures that you want to send to a friend, post on a webpage, or burn to a CD or DVD
    Gather a decade of anniversary photos
    iPhoto has two kinds of photo albums:
    Standard photo albums: You create these albums (B, shown below) by selecting particular photos. You can add new photos by dragging them to the album (or using the Add To button), and you can remove photos at any time. All adding and removing is done manually; iPhoto doesn’t update standard albums automatically as you import new photos.
    Smart Albums: iPhoto creates these albums for you, based on criteria your specify. iPhoto then updates Smart Albums (A, shown above) for you as your library changes. For example, you could create a Smart Album containing:
    Photos of specific people, such as your family members. As you import new photos, iPhoto uses Faces to detect your family members, and automatically adds new photos of them to the Smart Album (after you’ve confirmed the matches in Faces).
    All the photos of your daughter taken on school field trips in third grade. Use Faces (to name your daughter) and keywords (to mark certain photos or events as “field trips”) to help specify the photos you want iPhoto to place in that Smart Album.
    Only photos taken with a specific camera, or photos matching other Exchangeable Image File (EXIF) information.
    You can make as many albums as you like, and you can include the same photo in several albums without making multiple copies of it.
    After you create an album, such as “Australia Adventures,” it appears in your Source list below Albums.
    In full-screen view, the album appears as a stack of photos below Albums.
    To further organize your library, you can group several albums (along with slideshows and projects) into a folder. For example, you could create a folder containing several years of birthday albums or a collection of albums with photos of your camping trips.
    To create a folder, see “Create a folder in the Source list and move items into it” in “Customize the Source list”.
    Folders appear only in the Source list, not in full-screen view.
    Note: A photo album is different from a photo book, which is a collection of photos you create to get professionally printed and bound. See this topic: Photo book overview.
    Copyright © 2014 Apple Inc. All rights reserved.
    LN

  • How do I import music using homeshare with iTunes 11...I can see the shared libraries but I can't drag and drop and there is no import button.  Thanks!

    How do I import music using homeshare with iTunes 11...I can see the shared libraries but I can't drag and drop and there is no import button.  Thanks!

    Yes, that appears how Mavericks works right now. However, you can open the Address Panel, select all your contacts, then click the To (or CC, or Bcc) buttons to move the selection to the address field.
    If it is not already in the Toolbar, right-click on the Toolbar and select Customize Toolbar…
    Then, drag the address panel up to wherever you want it.
    You may also want to add it to the New Message window in the same way.

  • How do I move music from iTunes to my iPhone? I have tried dragging and dropping and it doesn't work.

    I have tried dragging and dropping and have also tried creating a file called iPhone.

    Maybe you should read the manual:
    iPhone User Guide (For iOS 5.0 Software)
    If you want to drag and drop, then check the Manually manage music box. Otherwise sync your content.

  • Is there any way of dragging and dropping an iCal event showing in week view across to a date in the left sidebar monthly calendar?

    Hi, Im not a frequent forum poster, as most of my questions can be found already answered on them!
    This is a question Ive had for a long time and it amazes me that no-one else seems to ask it. I check at each OS upgrade but its never there...
    Is there any way of dragging and dropping an iCal event showing in week view across to a date in the left sidebar monthly calendar?
    I was able to do this years ago in MS Outlook, and utilized it all the time when I needed to push things back, now I have to open the event and select an new date in the drop-down calendar for each & every event I want to move to a new month at the end of the month.
    If its definitely not possible, how to you ask apple to consider including it - it doesnt seem like a particularly difficult task.
    Thankyou
    Andrew.

    Andrew,
    Is there any way of dragging and dropping an iCal event showing in week view across to a date in the left sidebar monthly calendar?
    No, but you can use cut/paste. Cut (⌘X) the event, then click on the week where you want to move the event, and Paste (⌘V).
    If you have a suggestion for Apple to change that method use: Apple - Mac OS X - Feedback.

  • Can i make a book in iPhoto without using any of the built in layout templates, which are too limiting when i have already cropped my pictures to show just what I want. Ideally I just want to drag and drop and arrange and size the pictures myself

    Can i make a book in iPhoto without using any of the built in layout templates, which are too limiting when i have already cropped my pictures to show just what I want. Ideally I just want to drag and drop and arrange and size the pictures myself

    If you have Pages you can create customs pages for your book as TD suggested. If you have Pages from iWork 09 or 11 this app will add 80 or so additional frames to those offered:  Frames and Strokes Installer. Don't use it on the latest Pages version, however.
    This tutorial shows how to create a custom page with the theme's background: iP11 - Creating a Custom Page, with the Theme's Background for an iPhoto Book.  Once the page is complete to get it into iPhoto as a jpeg file follow these steps:
    Here's how to get any file into iPhoto as a jpeg file:
    1 - open the file in any application that will open it.
    2 - type Command+P to start the print process.
    3  - click on the PDF button and select "Save PDF to iPhoto".
    NOTE:  If you don't have any of those options go to Toad's Cellar and download these two files:
    Save PDF to iPhoto 200 DPI.workflow.zip
    Save PDF to iPhoto 300 DPI.workflow.zip
    Unzip the files and place in the HD/Library/PDF Services folder and reboot.
    4 - select either of the files above (300 dip is used for photos to be included in a book that will be ordered).
    5 - in the window that comes up enter an album name or select an existing album and hit the Continue button.
    That will create a 200 or 300 dpi jpeg file of the item being printed and import it into iPhoto. For books to be printed choose 300 dpi.

  • Help needed in Drag and Drop and  resizing of image icons

    Hi all,
    I'm doing a project on Drag and Drop and resizing of image icons.
    There is one DragContainer in which i have loaded the image icons and i want to drop these image icons on to the DropContainer.
    After Dropping these icons on to the DropContainer i need to resize them.
    I have used the Rectangle object in resizing.
    The problem now i'm facing is when i drag, drop and resize an image icon and when i try to drag, drop a second image icon the first image icon gets erased.
    can any one help me in fixing this error.
    if u want i can provide the source code.
    thanks in advance
    murali

    the major restrictions in its implemented only in
    jdk1.1.Why!

  • Hi could someone help me please ? Ive just bought the new ipad and want to put some movies on it. I have already converted some movies using handbrake and tried to transfer them to my ipad and it just wont work. ive tried drag and drop and everything

    Hi could someone help me please ? Ive just bought the new ipad and want to put some movies on it. I have already converted some movies using handbrake and tried to transfer them to my ipad and it just wont work. ive tried drag and drop and everything

    bluztoo wrote:
    Haven't really used any of them including VLC - actually use netflix on the ipad more than anything. I was able to drop an mp4 into imovie on my ipad and see it there. This was something I had shot as avhcd and converted with turbo.264. Played fine. Probably not what you want for a movie player though.
    Well, turbo.264 is indeed very nice to have - even for converting full-sized movies. (Nevertheless, TechRadar's latest roundup (see http://www.techradar.com/news/software/applications/6-of-the-best-video-converte rs-for-mac-1074303 ; also linked from another roundup at http://www.iphonelife.com/blog/87/benchmark-excellent-multimedia-converter-handb rake-vs-commercial-apps ) has shown it's still worse than HandBrake in most respects.)
    All H.264 files (assuming they are H.264 level 4.1 or lower) are compatible with the built-in Videos app.
    bluztoo wrote:
    Those of you who use other players, what do you reccomend? Just curious.
    It entirely depends on your needs. The top players (AVPlayerHD / ProPlayer, It's Playing, GoodPlayer) all have different strengths and weaknesses. I myself use It's Playing the most as I convert everything into MP4 and simply love the DSP's (brightness / volume / saturation boosting). (Its software decoders are definitely worse than those of AVPlayerHD / ProPlayer; however, MP4's are played back from hardware.)

  • Track pad extremely sensitive in drag and drop and clicking

    Please help with a pad that's driving me nutz! Over sensitive in underlining, drag and drop and clicking. Is there any way to control sensitivity or do I have to take it to the Apple Store?
    Thanks!

    Hello there, salvarez1957.
    The following two Knowledge Base articles offer up some great steps for troubleshooting issues with trackpads:
    Portables and Magic Trackpad: Jumpy or erratic trackpad operation
    http://support.apple.com/kb/TS1449
    and
    Intel-based Mac notebooks: Troubleshooting unresponsive trackpad issues
    http://support.apple.com/kb/TS1248
    Thanks for reaching out to Apple Support Communities.
    Cheers,
    Pedro.

  • When I drag ANY JPEG into a new folder of ANY kind, I get an alias, not an original. And, when I drag aliases onto a  blank disk to burn it, I get burned aliases, NO originals. That's what I'm asking. How do you drag a JPEG and NOT get an alias?

    When I drag ANY JPEG into a new folder of ANY kind, I get an alias, not an original. And, when I drag aliases onto a  blank disk to burn it, I get burned aliases, NO originals. That's what I'm asking. How do you drag a JPEG and NOT get an alias?

    Finder Help describes how to move, copy etc.
    As well, Apple - Support - Discussions - Moving or Copying Files and ...

  • I just installed LR6.  I can't seem to move any photos between folders.  I drag and drop and  nothing happens.  No error

    I just installed LR6.  I can't seem to move any photos between folders.  I drag and drop and  nothing happens.  No error

    To open photos from Photos in Preview use the Media Browser. You do not need to have Photos open to use the photos inPreview.
    In Preview use the command "Flle > Open".
    The File Chooser dialog will open. Switch the file chooser to columns view and scroll down, until you see the Media section.
    Click the Photos view.
    Select the Photos app and click the disclosure triangle.

  • How to handling ecxeptions on alv and how to write subrotiens on scripts

    Hi abapers..
    tell me how to handle ecxeptions on ALV, and how many exceptions are there ,which exception i have to use.
    AND is it possible to write subrotiens on script, if it is possible tell to me how to write

    There are already enough Exceptions provided for ALV .
    yes you can write sub-routines in scripts , search SDN and you will get answer for the same

  • Making simple Cross desolves at the end of still photo clips from my library. Not making a clean disolve beteen. Single frames from the previous clip are flashing half way through the desolve. Did both a drag and drop and insert disolve.

    Making simple cross desolves at the end of still photo clips from my library.
    Not making a clean disolve between clips.
    Single frames from the previous clip are flashing half way through the desolve.
    Did both a drag and drop and insert disolve.

    Making simple cross desolves at the end of still photo clips from my library.
    Not making a clean disolve between clips.
    Single frames from the previous clip are flashing half way through the desolve.
    Did both a drag and drop and insert disolve.

  • How do I drag and drop an action onto a task flow?

    In How to pass View Object bind variable from ADF page John states that
    You should also consider dragging-and-dropping the executeWithParams operation on your task flow and wiring it to occur before your page instead of putting it in the page definition of the page itself - this way it is more clear what is happening, and is the recommended approach for 11g apps. When you drag-and-drop the operation, you can use the dialog to bind the parameter to your page-flow-scoped variable by supplying the proper EL there.
    How can I drag and drop the executeWithParams method onto a task flow. I am using 11.1.1.5.0 on LINUX?
    I'm presuming I a need a method action in my page flow.
    I have the following action defined in my page def file:
    <action IterBinding="localizedCustomerHierarchyViewIterator"
    id="executeQueryWithParamsForLocalizedCustomerHierarchyView"
    InstanceName="BusinessRulesAMDataControl.LocalizedCustomerHierarchyView"
    DataControl="BusinessRulesAMDataControl" RequiresUpdateModel="true"
    Action="executeWithParams">
    <NamedData NDName="RootEntityId"
    NDValue="#{pageFlowScope.recommendationRule.customerEntityId"
    NDType="java.lang.Long" NDOption="3"/>
    <NamedData NDName="Language"
    NDValue="#{pageFlowScope.recommendationRule.language}"
    NDType="java.lang.String" NDOption="3"/>
    </action>

    In summary, it appears you need the following artifacts in order to initialize a view object from parameters before rendering a .jsff view that relies on that view
    1) a method-call in task flow.xml file:
    <method-call id="executeWithParamsLocalizedCustomerHierarchyView">
    <method id="__5">#{bindings.executeWithParamsLocalizedCustomerHierarchyView.execute}</method>
    <outcome id="__12">
    <fixed-outcome id="__9">initializedLocalizedCustomerHierarchy</fixed-outcome>
    </outcome>
    </method-call>
    2) a control flow rule in the task flow .xml file whose source is (1) and whose destination is the view for which you want to intiialize a view object that supports an iterator that is bound to a list, tree, etc.
    3) an entry for the execute action in the databindings.cpx file
    <page path="/WEB-INF/[email protected]calizedCustomerHierarchyView"
    usageId="oracle_apps_br_view_RecommendationRulePFPageDef"/>
    4) the page def must be defined in the databindings.cpx file
    5) the page def needs to define action and iterator and list (or otherwise) that is used in UI.
    <iterator id="localizedCustomerHierarchyViewIterator"
    Binds="LocalizedCustomerHierarchyView"
    DataControl="BusinessRulesAMDataControl" RangeSize="25" Refresh="never">
    <sortCriteria>
    <sort attribute="Level" ascending="true"/>
    </sortCriteria>
    </iterator>
    <action IterBinding="localizedCustomerHierarchyViewIterator"
    id="executeWithParamsLocalizedCustomerHierarchyView"
    InstanceName="BusinessRulesAMDataControl.LocalizedCustomerHierarchyView"
    DataControl="BusinessRulesAMDataControl" RequiresUpdateModel="true"
    Action="executeWithParams">
    <NamedData NDName="RootEntityId"
    NDValue="#{pageFlowScope.recommendationRule.customerEntityId}"
    NDType="java.lang.Long"/>
    <NamedData NDName="Language"
    NDValue="#{pageFlowScope.recommendationRule.language}"
    NDType="java.lang.String"/>
    </action>
    <list ListOperMode="navigation"
    IterBinding="localizedCustomerHierarchyViewIterator"
    id="customerLocalizedEntityHierarchyList">
    <AttrNames>
    <Item Value="EntityName"/>
    </AttrNames>
    </list>
    6) a backing bean that provides the functions to initialize the parameters for execution
    The easiest way to get most of this is to drag the ExecuteWithParams from within the view in the datacontrols panel right onto the task flow diagram. The downside is that you are left with some pretty poorly named artifacts...
    Did I miss anything?
    -Klaus
    Edited by: klaus gross on Sep 29, 2011 1:00 PM

  • PPOME drag-and-drop and IT 0000 Actions

    Hi,
    Does anyone know if there is a way to customize PPOME, so that if a position changes org units via the drag-and-drop feature, an Infotype 0000 record would be created along with the Infotype 0001?  I notice there is a field T530-OM_USED that can be configured in V_T530_ALL, that seems to be designed for this.  However I've tried that and it doesn't work.  Wondering if anyone has used this field, or knows of BADI's or user exits that can be used to extend PPOME for something like this?
    Thanks for any advice.
    Brenda

    Thanks for response.  What I'm asking is, where I can I add custom code or configuration that will create the action/reason I want once PPOME is saved.  If I was changing something on a PA infotype and wanted to update OM as a result, I could do that in a user exit.  Is there any equivalent that could update PA based on changes made in PPOME?

Maybe you are looking for

  • Replying to Meeting Requests (Calendar)

    In regard to Calendar on the iPod/iPhone/iPad: Is there any way to Decline a meeting request and Edit the reply so that you can explain WHY you're declining the meeting? I know you send a separate reply but whenever I click Decline, it immediately se

  • Problem(!?) with SIP VIA Field

    Hello, i'm trying to create a OK message in my Class, which implements the javax.sip.SipListener. In the sip header exists only one Via-Field with 2 via-entries one after the other, splitted with "," . Wireshark shows this as follow: Via: SIP/2.0/UDP

  • CS3 Graphic styles frustration

    Graphic styles in CS3; I've defined several graphic styles and saved them in a library. Once imported into a new document or make a template doc with style already there. Drawing lines in a layer:  clicking the graphic style i want and draw a line, s

  • Safari Mountain Lion keeps on quitting when opened

    Hey everybody Last night I was using the new Safari from Mountain Lion and it suddenly closed. So I opened it again and it closed again. And since then it keeps on doing the same thing over and over I can't use Safari now. This is the report that I g

  • Smartform Graphic Probelm

    hi, how to transfer graphics uploaded via tcode OAAD(archive link) into SE78 for display in smartform.. can we display graphics uploaded via archive link direclty on smartform.. <removed_by_moderator> Edited by: abapuser on Nov 11, 2008 10:59 AM Edit