Cloudgarden's Discussion Board
Forums: Search: Several forums are available for people to post questions/comments about Java Speech or any of the CloudGarden products. As more messages are posted this discussion board should provide a useful, searchable, support database.
o AliceTalker (42)
o JSAPI Projects (69)
o Java Speech API (857)
o Jigloo GUI Builder for Eclipse (3322)
o SwingScroller (0)
o US Election 2004 (3)
Searches text and subject fields in all forums. The search matches as many words as possible. Don't use "AND" or "OR".
Latest "Jigloo GUI Builder for Eclipse" Topics [ Start new "Jigloo GUI Builder for Eclipse" Topic  ]

Cloudgarden Discussion Board  
This topic has 0 replies.       [ << Previous Topic | Start of Thread | >> Next Topic ]
SWTResourceManager.getImage: Error getting image
Author: shay2
06/26/12 02:55 Reply
can't load image from my src folder.
i get this error
SWTResourceManager.getImage: Error getting image science-fiction.jpg, java.lang.IllegalArgumentException: Argument cannot be null


     private void initGUI() {
          try {
               FormLayout thisLayout = new FormLayout();
               this.setLayout(thisLayout);
               this.setSize(423, 266);
               this.setBackgroundImage(SWTResourceManager.getImage("science-fiction.jpg"));

               {
                    button4 = new Button(this, SWT.PUSH | SWT.CENTER);
                    FormData button4LData = new FormData();
                    button4LData.left = new FormAttachment(0, 1000, 351);
                    button4LData.top = new FormAttachment(0, 1000, 230);
                    button4LData.width = 60;
                    button4LData.height = 24;
                    button4.setLayoutData(button4LData);
                    button4.setText("About");
                    }