DZone Forums
Go Back   DZone Forums > Community > Tools & IDEs > NetBeans
Reload this Page EltimaJ Image Field problem
Notices
Reply
 
LinkBack Thread Tools Display Modes
  (#1 (permalink)) Old
Member
 
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Join Date: Jul 2009
Default EltimaJ Image Field problem - 08-20-2009, 11:00 AM

I am developing a Netbeans RCP application and using additional EltimaJ components. My problem is with the ELImageField component. I use it in an Editor and although it instantiates, it will not load the intended image:

eLImageField1 = new ELImageField(new ImageIcon("c:/photos/file1.jpg"));

I can manapulate the component and load images via its file selector once I open the editor and if I use the same code in a plain Java application, all works fine.

Any thoughts?
Reply With Quote
  (#2 (permalink)) Old
Member
 
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Join Date: Jul 2009
Default Problem fixed - 08-24-2009, 05:07 AM

I resolved the problem. The image field had been instantiated in the initComponents() method by default. So when I re-instantiated the image field in my own method, I got a different object! I was suprised the compiler did not complain.
Reply With Quote
Reply

Tags
eltimaj, images, netbeans rcp

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
dragging an image with SWT/JFace bayval Eclipse 1 06-11-2009 02:20 AM
Inserting checkbox values into one field ebosysindia .NET 0 05-08-2009 12:20 AM
Set Background Picture for the Editor field Detschie Java 0 04-24-2009 09:35 AM
Shortcut image svdnstee Java 3 01-22-2009 07:48 AM
.Raw Image display mcmmoreira Java 1 09-23-2008 08:22 AM


Copyright 1997-2009, DZone, Inc.
vBulletin Skin developed by: vBStyles.com