Java-Gaming.org    
Featured games (79)
games approved by the League of Dukes
Games in Showcase (477)
Games in Android Showcase (109)
games submitted by our members
Games in WIP (536)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
   Home   Help   Search   Login   Register   
  Show Posts
Pages: [1]
1  Java Game APIs & Engines / J2ME / Textfield in Canvas? on: 2003-07-08 04:56:31
How to have textual input in Canvas?

Anyone know there is any ongoing project for developing such kind of gui for Canvas?

It is difficult to make one as different mobile has sightly different configuration on text input method.

I have downloaded the MIDP source code from Sun and seen that the Textfield class has used com.sun.midp.* package, which i have no way to program on, so i can not access phone specific api for text input.

Any suggestions?

Thanks for your help in advance!
2  Java Game APIs & Engines / J2ME / Re: how to write a derived class from game.Layer? on: 2003-07-08 04:35:50
Sadly, there is no way to write a derived class from Layer, which i have tried before.

I have downloaded the source file of MIDP from Sun, to see how to write the constructor of Sprite.   From the constructor of Sprite, I found the constructor for Layer, which takes two parameters (int width, int height).  

Then, i switched to the source code of Layer to see the details, the constructor there is declared as default, and there is a comment that declaring as default is to prevent developers from subclassing this class - Layer.

Since there is no way for me to declare my class to be in the same package as Layer, there is no way to sub-class Layer.

If anyone know any tricks to sub-class Layer, please tell me also!
Pages: [1]
 

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

CogWheelz (15 views)
2014-08-01 22:53:16

CogWheelz (15 views)
2014-08-01 22:51:43

CopyableCougar4 (15 views)
2014-08-01 19:37:19

CogWheelz (19 views)
2014-07-30 21:08:39

Riven (27 views)
2014-07-29 18:09:19

Riven (16 views)
2014-07-29 18:08:52

Dwinin (14 views)
2014-07-29 10:59:34

E.R. Fleming (35 views)
2014-07-29 03:07:13

E.R. Fleming (13 views)
2014-07-29 03:06:25

pw (44 views)
2014-07-24 01:59:36
Resources for WIP games
by CogWheelz
2014-08-01 18:20:17

Resources for WIP games
by CogWheelz
2014-08-01 18:19:50

List of Learning Resources
by SilverTiger
2014-07-31 18:29:50

List of Learning Resources
by SilverTiger
2014-07-31 18:26:06

List of Learning Resources
by SilverTiger
2014-07-31 13:54:12

HotSpot Options
by dleskov
2014-07-08 03:59:08

Java and Game Development Tutorials
by SwordsMiner
2014-06-14 00:58:24

Java and Game Development Tutorials
by SwordsMiner
2014-06-14 00:47:22
java-gaming.org is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑gaming.org
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!