LWUIT TextArea problem ~> solved

In MoBaca application, I use LWUIT for UI. I put text area to display each page of the book. But when I display the multi-line text within TextArea, I face the common problem like any other users. When I move the scrollbar to the bottom of the page, the scroll always bring me back to the top of the page. Finally after few try and error, The problem fixed.

We can fix the scrollbar problem by put the TextArea by set layout on the form, I use BorderLayout for the form and and put TextArea inside the form with center properties. I don't know what actually happened, but it was the easiest way to fix my problem (also commonly happened to LWUIT TexfortArea users), since before I have tried by override TextAreaClass. Here is the 2 lines that fix my problem:

TextArea page = new TextArea();
form.addComponent(BorderLayout.CENTER, page);

After I fix the 'auto scrolled-up problem', I got second problem, when I move from one page to next page, the scrollbar should be automatically directed to top of the new page, not stay just like previous possition. For that problem, I just add method to reset the cursor position and refresh the page. And the final result is MoBaca 1.0

nemu PinguyOS

Saat ini, kita dapat meng-costumise mesin linux kita dengan berbagai effect, applikasi dan tapilan interface yang kita inginkan. Kita dapat dengan mudah membuatnya mampu memainkan berbagai format file multimedia, menyesuaikan tampilan sesuai dengan apa yang kita bayangkan atau inginkan, membuatnya mirip sekali dengan Windows, Mac, atau tampilan sangar ala hacker di filem-filem. Hal-hal itu sekarang dapat dengan mudah g n dengan package manager atau UI manager yang sudah ada. Di Gnome ada Gnome Art, yang memungkinkan kita menginstall apa saja yang disediakannya (mulai dari tema, border window, icon, theme bahkan emoticon). Begitu juga dengan KDE yang telah siap dengan KDE Look. Sangat mudah, meskipun bagi yg baru dengan Linux hal itu agak ribet (tp jangan kuatir, ribet2 asik kok)

Tapi klo ada yg mau coba tapi tidak pake proses di atas, maunya Linuxnya langsung keren dan bisa apa aja setelah di install silahkan baca paragraph berikutnya:

Bulan lalu, pas lagi asik stumbling ga sengaja menemukan pinguyOS, system tersebut berbasis Ubuntu 10.10 yang di permak dan di tuning habis-habisan. Begitu mencoba liveCD-nya saya langsung terkesima dengan tampilannya yang ala Mac, bukan hanya menu aplikasi yang ada di bawah, tapi juga menu-bar yang menempel di langit-langit desktop. Berikut kelebihan lainnya yg langsung di bundle:

  • Bisa play restricted media format – langsung VLC, rhythmbox.
  • Terinstall font2 windows – Times New Roman mesti ada lah, udah gitu langsung di jadiin font default lagi di OpenOffice.
  • Tampilan Mac Style.
  • Wine yang siap untuk install aplikasi untuk windows – ini yang bikin file installer setup.exe atau aplikasi exe windows dijalankan di Linux.
  • Firefox yang luar biasa – yg ini jalan melebihi apa yg kita bayangkan, puluhan plugin udah terinstall (browsing optimizer, google optimezer, security, bookmark, dll), tentunya dengan interface yg juga sudah di permak gaya Opera.
  • Semua tools insternet sudah tersedia: chat, google talk video, skype, downloader dan file sharing,
  • Desktop effek langsung nyala.
  • Dan yg paling akhir tapi yg paling utama adalah semua device terdeteksi dan dapat digunakan dengan sempurna (sound, wireless adapter, bluetooth, dll).

Jadi semua aplikasi yg dibutuhkan atau tidak terbayang telah ada, sudah terinstall. Dan yg penting bisa langsung digunakan tanpa harus menjadi Linux geek, tapi kayaknya bisa lebih keren dr punya mereka lho.

MoBaca 1.0 Released

Finally, after few months. MoBaca 1.0 released. The feature are the same from previous stable version, with little fix for scrolled text area. In this release I used LWUIT for user interface to make the UI better. happy reading...

next moBaca

>>>>>> Within few weeks, moBaca will be like the right side

my mobile text reader (moBaca) released

Dear readers, a lot of interesting books are available free on Project Gutenberg. We can choose thousands of titles there. Must be more fun way to read it on out cheap Java enabled mobile phone after download the files, we could read it anytime and anywhere just with our mobile phone even it's not ipad, palm or Symbian. Actually when we open the text file, our phone will open the file automatically with default web browser, but:

  • It load whole file content into one page
  • Every time you open the file, you always get the first top page, event you want to continue reading from certain position
Than I started to make simple application that run on mobile phone to read large text file. The application feature are:
  • Load text into pages and you could navigate the pages with previous and next button
  • Auto bookmark, every time you stop reading a file (open another file or exit from application) the last page you have read will automatically bookmarked. So next time you open the file again, you will get the last page you have read
I host the project for that application at sourceforge (https://sourceforge.net/downloads/mobaca/) for free
Feel free to use moBaca to read your text file.
And if you like it, please help me to spread to the world
I would be glad for feedback and development help...

my barcode on jasper report

Here were my conditions when I want to add barcode generator ability on my report:

  • I used to get my jrxml file (japer report file) that generated by iReport. Than I didn't ever notice the details code.
  • So many package for barcode generator, and followed by confusing about the dependencies
  • I want to integrate it with jasper plugin for grailsI want the barcode image generated on the fly, without need to save to image file
And here were the steps which taken to resolve the problems:
  • create maven project in my netbeans, to manage dependency problems easily
  • add barcode4j library to projectcreate simple script to generate image for testing. So I know if all dependency to generate barcode are completed
  • apply barcode generator to jasper report using jasper scriptlet
  • than integrate it with grails by put the jrxml file on web-app/reports, scriptlet code on src/java and put all dependency library on lib
Since I got problem for posting my code, for detailed code and implementation please refer to: http://freeezcode.wordpress.com/2008/12/29/my-barcode4j-on-grailss-jasper-plugin/