Giter Club home page Giter Club logo

j2me-ui's Introduction

Looking for J2ME & Gaming Book, visit SourceForge.net http://sourceforge.net/projects/j2megamingbook/

J2ME-UI

Description

J2ME UI Canvas code, used back before things like LWUIT was around; as well, before iOS and Android became popular. More or less dated code, here for archive purposes.

History / Background:

Due to fact that J2ME comes with fairly poor UI support for forms elements (referring to UPPER UI in MIDP 1.0 and MIDP 2) and this is before LWUIT was really of any use, I decided in my spare time to tinker around with hand painting components (I did a lot of this with the QuoteStream Wireless, all the grids and custom menus were hand pixel pushed). Eventually, I had the opportunity to use this code at CakePoker and at BCLC. I do have to admit I did borrow bits of code off the web, ie: the image scale method in the ImageHolder class. for the most part I would say approximately 80-90% of the code is mine with ideas borrowed from open source projects/public domain, basically I took what I thought was useful. And of course I borrowed from well known common conventions like is component modal, dirty, tabstop, focus, visible...etc

Extra Notes:

  1. Please keep in mind J2ME is at java 1.18 ie: limited collections available like Vector, missing things like ArrayList
  2. All the classes that end with Listener are basically interfaces used as callbacks
  3. Component is the main class for all components like Label, TextBox (inherit 'Component')
  4. ComponentContainer is essentially the wrapper class for Canvas and contains the main logic to handle all the painting and triggers events like Left & Right soft key press
  5. oh yes, I did decided not to save bytes of data in certain places ie: I used setters and getters (ie: Component); its bit of waste for J2ME but I think its worth it considering this is something that would be reused. Oh, in case you are wondering if you haven't done J2ME dev, in earlier days there would be restrictions on jar size (ie: a certain Model from Nokia would have a spec saying you can't exceed 70KB jar size) or restrictions from carrier on what OTA size limit would be or other weird stuff like Blackberry --> the files to be chunked in 64KB for OTA. anyways doesn't really matter I guess now since Symbian is more or less dead and once RIM gets rid of the OS that supports J2ME IMO its more or less obsolete; and MS OS takes over Nokia

Improvements needed:

  1. Handle scrolling of components

Support

No support available

Copyright and license

Code released under Apache License Version 2.0.

j2me-ui's People

Contributors

jasonlam604 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.