Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Extend JPanel to override paintComponent() and draw your image on the panel. You can place that panel component in your JFrame.

Example here: http://www.java2s.com/Code/Java/Swing-JFC/Panelwithbackgroundimage.htm

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

@mKorbel: I don't understand your question. Making the inner classes public static allows for instantiation of any of them without an instance of the parent class, so the parent class is really no more than a container for the structures.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

He didn't say you couldn't, just that he wouldn't advise it - a sentiment I agree with, by the way.

If you really want to though, you can put them into a single file by making each of the inner classes static.

public class Structures{
    public static class FirstFormat{    }
    public static class SecondFormat{    }
}

and access them like

Structures.FirstFormat recStruct = new Structures.FirstFormat();

I think you're better off keeping each in a separate file and just putting them into a single package. Later, if you need to share them with another project, put them in their own jar file that you can include as needed.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

So get started. Post specific questions if you run into trouble.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

You needed an "Introduction" and "Diagrams" just for information?

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Moving to general Microsoft Software forum.

What you describe sounds basically like Mail Merge functionality in MS Word.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Ctrl-C, Ctrl-V

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Parkway Drive - Horizons

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Just extend JPanel, JLabel, or JComponent to override the paintComponent(Graphics g) method and put all of your graphic code from the applet inside that method.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Why does god and cod sound so alike?

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Apparently the question is "do my homework for me".

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

There is example code in the tutorial that I linked.

mKorbel commented: just kidding +8
Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

You don't find, you decide. It is a grid of component cells that you're creating. Read the tutorial on Grid Bag that mKorbel linked above.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

With the JDBC API.

You can use the JDBC:ODBC bridge driver to connect. It's quirky, but it's the only free option available to connect with Access.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Keep the item value separate from its description. You can override toString() to provide whatever string display you wish to show, but keep the value in a separate variable in your item object. You shouldn't have to be parsing it's price out from a string.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

c.gridy = 55; You do realize that gridx and gridy are row and column index values and not pixels? Did you really want this component in column 56?

mKorbel commented: hmmm, right +7
Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

> any solutions?
Tech support?

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

> Line 4 and 9 respectively are where i get errors.
You should post the stack traces for those errors instead of expecting people to guess what they are.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

You can see the package structure near the top of the document jsc.combinatorics.Permutations . Import that class and make sure you have the jar file in your classpath.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

You have specified T is an Integer in your declaration

Tree<Integer> tree = new Tree<Integer>();

so item should be an Integer as well.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

You were given four references. Did you read them at all?

Do you have anything more specific to ask than "plz help me"? If not, then perhaps the company does need someone else.

zachattack05 commented: I was thinking the same thing but didn't want to say it. +4
Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Perhaps you can provide the client a small utility program they could run on their end against the new files to convert and upload the data to your server, assuming they are running a Windows OS.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

From the linked site

You can run the program in a batch mode using command line interface. Besides, it includes a DLL which you can use from your own application.

This would imply you may be able to run this as a utility from your own script and then run the result script within My
SQL to generate the data.

Perhaps you should read more closely before replying so rudely to someone who was merely offering a suggestion to solve your problem.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Sounds like a homework question. Were you paying attention in class?

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

"Data Entry Operators"? Are you referring to spammers who use software to get around Captchas?

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

This?

cellName = concat(cellName, '$The_New_Value')
Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Glad you got it sorted.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Add

try {
    $dbh = new PDO( ... );
} catch (PDOException $e) {
    echo 'Connection failed: ' . $e->getMessage();
}

just to be sure.

Curious why are you making $dbh global and also returning it from the function. That seems redundant and prone to causing some confusing behavior later.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

The redundant ones, just like James said above.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

I'm guessing that your db connection is failing. Have you verified it?

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Stevie Nicks or Amy Lee - hard to call.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

It's windy today ;)

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster
Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

> And the gods apparently thought so too because there was lots of sunshine, flag waving, and everything was perfect.
I guess the gods also approved of me going to work today, because there is much sunshine and flag waving here too.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Yep, moving to Java.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Well, no one here can see over your shoulder, so post the script (or fragments) and a detailed question about what you are having trouble with and perhaps some of the JS gurus can give you some suggestions.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Let you know what regarding Autoit scripting? He linked to it.

Did you expect him to write the script for you also?

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Thread closed. This question is a copy-paste job from Yahoo Answers posted here by a lame spammer just to push links.

Perhaps someone else can still benefit from the answers given above, so I will leave the thread here.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

And he was already told this in his other thread for the exact same issue:
http://www.daniweb.com/forums/showthread.php?t=360895

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

That is Nick's signature. It has nothing to do with your post.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

game.length/2 is half the array. Did you ever try that with your loop?

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Read the error message. I am guessing that it is reporting that class "login" does not implement ActionListener - because the whole class is broken. You can't put all that code inside main(). You also have to spell the methods correctly when overriding.

The errors in your current classes are numerous and you need to at least get the basic structures of them to a point that they will compile.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

You need to get those classes to the point you can even run them first. You have most of the code in "login" in your main() method. Obviously it won't even compile. And why have you declared them abstract?

I think you are way too far ahead of yourself with this. Learn basic Java fundamentals before you try to hack together Swing code.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster
Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

I'm not sure where you ended up with this or if you are still working on it, but the loop you posted runs the entire array length and that is more than necessary.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Well, you haven't posted your loop code and I can't see over your shoulder.

I actually have to leave for the day, so I will just leave you with the advice to study how the elements in my previous post relate to the loop index and I will reiterate that you only need to loop through half of the array.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Ok, more explicitly:
[game.length-1-0] = "UNC"
[game.length-1-1] = "UGA"
[game.length-1-2] = "UVA" game.length-1 itself is just an expression for "the last element of my array". It's fixed and you are walking toward the middle from that value. What part of the above progression relates to your loop variable?

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

The last element is game.length-1 .
The second to last is game.length-2 .
... see where this is going? How can you use the value of j to get those elements?

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Yes, that is nearly what I am referring to, however you still need to incorporate your loop index "j" into that second expression involving length.

Think about what element you need for the second pair and how it relates to the array length.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

I was referring to your array.length. The last element of game[] is game[game.length-1] .