This week's giveaway is in the Java in General forum.
We're giving away four copies of Java Challengers and have Rafael del Nero on-line!
See this thread for details.
Win a copy of Java Challengers this week in the Java in General forum!

Ruslan Ivanov

Ranch Hand
+ Follow
since Feb 22, 2001
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 Ruslan Ivanov

view my last post on this. I had a similar problem with Kawa. For some reason it works perfectly well in debug mode. I think it's just slow cause if i made it sleep for about 100 millisecnds it catches up, otherwise no. Just run it not using Kawa.
jar
thanks for replying i solved the problem.
19 years ago
jar
I followed the direction on sun's site how to create executable jar file but i didn't get far i get an error when trying to run the jar file.
What i did was after creating jar file i modifed the manifest file to have an entry for Main-Class: myClass
but when running the jar file i get no main class is found. What can cause this? Can this be effected by a classpath ? Do i have to include a classpath information into manifest entry?
Thanks.
19 years ago
How did your gui looked did you provide lock / unlock buttons for user to lock record ?
The thing is i want to know if the lock was successfull. Lets say i want to do what you just said . Lock the record then readRecord before i can do reading i must make sure that i locked it right ? How would i know that lock was placed there is no where for me to find out. Lock has no return type.
Hi , i have a question. Let's say i let the client call lock/ unlock. How would i know that the lock was successful. So that i can show him a dialog later on where he can choose number of seats too book.
thanks
sorry i found my error, in one of my Object[] arrays i didn't trim number of elements. So that was the reason. Thanks for the help. It now displays correctly everything.
19 years ago
why would i need to call getRowCount method for ? And where would i assign it. I think model calls it itself or you can overide it when you implement it for some other logic.In my case i would think that getRowCount should be called by setDataVector to allocate number of rows to build for a table. But it doesn't do it.
19 years ago
hmm, it didn't do it for me. I just see new data with old number of rows.
19 years ago
hi i am using TableModel and assigning object of array. everything is fine. Now when i want to update my table model with new data i issue setVectorData() method with appropriate parameters. Data get's refreshed but the number of rows it previousely had remains. How can i make it so the number of rows will be same as data held.
thanks.
19 years ago
hi , i need to implement a callback in one of my routines. I have a qui with a button which does a search. Now when the user pressed the button i want it to pop dialog. Now on that dialog i allocated an array and when a user clicks ok on the dialog i somehow must send that information back to that routine. How can i make that routine wait for the information ?
thanks.
19 years ago
thanks for your reply , i though that was the point of being able to share same model with different components.
19 years ago
hi i have used a Model for JCombobox because i need to have 2 comboboxes with identical data. This part works fine. What i don't like is when i select an item both comboboxes select same item. How can i have so that only one will be selected since model is shared ? Any thoughts ?
thanks.
19 years ago
sorry to post this again , i found the answer to the problem. Apperantly it was caused by Kawa's IDE. I didn't payed attention much to it , but i started to run in DOS and i gotten corrent results , if i run it in Kawa i only get one record.
have you experienced any problems with getRecord(n) method ? Please try it calling it 2 times in a row. I am having a problem with it it only returns one search and doesn't do anything for a second call. Unless there will be a time out for me.
thanks.