Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Readers > More E-Book Readers > iRex > iRex Developer's Corner

Notices

Reply
 
Thread Tools Search this Thread
Old 01-08-2008, 08:45 AM   #1
ouais32
Junior Member
ouais32 began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Jan 2008
Device: iLiad
Hide toolbar and pagebar in a Java app ?

Hi,

Does anyone knows how to hide the toolbar and the pagebar when running a Java application ?
I tried this :

frame.setSize(768, 1024)
frame.setBounds(0, 0, 768, 1024)

But it doesn't works, the toolbar and the pagebar are still there.
I expected for frame.setAlwaysOnTop(true) but it is only available since Java 1.5.

Any ideas ?

Thanks
ouais32 is offline   Reply With Quote
Old 01-08-2008, 10:51 PM   #2
Adam B.
Addicted to Porting
Adam B. is a jewel in the roughAdam B. is a jewel in the roughAdam B. is a jewel in the roughAdam B. is a jewel in the roughAdam B. is a jewel in the roughAdam B. is a jewel in the roughAdam B. is a jewel in the roughAdam B. is a jewel in the roughAdam B. is a jewel in the roughAdam B. is a jewel in the roughAdam B. is a jewel in the rough
 
Adam B.'s Avatar
 
Posts: 1,697
Karma: 7194
Join Date: Oct 2006
Location: Indianapolis, IN
Device: iRex iLiad, Nokia 770, Samsung i760
Read some posts by scotty1024. From what I remember, it's impossible to have Java apps running full screen.
Adam B. is offline   Reply With Quote
Advert
Old 01-09-2008, 03:13 AM   #3
Alexander Turcic
Fully Converged
Alexander Turcic ought to be getting tired of karma fortunes by now.Alexander Turcic ought to be getting tired of karma fortunes by now.Alexander Turcic ought to be getting tired of karma fortunes by now.Alexander Turcic ought to be getting tired of karma fortunes by now.Alexander Turcic ought to be getting tired of karma fortunes by now.Alexander Turcic ought to be getting tired of karma fortunes by now.Alexander Turcic ought to be getting tired of karma fortunes by now.Alexander Turcic ought to be getting tired of karma fortunes by now.Alexander Turcic ought to be getting tired of karma fortunes by now.Alexander Turcic ought to be getting tired of karma fortunes by now.Alexander Turcic ought to be getting tired of karma fortunes by now.
 
Alexander Turcic's Avatar
 
Posts: 18,163
Karma: 14021202
Join Date: Oct 2002
Location: Switzerland
Device: Too many to count here.
Quote:
Originally Posted by Adam B. View Post
Read some posts by scotty1024. From what I remember, it's impossible to have Java apps running full screen.
Did my eyes deceive me? Did I just see Adam saying, something was impossible?
Alexander Turcic is offline   Reply With Quote
Old 01-09-2008, 03:41 AM   #4
JustADecoy
Junior Member
JustADecoy began at the beginning.
 
Posts: 3
Karma: 10
Join Date: May 2007
Lightbulb

Quote:
Originally Posted by Adam B. View Post
Read some posts by scotty1024. From what I remember, it's impossible to have Java apps running full screen.
Yeah, Scotty had some convincing evidence that the JVM wasn't allowed access to that region of the screen.

Here's another of my nutty ideas... Can iPDF be extended to invoke a Java program to render each page of CBZ or CBR file (or a simple directory, perhaps with a manifest file that says 'Treat me like a comic book'), like it invokes libpoppler today? I'm not saying I want to doodle on my comics pages (though I wouldn't mind the option), but I would like:
  1. The option to choose fullscreen or any scaled size.
  2. The Pagebar (when I want it) to skip to particular pages.
  3. To have my page & position saved when I close the document.

(I also wouldn't mind the ability to delete an individual page from the CBR/CBZ archive or folder, but let's not get totally crazy here yet.)

Is iPDF the right place to do this? Is Java the best way to render this content? (It certainly seems to have the smallest code footprint...) Anyone have a better idea?
JustADecoy is offline   Reply With Quote
Old 01-17-2008, 05:55 PM   #5
ericshliao
Guru
ericshliao will become famous soon enoughericshliao will become famous soon enoughericshliao will become famous soon enoughericshliao will become famous soon enoughericshliao will become famous soon enoughericshliao will become famous soon enough
 
Posts: 976
Karma: 687
Join Date: Nov 2007
Device: Dell X51v; iLiad v2
I poked into irex java sdk code contained in "irex.jar" and have found no clue to make toolbar or pagebar disappear.
I found that toolbar and pagebar are controlled through IPC (should be interprocess call or something) provided by OS. Java code calls for a reset or refresh when needed. Therefore, the drawable screen for JVM is 768*935 in the start, and no way for a Java app to make displayable area increase.
Actually, I don't see any evidence that JVM denies or disallows to do so. The problem is that I can't find an API to make them disappear. I have found a way to add icon or delete icon on toolbar, but I can't make it disappear and increse the iLiad Frame size.

Java is a monster hungering for memory. Don't expect too much on Java to do fancy processing on iLiad. It's limited because of iLiad on support Java PBP (too few image api), and the 64 mb memory.
ericshliao is offline   Reply With Quote
Advert
Old 01-18-2008, 04:04 AM   #6
ouais32
Junior Member
ouais32 began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Jan 2008
Device: iLiad
Thank you for your answers !
The only solution I found is to directly write in the video memory.
I call a C program via JNI, which writes in the /dev/fb0 special file...
ouais32 is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
LrfAppender: IE toolbar similar to "Toolbar for Librie" mumurik LRF 1 10-13-2009 04:01 AM
LrfAppender: IE toolbar similar to "Toolbar for Librie" mumurik Sony Reader Dev Corner 1 10-06-2009 03:33 AM
iLiad ipdf hide Toolbar Fermthe iRex Developer's Corner 2 09-30-2008 04:05 PM
installing java app books on LG Viewty telephone ? zelda_pinwheel Alternative Devices 2 08-22-2008 07:19 AM
[Apple]Java Embedding Plugin 0.9.2: Force java to run in browsers other than Safari Zire Lounge 4 05-24-2005 09:12 PM


All times are GMT -4. The time now is 08:23 AM.


MobileRead.com is a privately owned, operated and funded community.