Go Back   PCMech Forums > Help & Discussion > Web Design / Development

Need Some Help? Type Your Keywords Here:

Reply
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Old 05-27-2005, 04:15 PM   #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
foolishone is offline   Reply With Quote
Reply

Bookmarks

Still Need Help? Type Your Keywords Here:


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 On
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 07:24 AM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
SEO by vBSEO 3.6.0 PL2