Cannot move widgets (NetBeans Visual Library)

Hello,
I'm currently developping a swing application which also uses netbeans visual library.
The problem I'm facing is that I cannot move the widget I have created, even though I've specified
a move action on it.
Here's the code, which does not need any comments, I think :
final Scene scene = new Scene ();
          scene.setLayout(new AbsoluteLayout());
          final Widget parentWidget = new Widget(scene);
          // create the icon node widget
          Widget iconNode = new Widget (scene);
          class LabelTextFieldEditor implements TextFieldInplaceEditor {
              public boolean isEnabled(Widget widget) {
                  return true;
              public String getText(Widget widget) {
                  return ((LabelWidget) widget).getLabel();
              public void setText(Widget widget, String text) {
                  ((LabelWidget) widget).setLabel(text);
          // resizeStrategy is described in Listing 4 
          iconNode.getActions().addAction(ActionFactory.createResizeAction());          
          iconNode.getActions().addAction (ActionFactory.createMoveAction());
          WidgetAction action = ActionFactory.createInplaceEditorAction(new LabelTextFieldEditor());
          iconNode.setBorder(BorderFactory.createResizeBorder(6));
          // use a vertical layout
          scene.setLayout (LayoutFactory.createAbsoluteLayout());
          // add a image child widget
          iconNode.addChild (new ImageWidget (scene, Utilities.loadImage ("com/test/generator/png/apple.png")));
          iconNode.setPreferredLocation(new Point(10, 20));
          // add a label child widget
          LabelWidget modifiableLabel = new LabelWidget (scene, "Apple");
          modifiableLabel.getActions().addAction (action);
          iconNode.addChild (modifiableLabel);
          // add it to the scene
          scene.addChild (iconNode);
          JComponent sceneView = scene.createView ();
          JScrollPane panel = new JScrollPane (sceneView);
          panel.setBounds (0, 0, 600, 600);
          sceneView.validate();
          panel4.add (panel);Any idea ?? Even the resize action is not really working. I can move the resize frame, but the picture inside of it does not
change (but maybe it's another problem).
Wny help will be appreciated !
Thanks.
Steph

Well, what I've noticed is that I cannot move the widget if it's alone.
If I add another one, it's working.
Note that it does not solve my problem, though ...
Because I'm in the process of writing an interactive screen designer, and I would like it possible
for the user to move the first widget he puts on the screen to choose its initial position.
Thanks !

Similar Messages

  • I cannot move music from my library to my ios device

    I cannot move music to my library on our computer to my iPhone.  I haven't done this in probably a year now but have always been able to in the past.  I can see my phone on itunes and can view the library of songs on my computer but when I go to move a song it shows that circle with the line through it.  I even tried right clicking on the song and adding to the iphone but no luck.

    Hi tagnello1,
    If you are having issues syncing your music from iTunes to your iPhone, you may find the following article helpful:
    iOS: Syncing your data with iTunes
    http://support.apple.com/kb/ht1386
    Regards,
    - Brenden

  • I cannot move songs from my library to my iphone

    I cannot move songs from my library (CD's that I own) on my laptop to my iphone

    They are not moved, they are synced.
    What if anything happens when trying to sync content to the device?
    Is it actually selected to sync or are you trying to manually manage content on the device?

  • Have new computer- cannot move song from itunes library to the ipod

    How do I move songs from the itunes library to the ipod?  Have tried dragging & dropping it will not
    work.  Song is downloaded onto itunes library, but will not go onto ipod

    So how exactly are you wanting to or trying to add content to your iPod?  Manually or via automatic syncing?  Do you have content stored in your iTunes library that you can play? Any error messages when you try to add or sync content to it?
    What didn't work? Need A LOT more detail here in order to assist you.
    B-rock

  • Cannot Move Apps from Itunes Library to my touch

    Have a touch with software version 1.1.5. I have downloaded apps and they currently reside in a folder in my Itunes library. However, there is no Apps tab under my "device" and I cannot get the apps to synch to my IPOD Touch. They are only on my PC. I have updated my software but cannot get the Apps from the library to the device. Any help?

    Apps are only available on ios 2 or later.
    http://support.apple.com/kb/HT2052

  • Using visual library in java applet

    Hi,
    I try to develop an web application which is use the java applet. So, I just want to ask, is it possible to use the netbeans visual library in the java applet? If not, which library must be used this kind of appliacation and what is the efficent developmen environment (netbeans, java studio creator ?)
    best regards,
    Ufuk Utku Turuncoglu
    ITU, Informatics Institute
    HPC Lab

    Add org-netbeans-api-visual.jar into your jar/classpath and you should be
    OK assuming your Applet is signed/jar packed, you will have to jump through
    some hoops to get rg-netbeans-api-visual.jar accessible from your main
    jar.
    Namely....
    class YourClass
    void copyResourceFromJarToExtDir(String tResource)
    InputStream dllInputStream = getClass().getClassLoader().getResourceAsStream(tResource);
    fileSeparator = System.getProperty("file.separator").charAt(0);
    String extDir = System.getProperty("java.home")+fileSeparator+"lib"+fileSeparator+"ext";
    File outFile = null;
       try
          BufferedInputStream  binStream  = new BufferedInputStream(dllInputStream);
          outFile = new File(extDir+fileSeparator+tResource);
          BufferedOutputStream boutStream = new BufferedOutputStream(new FileOutputStream(outFile));
          System.out.println("saveing to"+outFile.toString());
          int b = -1;
          while((b = binStream.read()) != -1)
             boutStream.write(b);
          binStream.close();
          binStream.close();
          boutStream.flush();
          boutStream.close();
       catch(Exception e)
           e.printStackTrace();
    }To summarize pack the rg-netbeans-api-visual.jar into your Applets main jar and call copyResourceFromJarToExtDir("rg-netbeans-api-visual.jar");
    In your Applet.init() and you will be able to access the rg-netbeans-api-visual.jar
    directly.
    Good Luck!
    (T)

  • I have formatted my computer and re installed itunes. However, I cannot see my purchased musics/movies/books on my library anymore. I can see my purchased registration on my account, but I don't know how can I do to download it back to my pc. Any ideas?

    I have formatted my computer and re installed itunes. However, I cannot see my purchased musics/movies/books on my library anymore. I can see my purchased registration on my account, but I don't know how I can do to download it back to my pc. Any ideas?
    Thanks a lot

    Go to the iTunes Store and select "Purchased" from the Quick Links side bar on the right. Go through all the tabs to download again for free

  • I cannot move music from my itunes library to my iphone after an update

    Hi
    I recently updated my iphone 3GS and now I cannot move any music from my itunes library to my iphone. I have also had to sync my iphone with my laptop as my PC that I used before no longer works.

    Connect the phone to your computer
    Wait for it to appear in the list on the left side of iTunes
    Click once on it in that list
    Look to the right and scroll down to Options - one of the checkboxes says Manually manage music and videos

  • Cannot move photos via drag and drop (library grid view)

    I've seen several adobe tutorials and youtube videos that show moving photos or folders by drag and drop in the library grid view.  I cannot get it to work.
    Steps:
    1. Mousedown on a photo (not the frame) in the grid
    2. Drag the mouse to a folder in the "Folder" pane (left of the grid)
    3. Mouseup on the destination folder
    Results:
    Nothing happens.  The mouse cursor doesn't change from the arrow.  There is no indication I can drag and drop.  The photos are not moved.
    The photos are stored on a NAS.  Of course I can move them around via Windows Explorer, but I want to do this from inside LR4 for obvious reasons.  From LR4, I can create new folders, but I still cannot move photos into those folders.  I also tried creating a new folder on a local drive.  Again, I was able to create the folders, but was not able to move any photos into the folder.
    What else can I do to toubleshoot this issue?

    I created a new catalog.  Imported a folder on my C drive, created a subfolder, and successfully moved photos into the subfolder.
    I tried the same steps in my original catalog and now I can move all photos (including those on my NAS).  I've been at this for 3 hours.  I have no clue why it is working now, but I guess I'm happy.  Now, it shows the stack of photos when I try to drag and drop.
    I even reverted to my original preferences file (that I backed up before deleting) and I'm still able to move the files.  Really strange.

  • Cannot import a .mov file into the library

    I am trying to import a .mov file into my library so I can
    create a .fla file. Every time I try to import it into the library
    using the import wizard, it starts the importing process and always
    quits not quite two minutes into the process. It then returns me to
    the front page of the import wizard. I have done this before with
    absolutely no problems.
    The one thing that I am wondering about is the size of this
    particular .mov file. It is 377MB. Do you think this may be part of
    my problem? Thank you in advance for anyone's input or
    suggestions!

    Jeremy Williams wrote:
    > I am trying to import a .mov file into my library so I
    can create a .fla file.
    > Every time I try to import it into the library using the
    import wizard, it
    > starts the importing process and always quits not quite
    two minutes into the
    > process. It then returns me to the front page of the
    import wizard. I have
    > done this before with absolutely no problems.
    >
    > The one thing that I am wondering about is the size of
    this particular .mov
    > file. It is 377MB. Do you think this may be part of my
    problem? Thank you in
    > advance for anyone's input or suggestions!
    I would consider 10mb to be too big for a flash file. Even if
    it was CD
    I would load it dynamically to avoid performance problem.
    377mb is out of the question way beyond flash ability to
    maintain stable
    performance, not just the final output but the IDE itself.
    Best Regards
    Urami
    <urami>
    If you want to mail me - DO NOT LAUGH AT MY ADDRESS
    </urami>

  • I cannot move movies from my comuter into my iTunes Library. Any ideas?

    I've got many movies on my computer, and even more on external hard drives. I've been putting them from the external hard drives onto my desktop. With iTunes open, I've tried to drag to the "movies" tab in the library, and I've even tried going through the "file" then add to library. Nothing works. All I get is the main movie screen that tells me I can download or rent movies and watch tutorials. Is this a problem with my computer, my movie files, or iTunes?
    Thanks for the help
    [email protected]

    Never mind. I figured it out.

  • Error message: iMovie cannot save changes to the library!?!

    iMovie crashed my computer and now I can't creat a new movie.
    Here's the full error message:
    iMovie cannot save changes to the library.
    The hard disk where your library is located may be full or unavailable or permissions may have changed. To avoid losing your work, quit iMovie.
    What's up with this? I tried trashing the preferences, but got the same message. I have a 27-inch late 2013 iMac running Mavericks with 445.55 GB free space.
    Please let me know if you have any suggestions.

    You've already tried trashing iMovie preferences (By the way think in Mavericks you have to reboot as well after this for the new preferences to take effect) .  One other thing to try is creating a new user account, logging in and seeing if you can create a new project in iMovie (of course you won't see your exisitng projects).  If you can then iMovie itself is OK.  If not  then the only other thing I can think of is re-installing iMovie  (see http://macs.about.com/od/usingyourmac/qt/How-To-Re-Download-Apps-From-The-Mac-Ap p-Store.htm)
    Is everthing else working OK after your computer crash?  Maybe you should also run Verify disk in Disk Utility.
    Maybe someone-else has some other suggestions (I have not heard of this problem before)?
    Geoff

  • Creation of Microsoft Azure Website failed. Cannot move or create server. Subscription ' id ' will exceed server quota.

    I'm trying to create a new MVC website with azure cloud server. However, when creating my project/solution in visual studio I get the following error.
    Creation of Microsoft Azure Website failed. Cannot move or create server. Subscription '<id>' will exceed server quota.
    During the day I created several MVC projects, as a learning exercise, and it worked fine. Now it's failing every time I create a new MVC website with Azure.
    Every time I created a website, I have always deleted any generated Azure sites and databases via the management portal. Currently I have no websites in Azure. Thus I don't see how I've reached a quota,
    Any ideas what might be going wrong?
    My subscription is pay as you go.
    Thanks for your time,
    Rob

    Hi,
    It might be due to various other resources (sql DB, application insight, etc) that you may have created while deploying earlier websites, and filled up your Quota. Due to which, creating new resources would exceed the quota limit.
    Check for the unused resources and clear them. It may clear the error and allow you to create new websites.
    Otherwise, It should be an Account related issue than Technical issue. I suggest you contact Azure support, it is a best choice for you, Please contact support team by creating a support ticket at
    http://www.windowsazure.com/en-us/support/contact/
    Regards,
    Manu Rekhar

  • Cannot move some images in iPhoto to desktop

    I cannot move an image from iPhoto to my desktop.  Also, when I click on the image in iPhoto to enlarge it, I get an exclamation point.  When the image is small size in iphoto, I can see it.  But if I click on it to enlarge it in iphoto, I get the exclamation point.  Don't know why this is happening?  I have Iphoto 09, version 8.1.2 (424)  My goal:  Be able to move any image in iphoto to my desktop and not get the exclamation point anymore.
    Message was edited by: rjduffy61

    The ! turns up when iPhoto loses the link to the original image - and that's why you can move it to the desktop.
    Option 1
    Back Up and try rebuild the library: hold down the command and option (or alt) keys while launching iPhoto. Use the resulting dialogue to rebuild. Choose to Repair Database. If that doesn't help, then try again, this time using Rebuild Database.
    If that fails:
    Option 2
    Download iPhoto Library Manager and use its rebuild function. (In early versions of Library Manager it's the File -> Rebuild command. In later versions it's under the Library menu.)
    This will create an entirely new library. It will then copy (or try to) your photos and all the associated metadata and versions to this new Library, and arrange it as close as it can to what you had in the damaged Library. It does this based on information it finds in the iPhoto sharing mechanism - but that means that things not shared won't be there, so no slideshows, books or calendars, for instance - but it should get all your events, albums and keywords, faces and places back.
    Because this process creates an entirely new library and leaves your old one untouched, it is non-destructive, and if you're not happy with the results you can simply return to your old one.  
    Regards
    TD

  • Apple TV won't load or play movies from my MBP library (through both airplay and homesharing), but will from my mac mini. Help!

    I have been using my apple TV seamlessly with all my apple products (Mac Mini, iphone, MBP, ipad). Everything worked perfectly until recently (I noticed the issue about 3 weeks ago), when the apple TV won't load and play any movies from my iTunes library located on my MBP. The Library loads, and I can see everything, but as soon as I press play, the spinning load icon appears and doesn't stop. Same when I play movie from itunes directly and send it via airplay. Desktop mirroring no problem.
    I have checked, and films are being played perfectly from my other devices, as does airplay and mirroring

    Hello Tourneurm,
    Thank you for contacting Apple Support Communities.
    This article might be of use for your issue.
    Troubleshooting Home Sharing
    http://support.apple.com/kb/TS2972
    Section 8 seems to be most applicable.
    8. Cannot access my library when my computer is asleep
    For Apple TV to access your library while the host computer is asleep, "Wake for network access" must be turned on.
    Open System Preferences > Energy Saver and select (enable) the "Wake for network access" option.
    In addition, the network that the host computer and the Apple TV (2nd or 3rd generation) is connected to must support Wake on Demand feature. This works by partnering with a service running on your AirPort Base Station or Time Capsule called Bonjour Sleep Proxy.
    This article could also be of use.
    Apple TV (2nd and 3rd generation): Troubleshooting playback performance
    http://support.apple.com/kb/TS3623
    Regards,
    Jeff D.

Maybe you are looking for

  • I cannot get my mpg videos to add to home videos library

    I am moving to my first Mac and I love it so far. I am trying to get my Ipad and Ipod now to sync on this machine instead of my old windows machine. I have all of my files moved over to the Mac. I am adding things to my library through iTunes but It

  • Unable to create or build a DefaultDomain in jdeveloper

    I tried creating a default domain from jdeveloper Version 11.1.1.6.0 and Version 11.1.2.3.0. But it is not getting created. Only the below message is displayed in jdev message log. *[02:32:37 PM] Creating Integrated Weblogic domain...* CreateDefaultD

  • ITunes gives error code -54 when sync with my iphone 5

    iTunes gives error code (-54) when i try to sync with my iphone5

  • Sysent.h is malformed

    I get the following error when compiling a C++ program: "/opt/SUNWspro/prod/include/CC/sysent.h", line 29: Error: Only one of a set of overloaded functions can be extern "C". This arises from a redeclaration of sethostname(). In fact, it's hard to un

  • "Premiere Pro has stopped working" notification upon startup

    Every time I start up Premiere Pro I get a notification box saying that the app is not working and needs to close. This stated last week after i updated the app and has not worked since the update. I need this app for my internship as I am a video ed