11 Replies - 3155 Views - Last Post: 17 June 2011 - 08:15 AM

#1 adethusares  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 6
  • Joined: 17-June 11

how to add buttons for touch phones in netbeans?

Posted 17 June 2011 - 07:44 AM

how to add buttons for touch phones in netbeans?
Is This A Good Question/Topic? 0
  • +

Replies To: how to add buttons for touch phones in netbeans?

#2 macosxnerd101  Icon User is online

  • Self-Trained Economist
  • member icon




Reputation: 10477
  • View blog
  • Posts: 38,840
  • Joined: 27-December 08

Re: how to add buttons for touch phones in netbeans?

Posted 17 June 2011 - 07:47 AM

Just like you would if you weren't dealing with touch phones. Java doesn't care if the phone has a touch-screen or not. Clicks will still be registered appropriately b/c that's what the phone relays to Java.

One way to add a button would be to add Commands to a Form, then setCurrent() on the display to that Form.
Was This Post Helpful? 0
  • +
  • -

#3 adethusares  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 6
  • Joined: 17-June 11

Re: how to add buttons for touch phones in netbeans?

Posted 17 June 2011 - 07:50 AM

but there's no default buttons to add in netbeans,
Was This Post Helpful? 0
  • +
  • -

#4 macosxnerd101  Icon User is online

  • Self-Trained Economist
  • member icon




Reputation: 10477
  • View blog
  • Posts: 38,840
  • Joined: 27-December 08

Re: how to add buttons for touch phones in netbeans?

Posted 17 June 2011 - 07:54 AM

There is no Button object in Java ME. Check out the documentation for a list of GUI Components.

Also, when you say you are trying to "add a Button in NetBeans," I hope you are coding this by hand rather than using the visual GUI Builder. The GUI Builder produces horrid code, and it is really better to write all your code by hand. :)
Was This Post Helpful? 0
  • +
  • -

#5 adethusares  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 6
  • Joined: 17-June 11

Re: how to add buttons for touch phones in netbeans?

Posted 17 June 2011 - 07:59 AM

but how will i start to code? is there some tutorials?
Was This Post Helpful? 0
  • +
  • -

#6 macosxnerd101  Icon User is online

  • Self-Trained Economist
  • member icon




Reputation: 10477
  • View blog
  • Posts: 38,840
  • Joined: 27-December 08

Re: how to add buttons for touch phones in netbeans?

Posted 17 June 2011 - 08:01 AM

The Oracle site is a good place to start, and we have some tutorials in the J2ME tutorials section.
Was This Post Helpful? 0
  • +
  • -

#7 adethusares  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 6
  • Joined: 17-June 11

Re: how to add buttons for touch phones in netbeans?

Posted 17 June 2011 - 08:05 AM

but i'm using netbeans for a mobile application that should be implemented in a touch phone? is oracle close to netbeans?
Was This Post Helpful? 0
  • +
  • -

#8 macosxnerd101  Icon User is online

  • Self-Trained Economist
  • member icon




Reputation: 10477
  • View blog
  • Posts: 38,840
  • Joined: 27-December 08

Re: how to add buttons for touch phones in netbeans?

Posted 17 June 2011 - 08:06 AM

Oracle is the company that makes Java. Look, NetBeans is just a fancy editor if you are writing your code by hand. It doesn't really make a big difference.

Also, Java ME hardly has any market share. Android has a significantly greater market share and number of touch phones running this platform. You may want to consider working with Android instead of Java ME.
Was This Post Helpful? 0
  • +
  • -

#9 adethusares  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 6
  • Joined: 17-June 11

Re: how to add buttons for touch phones in netbeans?

Posted 17 June 2011 - 08:08 AM

i'm sorry i'm really just a newbie with this kind of mobile programming
Was This Post Helpful? 0
  • +
  • -

#10 macosxnerd101  Icon User is online

  • Self-Trained Economist
  • member icon




Reputation: 10477
  • View blog
  • Posts: 38,840
  • Joined: 27-December 08

Re: how to add buttons for touch phones in netbeans?

Posted 17 June 2011 - 08:09 AM

It's not a problem. We were all new to programming at some point. Are you familiar with Java at all? I would start with some basic Java (look at Java SE), then move onto Android. We also have tutorials sections for Java and Android. :)
Was This Post Helpful? 0
  • +
  • -

#11 adethusares  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 6
  • Joined: 17-June 11

Re: how to add buttons for touch phones in netbeans?

Posted 17 June 2011 - 08:14 AM

Yes! We had java class before, and now were going to do a thesis of a mobile application and i don't know how to start
Was This Post Helpful? 0
  • +
  • -

#12 macosxnerd101  Icon User is online

  • Self-Trained Economist
  • member icon




Reputation: 10477
  • View blog
  • Posts: 38,840
  • Joined: 27-December 08

Re: how to add buttons for touch phones in netbeans?

Posted 17 June 2011 - 08:15 AM

I gave you links to tutorials, if you go the Java ME route. Start with those. If you are comfortable with Swing and AWT in Java SE, then the Java ME GUI framework is very similar. Also, if you are doing your thesis and don't know where to start, something is very wrong with the education you have received. You should sit down and have a conversation about this with your professor, adviser, etc.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1