Matan Mazursky

Greenhorn
+ Follow
since Jul 11, 2005
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by Matan Mazursky

The Table Model has a method
public boolean isCellEditable(int row, int column)
so you can override this method using your own class, etc.
19 years ago
u must use the table model and tell it not be changeable
19 years ago
"c:\\logo.jpg"
you can't have a \ like that... sorry for the nitpickiness.
"c:/logo.jpg"
also works my experience, Java fixes it.
19 years ago
thanks in advance for any help, I will answer further questions only after the 27th of July cuz I'll be out of town, but please do share comments.
19 years ago
Was wondering what people thought was the best way to do reports in java. By this I mean send reports to the printer from either my own data or a JDBC.
Reports would include headers, footers, titles, groups, pages, the whole deal.
Hopefully there would be a GUI to go with it that would create .java
Unless someone thinks there is a better way.
Matan Mazursky
19 years ago
My tip is use this tool: JFormDesigner
This baby will create a .java for you to plug into your code with very nice coding style, good comments and organization, and very easy to customize. Has cut me tons of time in coding complex GUI.
19 years ago
haha, netbeans JDBC
I struggled with this for a while myself.
here's my code:
import java.sql.*;
public void connect() throws Exception
{
Class.forName("com.mysql.jdbc.Driver").newInstance();
conn = DriverManager.getConnection("jdbc:mysql://localhost/test?user=root&password=m1a2t3a4n5");
}

This works after having added to libraries the appropriate JAR, who's name is: mysql-connector-java-3.1.10-bin.jar

Tell me if you need that JAR.
My questions is how to create executables (of any kind really, I'm desperate, so java webstart I tried didn't work. Executable JAR's haven't worked for me either) but I'd prefer a real .exe for windows.
The answer needs to include what to do if I have packages and libraries that I'm importing (for example JDBC, JasperReport).
Thanks,
Matan

PS This is a thread in another section but the guy who promised to move it here, didn't