|
Frequently Asked Questions
Question: Is there any way to make text append itself to the bottom of a textarea widget, as well as autoscrolling that text upwards as new text comes in?
String text = getString(textarea, "text") + "\nappended line"; setString(textarea, "text", text); setInteger(textarea, "start", text.length()); setInteger(textarea, "end", text.length());
Question: How do I set the status of a checkbox? setBoolean( find("nameofcheckbox"), "selected", true ); setBoolean( find("nameofcheckbox"), "selected", false );
Question: How do I use java.awt.FileDialog with thinlet? Container frame = this; while (!(frame instanceof Frame)) { frame = frame.getParent(); } java.awt.FileDialog filedialog = new java.awt.FileDialog( (Frame)frame, "Saveg database...", FileDialog.SAVE); filedialog.show();
File fileSelected = new File( filedialog.getDirectory(), filedialog.getFile() );
Question: How do I dynamically add nodes to a tree? Assuming your tree is defined: <tree name="ParentTree"></tree>
then you can perform: Object root = find("ParentTree"); Object node = create("node"); setString(node,"text","Node label"); add(root,node);
A visitor made this comment,
Thanks Alan for good tip, i save me a lot on using thinlet. regards. Akar |
comment added :: 25th June 2004, 05:49 GMT
A visitor made this comment,
Assuming your tree is defined: then you can perform: Object root = find("ParentTree"); Object node = create("node"); setString(node,"text","Node label"); add(root,node); But How can I save this node for restart program. msrs [god_ding@hotmail.com] |
comment added :: 22nd September 2004, 09:40 GMT
A visitor made this comment,
How do you use the closeable property to close a dialg? I set the valuer to true and that adds the close button in teh upper left corner but I cna not figure out hoe to tie it to a close event. papaganoush |
comment added :: 10th October 2004, 07:00 GMT
A visitor made this comment,
Ok, so I think I need to do two things: 1. get more sleep 2. preview my posts I still can't figure out how to get the close button to close my dialogs, but my typing and grammar are a lot better after some sleep. papaganoush |
comment added :: 11th October 2004, 03:33 GMT
A visitor made this comment,
while using thinlet and designing an application we are placing the panel in panel at run time but the new panel is not placed until and unless the prevoius one is refreshed or resized And more over when there are two forms opened of one form is closing the complete application is closing . Then how to rectify all these problems in order to make the application consistent . Anil |
comment added :: 23rd December 2004, 15:41 GMT
A visitor made this comment,
Hi, Could you please publish a source tip on how to print using Thinlet? I would like to design a print-layout in XUL, and print it using the normal AWT print commands, but I don't know how.... ;-( TIA! Sjoerd |
comment added :: 11th January 2005, 12:10 GMT
A visitor made this comment,
i'm admittedly new to thinlet and am trying to get up to speed. i need to display information in a form not provided by widgets in the current baseline code (1) is there a repository of widgets created by others? (2) is there any writings on how one goes about creating custom widgets? thanks -mo Mike O'Dell [mo@ccr.org] |
comment added :: 29th March 2005, 19:30 GMT
A visitor made this comment,
can i use this same idea about tables? i mean, can i dynamicly insert rows and cells into a table?? thanks livia. livia |
comment added :: 2nd June 2005, 15:36 GMT
Mark made this comment,
How can I disable resize of the window ?
|
comment added :: 4th August 2005, 01:32 GMT
Johann Vazquez made this comment,
I'm looking for a "DateField" or "DateChooser"
component to ease dates inputs on
pJava/Thinlet-based GUI appplications.
Any infos for this?
Thx.
JOVAZ
|
comment added :: 11th December 2005, 12:43 GMT
gabe made this comment,
Hi,
I'm trying to add an login dialog to my
application (both with Thinlet) and I have proplem
to synchronize it....
I start my application and creates the login Modul
(class LoginModul extends Thinlet). When I press
Ok, my action try to log into a database. So how
can I tell after the login was successful that the
application should start the other modul called
"main"? Can anyone help? (I'm new to GUI
programing..)
cheers
gabe
|
comment added :: 9th October 2006, 11:53 GMT
mischa made this comment,
I've read the example of building trees above, but
still some questions:
I've added an init action that loads the data from
the database. after that I add nodes to the tree,
but when I try to find the root of the tree
(Object root = find("treeNode");) it is still not
initialized (root=null!). So when and where can I
add this dynamicly data?
cheers mischa
|
comment added :: 9th October 2006, 13:56 GMT
Annerose made this comment,
I thank you for your contribution.
http://www.heimarbeit-job-geld-verdienen-nebenjob.
de
|
Tomas made this comment,
Can someone show the A-Z way of j2ME creation with
thinlet resulting a jar and a jad file? Please.
|
comment added :: 22nd February 2007, 19:58 GMT
|