|
|||||||
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
#1 |
|
Member (9 bit)
Join Date: Nov 2004
Location: Flint, MI
Posts: 256
|
Q's on Extending JButton
I have this class entitled Cube and it extends JButton, but being new to programming, especially OOP, when I declare a Cube, how would I go about displaying a JButton, with the text/caption and all? Should I put anything special in the constructor?
In the object class: public class Cube extends JButton { ... } In the client: Cube cube1 = new Cube(); I have used JButton's alot but have never extended them, and then tried to declare one. Greatly Appreciated, ^fo |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|