Article View: borland.public.jbuilder.java.swing
Article #9969Please help - icon/toolbar problem
From: John Norgaard
Date: Wed, 01 Dec 1999 00:00
Date: Wed, 01 Dec 1999 00:00
38 lines
2158 bytes
2158 bytes
Hello,
I'm a student and is trying to build an application with Jbuilder for the
first time. Jbuilder has automatically
build the drop-down menu and the toolbar. I would like to have buttons with
images on, but for some
reason I just can't figure out Jbuilder won't show my images - they are all
size 32 x 32. I have changed
both image-names and image-labels and added the gif-files to the project.
But nothing helps.
I have to finish the project by 16 dec. and struggle to meet the deadline.
Hope that someone out there
can be my lifesafe. - Isn't there a Jbuilder faq list anywhere? - We use
Jbuilder client/server version. -
Please see the code below. Jbuilder has made changes anywhere changes could
be made in the source
code as you can see in the code below. And the gif-files are placed in the
same directory where Jbuilder
puts the 3 icons when it automatically builds the toolbar.
John
toolBar.setLabels(new String[] {"Funktioner", "Vedligeholdelse",
"Rapporter", "Afslut"});
toolBar.setButtonOrientation(borland.jbcl.util.Orientation.HORIZONTAL);
toolBar.setImageBase("image");
toolBar.setImageNames(new String[] {"vedligeholdelse.gif",
"funktioner.gif", "rapporter.gif", "afslut.gif"});
bevelPanel1.setLayout(xYLayout2);
menuFile.add(menuFileExit);
menuHelp.add(menuHelpAbout);
menuBar1.add(menuFile);
menuBar1.add(menuHelp);
this.setMenuBar(menuBar1);
this.add(toolBar, BorderLayout.NORTH);
this.add(statusBar, BorderLayout.SOUTH);
this.add(bevelPanel1, BorderLayout.CENTER);
Technical Details
Message-ID:
<Sac14.444$E4.26700@news010.image.dk>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111d45,369a06de39987f6d,start X-Google-Attributes: gid111d45,public From: "John Norgaard" <norgaard@12move.dk> Subject: Please help - icon/toolbar problem Date: 1999/12/01 Message-ID: <Sac14.444$E4.26700@news010.image.dk> X-Deja-AN: 555552247 X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3155.0 X-Complaints-To: news-abuse@wol.dk X-Trace: news010.image.dk 944066354 212.54.84.37 (Wed, 01 Dec 1999 17:39:14 MET) NNTP-Posting-Date: Wed, 01 Dec 1999 17:39:14 MET Newsgroups: borland.public.jbuilder.java.swing