Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

That is exactly what your args parameter to the main method is for.

In the example you mentioned,"java test 2 3", args would include {2,3}.

You can simply access them by index.

int a = args[0];
Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

It sounds like you're trying to re-direct another site's content through your app after verification and I would question the legality/ethics of that?

Perhaps you can clarify a bit, because this may be walking the edge of our Keep It Legal rules.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Can you help me or tell me what to do? I don't want explinations because i don't UNDERSTAND ANY of it!

Please, can you just help me....

The forums are for helping you work out your programming problems. They aren't a "code on demand" service.

If you aren't willing to put any effort into it, post in the Web Development Jobs sections and pay someone to write it for you.

diafol commented: Nicely put +13
Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Take a look at the anchor property.

Edit: You'll also need to look at the weightx property. You can read about it in the general notes for the GridBagLayout class.

masijade commented: I love GBL. ;-) +15
mKorbel commented: both contstrains +1 +9
Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Unrelated to your question, but a general advice: do not do this

public class Frame extends JFrame{

JFrame itself extends java.awt.Frame . You're just asking for confusion and possible bugs by naming your class Frame.

mKorbel commented: very good point +9
Anuradha Mandal commented: Good post. +0
Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Per our forum rules:
Do provide evidence of having done some work yourself if posting questions from assignments.

Please post your current code, specific questions, error messages, pseudocode, or anything to demonstrate that you are making some effort towards solving this yourself if you wish to receive further help with it.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

I believe the code he is referring to can be found in this post.

If you have further questions, please start a new thread of your own and post your current code and specific questions.

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

You need to demonstrate a bit of effort on this instead of asking others to spoonfeed you a project. It's your project.

Anuradha Mandal commented: Whats wrong. +0
Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

This thread is just a mess of hijacks now. Closing.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Please note the rules and keep discussions on the forum - not email.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

I am marking this solved since you have now created another new thread to continue this.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

You didn't say which OS you're trying to install.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Merged duplicate threads...

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

With classic lnf under win7, the frames look like normal win7 windows, but the controls within them look like the classic versions.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

I would revise that to a single array of Student objects and only one loop.

And you're correct: The OP needs to show a bit of effort if he wants any more help with this.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

So which is it? "I want to develop a sound equaliser" or "where can i find codes for it".

If you want help, ask a question. If you want code handouts, you're in the wrong place.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

"Pin The Tail On The Donkey"

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

I guess that since there are no other specific questions, this thread is solved.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

> or any set methods!!!

Well, I would imagine that the assignment calls for setters as well since it is an "into to objects" type of assignment.

Additionally, the class name should be capitalized and the instance variable names should start with lowercase letters by convention.

Edit: hehe, cross-posted with Norm. I'm not the only standards stickler :)

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Read the API docs for the class.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

> if i want a list of preson not only one two or three..

Use an ArrayList unless your assignment requires you to use a simple array of Person[].

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

> PS how do you up vote a reply, i can only see how to close the question

Each post has a pair of arrows on the right side. These allow you to up or down vote the post and optionally leave a reputation comment.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

It certainly doesn't work in a Win7 command window - it prints an ankh symbol.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Why do you have to complicate things? The answer is simple.

System.out.print("\f");

And did you try that before you posted it?

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Post your code and specific questions or errors here and perhaps someone can help. Requesting email help is against our forum rules.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Put them on their own panel with an appropriate layout manager: http://download.oracle.com/javase/tutorial/uiswing/layout/index.html

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

W.A.S.P. - The Heretic

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Moving to Javascript.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Did you check the API?

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

You could also use something like this example with a JList: http://www.java2s.com/Code/Java/Swing-Components/TableRowHeaderExample.htm

Majestics commented: Thanx........ +6
Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Just add the data to your table model. If you want to render it differently, you can create a custom table cell renderer for that.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

This thread is from 2008. It was resurrected by a hijack, which was moved to a new thread of its own. I assume the original issue is resolved. Closing the thread.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Service thread? If you mean advertising, the only appropriate place for your post would be the Post Your Resume forum.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Megadeth - In My Darkest Hour
That whole album is just classic.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Have you tried just specifying "com.sun.java.swing.plaf.windows.WindowsClassicLookAndFeel"?

Majestics commented: Thanx a million. +6
Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

The answer is:
Please ask comprehensible questions in the proper forum, which is not the PHP forum.

Thread closed.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Your method can easily check versus size and return the minimum of the requested number or the remainder of the list. As Norm already mentioned, you just need to keep track of your current list index.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

You're going to need to increment y and repaint() at some point.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

I'd also recommend re-writing the code to put the code you have in those switch cases into a function or use a variable for which array elements to operate on, because the only differece between them seems to be"fixdep_status-1" vs "fixdep_status-2".

There's no reason to repeat that much code.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

There is not a way for that to fall through both conditions on your switch. Use an if condition instead.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

The easiest way is to use a label with the icon. Here's a tutorial on that: http://download.oracle.com/javase/tutorial/uiswing/components/icon.html

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

The error clearly states that on line 83 of your mertSort class you are trying to access index 2 of an array that does not have that many elements.

Find out why your indices are going out of bounds. Use println statements to test the conditions.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

You still didn't post the errors.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

You have not declared the readArguments() method correctly. Check the method signature and figure out what is missing.

You also do not have a "readArray" variable in main() at all. You can't pass an argument that doesn't exist.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

That's your assignment, not a specific question. What are you having trouble with specifically? If you're receiving errors, post the stack traces.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Check your Dvd class constructors against the one you are trying to invoke with the super() call in the MovieDirector constructor.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Post the code.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Please post a question. There is no question above.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

You could check out IzPack.