wood burning stoves 2.0*
The moose likes Java Micro Edition and the fly likes tabpage Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Mobile » Java Micro Edition
Bookmark "tabpage" Watch "tabpage" New topic
Author

tabpage

Henk Rog
Ranch Hand

Joined: Dec 04, 2003
Posts: 36
Hi, I'm totally new to J2ME. Can somebody give me an example on how to make a tabpage?
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17250
    
    6

Well, there isn't a Tabpage class in J2ME. You could always try to create one from scratch, but how will a user select the tabs, why would you just use a menu to allow them to switch between "Pages".
To create one from scratch you would have to create a class that extends Item, then useing a Graphics class draw your tabs, and how it looks. I think.
Good Luck. But I highly suggest having a menu instead.
Mark


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
Henk Rog
Ranch Hand

Joined: Dec 04, 2003
Posts: 36
how will a user select the tabs

I'm making an application for a handheld device with touchscreen, so I guess selecting the tabs will not be a problem.
Henk Rog
Ranch Hand

Joined: Dec 04, 2003
Posts: 36
An example on how to do this would be helpfull, but I can't find anything good on the internet.
Sathya Srinivasan
Ranch Hand

Joined: Jan 29, 2002
Posts: 379
If you are using a touchscreen device (like a PDA), then you might probably want to explore the CDC package or other J2ME packages rather than MIDP and CLDC since these APIs are more restrictive as they are meant to be generic.
For example, you might find Tab support in CDC library (although not sure).


Cheers, Sathya Srinivasan - SCJP 1.2, SCWCD 1.2, SCMAD 1.0
Co-Author of Whizlabs SCMAD Certification Exam Simulator and SCMAD Exam Guide Book
 
Don't get me started about those stupid light bulbs.
 
subject: tabpage