Log in

View Full Version : Who is familiar with Java programming?



Drum Thumper
10-14-2008, 10:30 PM
PM me please, I have a couple of questions.

Cymae
10-15-2008, 02:11 AM
Me, but you allready know that, perhaps you should mention you want to know about Java GUI...

Drum Thumper
10-15-2008, 02:29 AM
Me, but you allready know that, perhaps you should mention you want to know about Java GUI...

Actually, no. My question pertains to where the best placement of arrays would be--main method or a subclass method. I was able to finally figure out the GUI end of it for what I need--java.swing.JOptionPane covers everything that I need. However, I feel that there's a bunch of unneeded code (had to do a bit of hacking in the cutting and pasting sense) to get this frankenstein of a program to run properly. So I'm gonna try my best to streamline it.

Cymae
10-15-2008, 02:54 AM
You will have to give more detail. array for what? if it's applicable for all children put it in the parent.

Drum Thumper
10-15-2008, 03:21 AM
if it's applicable for all children put it in the parent.

That answers my question. Thanks Cymae!

Cymae
10-15-2008, 03:26 AM
errr....my pleasure.... 8)

remember: a child has all the attributes of the parent + some. Here's a fancy diagram I did in paint:

http://img.photobucket.com/albums/v99/Cymae/subclassexample.jpg

Don't laugh at my stupid diagram...

Drum Thumper
10-15-2008, 03:38 AM
See, this is what irritates me about this course. Nowhere in our text is this question truly covered. Sure, the writers have been beating around the proverbial bush, but your diagram is straightforward and to the point. You probably don't realize it, but you just condensed roughly 20 pages of carrying on into one diagram.

Edit: Must....survive...a week and a half...lol

Cymae
10-15-2008, 03:40 AM
I guess I'm just that awesome. I should draw you diagrams in paint more often :P

Don't suppose you could help me in return and tell me what VBA monstrosity this does:

Columns("B: D").Select
Selection.Insert Shift:=xlToRight
Range(Cells(4, 1), Cells(RowEnd, 1)).Select
Selection.TextToColumns Destination:=Range("A4"), DataType:=xlDelimited, _
TextQualifier:=xlDoubleQuote, ConsecutiveDelimiter:=False, Tab:=True, _
Semicolon:=False, Comma:=False, Space:=False, Other:=True, OtherChar _
:="\", FieldInfo:=Array(Array(1, 1), Array(2, 1), Array(3, 1), Array(4, 1))

Drum Thumper
10-15-2008, 03:44 AM
From the looks of it, it seems you are trying to automate data entry into a spreadsheet.

Cymae
10-15-2008, 03:47 AM
For an answer that is relatively accurate, it is NOT very helpful... :?

Drum Thumper
10-15-2008, 03:57 AM
Asking me for help on something like this is akin to asking a pilot to land a Boeing 747 without radar. Or a tower for that matter. I wish I could be of more help, but programming is most definitely not my forte.

Save a copy, and start changing things one at a time. That's how I do it.