|
|
Set the icon of JButton
Hello.
How can I set the icon of JButton ?
Thanks :)
|
|
0
|
|
|
|
Reply
|
no_spam_please4 (116)
|
5/10/2008 9:38:42 PM |
|
Mr. X. wrote:
> How can I set the icon of JButton ?
If you skim the JavaDocs for JButton then I am sure
that setIcon will appear "tasty".
Arne
|
|
0
|
|
|
|
Reply
|
arne6 (9487)
|
5/10/2008 9:47:38 PM
|
|
Mr. X. wrote:
> Hello.
>
> How can I set the icon of JButton ?
>
> Thanks :)
>
>
I suggest you download a copy of the docs.
--
Knute Johnson
email s/nospam/linux/
--
Posted via NewsDemon.com - Premium Uncensored Newsgroup Service
------->>>>>>http://www.NewsDem
|
|
0
|
|
|
|
Reply
|
nospam8071 (917)
|
5/10/2008 9:50:06 PM
|
|
Mr. X. wrote:
> Hello.
>
> How can I set the icon of JButton ?
>
> Thanks :)
>
>
The answers to both of your questions are available at:
http://java.sun.com/javase/6/docs/api/
--
Dave Miller
Java Web Hosting at:
http://www.cheap-jsp-hosting.com/
|
|
0
|
|
|
|
Reply
|
dave5719 (13)
|
5/10/2008 9:57:58 PM
|
|
Arne Vajh�j wrote:
> Mr. X. wrote:
> > How can I set the icon of JButton ?
>
> If you skim the JavaDocs for JButton then I am sure
> that setIcon will appear "tasty".
>
> Arne
Also Suns own Java tutorial,
<http://java.sun.com/docs/books/tutorial/uiswing/components/button.html>
--
Sabine Dinis Blochberger
Op3racional
www.op3racional.eu
|
|
0
|
|
|
|
Reply
|
no.spam6050 (307)
|
5/13/2008 9:22:41 AM
|
|
Thanks all.
Basic things didn't work well,
since I had a wrong gif formatted file.
I got a good gif file, and things goes better.
: )
"Dave Miller" <dave@spambox.com> wrote in message
news:GToVj.3118$5b3.1650@trnddc05...
> Mr. X. wrote:
>> Hello.
>>
>> How can I set the icon of JButton ?
>>
>> Thanks :)
> The answers to both of your questions are available at:
>
> http://java.sun.com/javase/6/docs/api/
>
> --
> Dave Miller
> Java Web Hosting at:
> http://www.cheap-jsp-hosting.com/
|
|
0
|
|
|
|
Reply
|
no_spam_please4 (116)
|
5/14/2008 1:10:05 PM
|
|
On Sun, 11 May 2008 00:38:42 +0300, "Mr. X."
<no_spam_please@nospam_please.com> wrote, quoted or indirectly quoted
someone who said :
>
>How can I set the icon of JButton ?
see http://mindprod.com/jgloss/jbutton.html
--
Roedy Green Canadian Mind Products
The Java Glossary
http://mindprod.com
|
|
0
|
|
|
|
Reply
|
see_website (4858)
|
5/14/2008 3:18:45 PM
|
|
|
6 Replies
21 Views
(page loaded in 0.13 seconds)
Similiar Articles: Buttons with rounded edges - comp.lang.java.guiyou could use a transparent icon. see http://mindprod.com/jgloss/jbutton.html -- Canadian Mind ... RoundRectangle2D could help you. you can also use it to set the ... Open new JPanel (JFrame, ...) by clicking JButton - comp.lang.java ...Next a JButton to click to set the number in ... class TableGrid extends JPanel { > > =A0 =A0 ... It's an extended JFrame with a JTextField in the SOUTH ... image file ... JTable Problem - values not set when clicked on button - comp.lang ...However if the user doesn't press enter to set the ... JTextfield and JButton in a cell of JTable - comp.lang ... using gui slider to display 3d image stack - comp.soft ... How to disable maximum&minimum icon on the jframe - comp.lang.java ...How can i disable maximum and minimum icon on the jFrame? ... Component comp) { if (comp instanceof JButton ... How to fit a maximum area ellipse inside of a data set ... button columns - comp.lang.java.gui... BoxLayout.Y_AXIS)); buttonPanel.add(new JButton ... In your sample program replace the lines that set the ... column that can display text, and it also has an image ... How to bring a JPanel to the front - comp.lang.java.guiOpen new JPanel (JFrame, ...) by clicking JButton - comp ... to the front - comp.lang.java.gui How to put the image ... If you mean the xticlabels, you can say set tics front ... Need time waster code or something. - comp.lang.java.gui ...I'm trying to "flash" a button, by changing its icon ... runButton; private JButton exitButton; private JButton ... form this ... was exceeded and you may want to set I to ... Make a simple 4 row by 4 column scratch pad. - comp.lang.java.help ...Next a JButton to click to set the number in place on the drawing. John: Beautiful looking ... that you helped me with, that is, making sub images out of a larger image. show JFrame as if a dialog - comp.lang.java.gui... O for Java http://reader.imagero.com Java image reader ... Open new JPanel (JFrame, ...) by clicking JButton - comp ... JOptionPane behind the Window which is set to be ... Java GUI panel size and resizing issues... - comp.lang.java.gui ...Further, is there a way to set panel and image widths to be a percentage of the width of ... In center there' s a JPanel with a GridLayout. In each cell I have a Jbutton. Adding an Icon to a JButton Component | Example DepotIf the action used to create the button contains an icon, the button will be created using that icon. The icon will appear to the left of the text; to change the icon ... JButton (Java 2 Platform SE v1.4.2)Creates a button with no set text or icon. JButton(Action a) Creates a button where properties are taken from the Action supplied. JButton(Icon icon) 6/26/2012 12:41:49 PM
|
|
|
|
|
|
|
|
|