View Single Post
Old 05-23-2007, 04:28 PM   #14
scotty1024
Banned
scotty1024 is no ebook tyro.scotty1024 is no ebook tyro.scotty1024 is no ebook tyro.scotty1024 is no ebook tyro.scotty1024 is no ebook tyro.scotty1024 is no ebook tyro.scotty1024 is no ebook tyro.scotty1024 is no ebook tyro.scotty1024 is no ebook tyro.scotty1024 is no ebook tyro.
 
Posts: 1,300
Karma: 1479
Join Date: Jul 2006
Location: Peoples Republic of Washington
Device: Reader / iPhone / Librie / Kindle
Version 0.2 now features check boxes

How about some check boxes?

This kit has java.awt.Checkbox and java.awt.CheckboxGroup.

Yes, very simple rendering but they're light weight widgets. But you do get circles for radio buttons and squares for checkboxes!

Don't forget, as with the other widgets, screen refresh is delegated to your ItemListener...

Code:
    public void itemStateChanged(ItemEvent event) {
        Checkbox cb = (Checkbox)event.getSource();
        cb.repaint();
        DisplayControl.quickRefresh();
    }
Attached Thumbnails
Click image for larger version

Name:	checkbox.png
Views:	519
Size:	32.1 KB
ID:	3633  
Attached Files
File Type: zip widgets-0.2.zip (11.4 KB, 458 views)
scotty1024 is offline   Reply With Quote