Show Text on kindle
Hi,
slowly I'm getting desperated. more than one week of trying anything and nothing helps. I want to make a kindlet with the following basic function:
- displaying text, as much as I want
- and maybe, *in case* I got that, maybe also get the functionality to turn pages in case the text is longer than one page
API: 2.0
basic layout:
anyobject = new AnyObject();
KPages pages = new KPages(createFullPageProvider());
[...].getRootContainer.add(pages);
Problems:
- if using a string: after two lines or exceeding one line, the string gets cut with "..."
- if using a JLabel: same as string
- Kindle seems to ignore any statements of vertical height or whatever
- kindle seems to ignore the size options made in a PageProvider, that can be given to KPages.
Can anybody tell me why, or any other experiences for these Problems? (this Part is actually the one, that really annoyes me)
My Solution: (now we're going to the part page turning
- JTextArea
- setEditable(false) and setEnabled(false) (both for no cursor-interruption)
displays all my text - as much as I want. But if it exceeds the page, I cannot view the rest of the text. I would have to calculate the amount of text fitting in the size of a display. But I don't see any functions for beeing able to calculate that (variable char size etc).
does anyone have any ideas?
greetings
|