This week's book giveaway is in the iOS forum.
We're giving away four copies of Classic Computer Science Problems in Swift and have David Kopec on-line!
See this thread for details.
Win a copy of Classic Computer Science Problems in Swift this week in the iOS forum!

Joe Myn

Greenhorn
+ Follow
since Oct 19, 2004
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Joe Myn

I have posted in Swing/ AWT / SWT / JFace, but i got no reply.

My working area consists of two JTextAreas and a JTree.
The user can drag a text file from the JTree to the JtextAreas where the header of the file is displayed in one area and the body in the second.

My problem is that i need to erase a particular file. ie: if i erased the header from one area, the corresponding body will be erased also.

Any help would be mostly appreciated.
13 years ago
My working area consists of two JTextAreas and a JTree.
The user can drag a text file from the JTree to the JtextAreas where the header of the file is displayed in one area and the body in the second.

My problem is that i need to erase a particular file. ie: if i erased the header from one area, the corresponding body will be erased also.

Any help would be mostly appreciated.
13 years ago
Hello Ravi,

Have you registered your database as an ODBC database.

If you did that try using the database name instead of the url.

example : connection = DriverManager.getConnection( "jdbc dbc atabaseName", "", "" );
[ March 12, 2005: Message edited by: Joe Myn ]
Hello Berty,

go to Configure --- Options --- JDK Profiles --- Edit --- Documentation --- Add.
I faced the same problem using JCreator, I guess that you cannot use the command line with JCreator.
13 years ago
Thinking in java 3rd Edition by Bruce Eckel, helped me a lot in starting with java. You can download the e-book from :

http://mindview.net/Books
13 years ago
You can make a batch file .bat
13 years ago
"U" should be posting in the english 101 forums.

"U" got to go out more often.

"U" GOT TO GET A LIFE.
[ January 15, 2005: Message edited by: Joe Myn ]
Hello All,

I was not aware of the name policy, sorry for that, but i can not seem to know what is the problem with the "u" ? Please explain.
Thanks sasi your help is appreciated.
The code worked fine.

Thanks,
PaPA.
13 years ago
I have a JTree that is populated from a directory, i am trying to display tooltips on the leaf nodes. the tooltips are nothing by the files headers(comments) . The tooltip must display the comments execluding the opening /*, and closing */.

i managed to display the first three lines of the file only.

br = new BufferedReader(new InputStreamReader(new FileInputStream(file)));

if(!file.isDirectory())


line = br.readLine();

if(line == null || line.equals(""))
{
setToolTipText("<html><font color=black><b>Empty File</b></font></html>");
}
else
{
setToolTipText("<html><font color=black><b>" +line+"<br>"+br.readLine()+"<br>"+br.readLine()+"</b></font></html>");
}
}

Any help is appreciated,

Regards
PaPA
13 years ago
JScrollPane scrollPane = new JScrollPane(yourTable);
yourTable.setPreferredScrollableViewportSize(new Dimension(int,int ));
13 years ago