Win a copy of Fixing your Scrum this week in the Agile forum!

L�szl� Kov�cs

Greenhorn
+ Follow
since Jun 18, 2005
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 L�szl� Kov�cs

Thanks John. The first link looks interesting. Have you used it? What were your experiences?
15 years ago
Thank you Marilyn. It's an interesting read but I don't quite see how it answers the question. I understand that many of the principles will be the same whether I'm using a client/server database or an embedded flat-file database but I'm really only interested in the latter and am looking for a resource that doesn't assume I'm doing the former. Do you know of anything like that?
15 years ago
I'd like to build a simple program using a database stored in a local file and I don't really know where to begin.

Ideally, I would like to use something akin to SQLite ( http://www.sqlite.org ) because it's simple, can be used with local files (as opposed to connecting to a remotely or locally installed db such as mySQL) and is sufficient for my modest requirements. I don't want the user to have to install anything.

Is this a good choice? I don't like the idea of using an MSAccess db but I couldn't explain why - is that a good cross platform choice?

I have seen references to SQLite wrappers so I know it's possible and I have some familiarity with building and querying SQLite dbs. What I don't know is how I would go about integrating such a database into a java project (I'm still very much a newb in this territory).

If someone could point me in the direction of some resources that might help me get up and running, that would be very much appreciated.

edit: I should probably mention that I'm working on OS X
[ February 13, 2006: Message edited by: L�szl� Kov�cs ]
15 years ago
Thanks JD.
16 years ago
I should probably have mentioned that the object is being returned by a JSpinner - since I didn't make it, I can't very easily have it return a different type.
16 years ago
On a couple of occasions I have had data returned in the form of an object that I need to cast into an int. I would like to know a better way to do it than what I have currently:

16 years ago
That page is going to be really useful. Thanks a lot, Ulf and Bear.
16 years ago
How does one create menus for the OS X menubar (as opposed to adding them to a frame)?
16 years ago
Thanks. I'll look into WebStart - the book I'm reading is quite old but I have limited resources and it's more about the concepts than the practice so I guess I'll be reading a more up to date, practical book next.

Can anyone point me to a good place to start reading about WebStart and a well rounded debate for Swing Vs. SWT?
16 years ago

Originally posted by Terry Rickson:
Button b = new Button();

It creates a button object but the variable b is the instance variable of the Button object.



Surely b is a reference to the created object, and that object is an instance of the Button *class*?
16 years ago
It's very probable that I'm confused.

The reason that I ask is that the java book that I'm reading gives all its GUI examples using AWT. I understand that Swing is more advanced than AWT but I also seem to remember reading somewhere that Swing is less likely to be supported when using Applets - is that the case or can I just use swing with impunity?

The other thing is that I have Eclipse installed on one of the machines I'm using here and that comes with the SWT libraries. Is there any reason not to use these for application building? What about Applets?
16 years ago
Nice. Thank you.
16 years ago
Having just tested it out, I can see that my guess was wrong. Your classes both compile and run here. I should carry on reading my book and not butt in!

However, you (or someone else reading this) might be interested to know that the first time I tried to compile MovieTestDrive.java I got the exact same error that you did. Then I tried to run some of the other packageless examples that I've made while following the book I'm reading and I got the same error: the reason, in my case was that I had set a classpath environment variable which meant that javac was looking for the class in the wrong folder - not looking in the same folder as the one I compiled the Movie class in.
16 years ago
I'm a total noob so I'm just guessing really, but is the problem that the first class does not have the access specifier 'public'? From what I understand, no access specifier means that the class will have default access, so unless the second class is included in the same package, or extends the first class, it has no access rights.
16 years ago
I'm reading through Java in 60 Minutes a Day and have to come to a section about setting the classpath variable. The problem is that the book assumes that I'm using windows and the shell commands don't work in the Mac OS X terminal.

Can someone enlighten me or point me to a resource?
16 years ago