Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Help, perhaps - do your homework, no.

Ask specific questions. Post the code you have started with and describe what you are having trouble with.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

If those are just entries in your log files and the result was 404 or 403, you don't need to worry about anything. Those are just bots seeking vulnerable spots. If you don't even have such a /_vti_bin/ directory, they can't exploit anything in it.

>Despite the fact that they are listed in the logs of visited pages

Those are logs of pages requested - not necessarily actually visited. That's why you will find bot fishing attempts there.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Certainly you can have multiple conditions. In your example above though, you should have an outer set of parenthesis around the entire expression. The parens around each clause are optional.ie

while(yearsloop <= years && selection == JOptionPane.YES_OPTION)
Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Look at your nested loops in the move method. You are having problems with your +1 methods, right and down. Your -1 methods, left and up, work fine. Think about what goes on with those +1 operations as you loop through in a positive direction from 0 to end.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

If you cannot explain, how do you know you have a bug? Surely you can describe the problem.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

You mean to honestly say you Googled 'java graphics' and found nothing? Was your monitor turned on?

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

What is the problem with those inputs?

And why repeat the exact same code in the I,J,K,L blocks when you can reduce that to a single if() statement?

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Posts can be edited within 30 minutes of submission by clicking the Edit button. After 30 minutes, only a moderator or administrator can edit it and will only do so for certain reasons.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

That is not a question - it's a dump of your assignment.

Ask specific questions and show that you have made some effort with this if you would like others to offer some assistance.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

I doubt he is still looking for help with this two years later.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

> the cheapest gift you can give others is friendship

No, the cheapest gift would be a handful of dirt - assuming that you didn't have to ship it or wrap it. Friendship can sometimes cost you quite a lot.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

I consider promotion of the idea that marriages may fail because God is not involved absolutely ignorant. Up until those particular points, much of it could be considered reasonable; not necessarily factually accurate, but reasonable. He then throws in the notion that a lack of deity involvement may be a cause. That seems about as related as planetary alignment on their marriage day and whether or not a groundhog sees his shadow. It has absolutely no innate bearing upon the relationship between two human beings unless they subscribe to such an assertion themselves. I suppose you could say that a lack of blue cars in the home is a factor, and you would be correct if the individuals involved considered blue cars a necessity of a successful marriage. It won't have much bearing on the family that likes red cars though.

Never the less, Dani is completely right. This has nothing to do with internet marketing.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

> 5.God is not involved in the marriages.
> 7. Live Holy Lives
Are you implying that atheists cannot sustain a healthy marriage? What kind of ignorant drivel is that?

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

This is not a homework completion service. Show that you have put in some effort on this assignment. Ask specific questions regarding the areas that you do not understand.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Yes, a table model is the basis for the data displayed in the table. I'd recommend checking out the tutorial on JTable: http://download.oracle.com/javase/tutorial/uiswing/components/table.html

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Glad you got it working.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Ok, first thing, drop the static modifiers. Let TimeCard be a normal object and make that code you have in the static method timeCard() your constructor for the class. main() can instantiate it to run it

public static void main(String[] args) {
  new TimeCard();
}

This just gets you away from the "make everything static and run it through main()" design mindset. Java is an OO language so you want to approach it that way as soon as possible.

Now, moving on, initialize your 'time' Jlabel in the constructor and add it to your 'cPane' panel when you are setting up your frame and panel components. Post back if you have trouble with that part. It's better if you can try it yourself first.

Once the label is on the panel, all you have to do to update the time text is call

time.setText( timeNow() );

That can be done with the Swing Timer I mentioned above, but you need a label displaying some text first.

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

What are you using for a table model and how are you creating it?

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

I'm not really following your description of the issue. If you could post the code and mention where you believe there is a problem, that would probably help.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Define a JLabel at the class level and add that your panel. Create a Swing Timer that calls your function and sets the label text with that value.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

I have no idea about JXTable, never used it, but updating data is no problem in the JTable component. You simply update the underlying model and fire a dataChanged event. Some methods of the default table model fire that event for you automatically.

Edit: I don't see where you actually update any data in the model used by your table. You need to re-query the table or simply add those fields directly into your table model. It looks like JXTable uses the same TableModel interface for its data.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

That depends on how you wish to present the report. You can print it yourself with the AWT printing mechanisms or you can look into a reporting tool such as Jasper Reports of JFreeReport.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

BzzBee, this thread is not a PHP discussion and is therefore off-topic here. If you wish to post community feedback, there is a forum to do so.

Also, as already mentioned above, everyone answering questions here is doing so voluntarily. Complaining that they are not solving your issues in a timely manner and calling the forum rubbish is not likely to make others more enthusiastic about helping you.

Closing this thread. Feel free to post in Community Feedback if desired.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

You need to the jar itself in the classpath. Java will look for the necessary files in that jar. After the classpath, you need to specify the name of your class to run your compiled program. That is why I had "ClassYouWantToRun" in my statement above.

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

You don't execute the driver directly. It's used by your code to obtain and use a connection like so: http://www.h2database.com/html/tutorial.html#connecting_using_jdbc

Here's a general JDBC tutorial as well: http://download.oracle.com/javase/tutorial/jdbc/index.html

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

>java -cp c:/H2/bin/h2-1.2.141.jar ClassYouWantToRun The compiled jar file is located in the /bin directory.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

int date = 01/01/2010; divides out to zero, so the compiler has no problem with it.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

> Slight correction for the range of values: 0-4

Good point. I misstated that.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Well, line 12 is generating a random int from 0-5. So what effect do you think that has in line 13?

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Where are you putting the jar? It should treat the jar file location as the root and paths relative to that location should resolve just fine.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Reset your statement parameters and execute the statement - just like inserting any data into a table.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Sure, with an embedded database it's no trouble. We do this with H2 for every new project when it's first created. You just run a script with your data definition code in it.

Edit: H2 can also create an in-memory database that does not persist when closed.

codeFaceMcGee commented: Exactly what I needed. +1
Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

It is not "quarterMachine" that you need to qualify - it is the "quarter" enum value itself. You are using it as if it were a variable within the TestSlotMachine class, which it is not. That enum is defined in your SlotMachine class as CoinSlot, which is why you have to specify SlotMachine.CoinSlot.quarter if you want to reference the quarter enum value.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Which line is the error occurring? Getting the connection or executing the statement?

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

So where are all of those classes?

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

Go to the Geeks Lounge, find the thread
" News Story: U.S. Military Bans Medal of Honor's Sale From Its Bases--Has Censorship Gone Too Far? "
Click either the Go To New Post button on the left or the Go To Last Post link on the right. Both take you to the top of the OP.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

You haven't initialized any of your array variables in your Matrix_Mult class.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

From the API doc for Scanner.nextInt()

Throws:
InputMismatchException - if the next token does not match the Integer regular expression, or is out of range

"11/11/2010" does not look much like an int.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Neither "Go to first new post" nor "Go to last post" links work for news stories.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

If you are trying to use the "quarter" enum value, you need to fully qualify it: SlotMachine.CoinSlot.quarter "quarter" is not part of the TestSlotMachine class, so it cannot be used directly.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

paramGraphics.drawImage(localImage, 0, 440, 280, 200, this); Read the API doc on the drawImage method. Those numbers are the coordinates and dimensions of the image being drawn. If you want it drawn elsewhere, you have to change them.

> What do you mean by make some space?

Well, I assume you don't want to draw right over your other components, so you have to make some space in your layout to accommodate the image. I would actually recommend placing the image in a JLabel so it can be placed in your layout as a component.

You can add the image under the text the same way. Here's a link on using JLabels to display images: http://download.oracle.com/javase/tutorial/uiswing/components/icon.html

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Look up Jasper Reports or JFreeReport.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

> How do I move the image to the top (just below the title)?

Change the drawImage() coordinates. Of course, then you will have to make some space for it at the top. So you would have to change your component layout.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Yeah, I didn't think that was really going to be an option for you. I agree, it's pretty crazy what MS charges for the VS+MSDN licenses. Good luck. I think all you can do is turn out your pockets and raise your hands.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

> Visual Stidio 2010...or?
... Java? ;)

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

The simple spaces will work just fine. Perhaps you removed them in one of your revisions?

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Add "\n" for a line break. You can inline that with the text if you like. ie +"\nBall position: " Edit: You can also look into the String.format() method if you like.