Thomas Hubschman

Ranch Hand
+ Follow
since Sep 25, 2002
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 Thomas Hubschman

Thanks Peter - That sounds like a good process.

James - I've also used IntelliJ in the past for Java EE. It's a nice IDE, but at this point I want to add Eclipse to the tool box.

Thanks guys,

Tom
9 years ago
Ok. Ok.

I love NetBeans. I even hold the bloody cert. But time has come to do andriod, and well, I think that means Eclipse.

I need to learn Eclipse. I've used it before and hated it. I need to love it.

Please reply to this message with any advice, sites, tutorials or other information that might help me out to learn Eclipse, specifically with an intent to do Android programming.

Thanks-in-advance,

Tom
9 years ago
Hi Uzma,

(First Question)

Could you explain further I do not understand your question. It sounds like a Swing rendering issue but I am not sure.

(Second Question)

You can have the TableModel store, but not display, the column numbers as part of the data model.

Tom
Hi David,

(First Question)

However i only want to display 9 of the 10 columns in the JTable. Does anyone know the code which will allow me to do this. By the way i need to just hide this column data from the user but it needs to be in the JTable as
the column data contains primary keys which are used for data retrieval in other parts of the application.



In your implementation of the TableModel you can extend javax.swing.table.AbstractTableModel and then provide your own definitions of:


This should allow you to hide the column but keep the data in the model.

(Second Question)

I would like to know how anyone else worked around the issue of trying to display a HashMap in a JTable. I am storing bookings from the database file in a hashmap whereby the key value is the filepointer to the record on file and the booking instance is stored with this key. I suspect i may need to store this data in an ArrayList rather than in a HashMap in my TabelModel class in order for the JTable to display the Bookings correctly here but i am not sure?? I am wondering how others worked around this issue?



There is constructor of DefaultTableModel as follows:



Personally I kept the record data as an array which made my implementation of the getValueAt() method listed above very easy.



Hope that is of some help.

Regards,

Tom
[ January 22, 2008: Message edited by: Thomas Hubschman ]
Congrats! Any words of wisdom?
Thanks Alex - I needed that.
Howdy Ranchers,

Anyone else go two months into their SCJD and realize that 50% of the 'cool' features of your submission are not in the spec and while fun to code they might actually cause you to lose points on upload day?

I think this is a by product of too much freedom to implement and unlimited time. It all started with just a caching strategy...... now there are indexes, more interfaces than java.util, application level threading and event handling, and an architecture which would allow the application to be ported to the iPhone.

And like any bad habit, it is hard to draw the line and say enough is enough. I think I need some one to tell me "Sun will run a bunch of UNTIMED unit tests over your submission Tom, they could care less that you could swap in an Oracle DB in 20 lines of code."

Anyone?

Tom
Thanks Guys!

After reading the Wikipedia entry I have realized that the Decorator pattern is exactly what I am doing. While in fact the current implementation does not NEED to have the 'contained' functionality public, there are plenty of administrative use cases where the concurrency guarding behavior of the contained class would not be necessary. As such, I think I will continue to have both container and contained classes implement the interface and let the implementor of the API make the decision as to which class to use.

Tom
12 years ago
Hi,

The question is how bad is it to have a containing (threading wrapper) class AND the singleton implementation class it contains implement the same interface listed above.

Tom
12 years ago
Hi Ranchers,

Is it bad, how bad is it, and is there another way to get around a contained class implementing the same interface as the container class, with the container class having pass through method implementations to the contained class.

In my particular case the container class is Data which contains a reference to the Storage class but provides the additional functionality of locking and finding (finding through a cache). The Storage class presents only data altering methods.

The issue is that I want to add a 'DBSchema' interface that provides the following methods:



It seems to me that what makes the most sense is to have the Data class AND the Storage class both implement this interface. Although in the case of the Data class it is just passing through calls to the contained Storage class. The Data class needs to implement the interface so that external callers can continue to use an interface to access the Data class rather than an instance reference.

That seems icky to me.... but I am not sure. I searched around on Google for a bit, but didn't find an answer there.

Any help as always would be appreciated.

Regards,

Tom
12 years ago
Hi Ranchers,

Is it bad, how bad is it, and is there another way to get around a contained class implementing the same interface as the container class, with the container class having pass through method implementations to the contained class.

In my particular case the container class is Data which contains a reference to the Storage class but provides the additional functionality of locking and finding (finding through a cache). The Storage class presents only data altering methods.

The issue is that I want to add a 'DBSchema' interface that provides the following methods:



It seems to me that what makes the most sense is to have the Data class AND the Storage class both implement this interface. Although in the case of the Data class it is just passing through calls to the contained Storage class. The Data class needs to implement the interface so that external callers can continue to use an interface to access the Data class rather than an instance reference.

That seems icky to me.... but I am not sure. I searched around on Google for a bit, but didn't find an answer there.

Any help as always would be appreciated.

Regards,

Tom
Yeah that is pretty much how I feel about them. Do first on the job then document with a cert.

If you don't mind my asking, in what ways did the SCEA help your abilities as a developer and your general employability? I am thinking about that one next. I have some experience with application design, and feel that SCEA will force me to hone those skills and will support my remaining in a lead design/management role.

The material for the MCTS was so bad I think I am going to drop it. Plus I really don't work in .Net anymore. The documentation was lousy, and I often found myself with a longing for Java.
[ December 17, 2007: Message edited by: Thomas Hubschman ]
Thanks Theodore.

Your certification list is long and impressive. Kudos.

Tom
I know it is in Beta testing now. Planning on doing it when it gets cleaned up and released.

Tom
I would love to register this new Groovy plugin but cannot figure out how. I have gone through the help docs but no help there.

http://blogs.sun.com/geertjan/entry/big_milestone_for_groovy_and

Here is the statement:

You need to register Groovy and Grails in the Options window, before you can use them.

How do I do that?

Thanks,

Tom