Welcome to the Java Programming Forums

The professional, friendly Java community. 21,500 members and growing!

The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 2 of 2

Thread: Custom GUI in j2me

  1. #1
    Junior Member
    Join Date
    Nov 2011
    Thanked 0 Times in 0 Posts

    Post Custom GUI in j2me

    Hi everyone..

    can someone help to me..how can Build Custom GUI to insert text in particular space..(in tables)

    please send solution as possible as you can..

  2. #2
    Junior Member
    Join Date
    Mar 2010
    Home-Ujjain /Job-Mumbai
    Thanked 0 Times in 0 Posts

    Default Re: Custom GUI in j2me

    If you realy want to make your own input box then it is very simple, you just need to follow the concepts of j2me Canvas.

    1. Create a InputBox class.
    2. Draw a rectangle onto it for appropriate text size whatever you want.
    3. Start writing the text from the left hand corner whatever you press from the key.
    4. if you want to enter ABC... then you will have to assign keys like on press of 2 it should type either of A/B/C/2 fix a timer which can run for each key press event and when it is more than 2 second then it should let you type another character.
    5. you will have to refresh your screen after each key press event.
    6. make sure you are using correct logic for typing and clearing the text.

Similar Threads

  1. Custom JList
    By daghost in forum AWT / Java Swing
    Replies: 3
    Last Post: November 17th, 2011, 05:57 PM
  2. Can't instantiate custom class
    By mwr76 in forum Object Oriented Programming
    Replies: 5
    Last Post: October 18th, 2011, 05:43 PM
  3. Custom Log level help
    By seanman in forum Java SE APIs
    Replies: 1
    Last Post: September 25th, 2011, 08:55 PM
  4. can i use custom buttons ?
    By Gaurav18 in forum Member Introductions
    Replies: 3
    Last Post: September 12th, 2011, 09:56 AM
  5. Custom Table using AbstractTableModel
    By dumb_terminal in forum AWT / Java Swing
    Replies: 11
    Last Post: November 16th, 2010, 10:02 AM