3,927 Posted Topics

Member Avatar for sirlink99

You just need to subdivide the period of your function over a certain number of pixels and build a [URL="http://download.oracle.com/javase/6/docs/api/java/awt/geom/Path2D.html"]Path2D[/URL] from the (x,y) value pairs. Here are some fragments of pseudocode to get you started:[CODE]periodValueOfPixel = x/graphWidth*periodOfFunction[/CODE] Looping over an x range you calc[CODE]y = Math.sin(periodValueOfPixel)*graphHeight[/CODE]and connect your path to …

Member Avatar for Ezzaral
0
933
Member Avatar for Princess90
Member Avatar for Ezzaral
-2
123
Member Avatar for deadelgabar
Member Avatar for Ezzaral
0
141
Member Avatar for hfx642

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.[CODE]public class Structures{ public static class FirstFormat{ } public …

Member Avatar for hfx642
0
475
Member Avatar for jooorj

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.

Member Avatar for jooorj
0
220
Member Avatar for Amr ElGohary

Did you read the sticky thread at the top of this forum entitled "Starting Java"?

Member Avatar for Amr ElGohary
-1
64
Member Avatar for Ancient Dragon

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

Member Avatar for Lardmeister
0
176
Member Avatar for caswimmer2011

Extend JPanel to override paintComponent() and draw your image on the panel. You can place that panel component in your JFrame. Example here: [url]http://www.java2s.com/Code/Java/Swing-JFC/Panelwithbackgroundimage.htm[/url]

Member Avatar for Ezzaral
0
112
Member Avatar for pinkygirl
Member Avatar for pinkygirl
0
116
Member Avatar for sirlink99

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.

Member Avatar for mKorbel
0
105
Member Avatar for Erek4

Moving to general Microsoft Software forum. What you describe sounds basically like Mail Merge functionality in MS Word.

Member Avatar for Ezzaral
0
137
Member Avatar for stupid guy
Member Avatar for jingda
Member Avatar for hueikar

With the [URL="http://download.oracle.com/javase/tutorial/jdbc/index.html"]JDBC API[/URL]. 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.

Member Avatar for hueikar
0
193
Member Avatar for imobby
Member Avatar for ayagi
0
238
Member Avatar for sirlink99

[iCODE]c.gridy = 55;[/iCODE] 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?

Member Avatar for mKorbel
0
171
Member Avatar for Inevitable x7

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.

Member Avatar for Ezzaral
0
121
Member Avatar for cabosun

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

Member Avatar for Ezzaral
0
109
Member Avatar for sciprog1

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

Member Avatar for sciprog1
0
121
Member Avatar for Siberian

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.

Member Avatar for Siberian
0
68
Member Avatar for n3red

StringTokenizer would work, but it's recommended to use String.split() these days. Directly from the StringTokenizer API doc:StringTokenizer is a legacy class that is retained for compatibility reasons although its use is discouraged in new code. It is recommended that anyone seeking this functionality use the split method of String or …

Member Avatar for bibiki
0
121
Member Avatar for Iamthecheese

You have specified T is an Integer in your declaration[CODE]Tree<Integer> tree = new Tree<Integer>();[/CODE]so item should be an Integer as well.

Member Avatar for Ezzaral
0
2K
Member Avatar for alirashidpk

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

Member Avatar for Ezzaral
-1
197
Member Avatar for Dani

Well, the change did indicate that duplicate content would be punished and unfortunately tech help forums do end up answering many of the same questions over and over again. New students roll into the same old curriculum and we end up with 500 more threads about inventory programs. I don't …

Member Avatar for Reverend Jim
3
1K
Member Avatar for Pro2000
Member Avatar for Pro2000
0
354
Member Avatar for shyla
Member Avatar for JamesCherrill
0
297
Member Avatar for tyop
Member Avatar for advxc153

Or try not copy-paste spamming the forums: [url]http://www.techsupportforum.com/forums/f15/cpu-overheating-or-is-it-569771.html[/url]

Member Avatar for Ezzaral
0
124
Member Avatar for extemer

Why are you getting 'exam_fee' when you called the column 'total'?

Member Avatar for crishjeny
0
109
Member Avatar for rovis
Member Avatar for vasuv

Let you know what regarding Autoit scripting? He linked to it. Did you expect him to write the script for you also?

Member Avatar for jlego
0
138
Member Avatar for wingmark

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.

Member Avatar for Ezzaral
0
204
Member Avatar for catpoints

Most likely it's a pathing issue with your image file. Take a look at the [URL="http://download.oracle.com/javase/tutorial/uiswing/components/icon.html"]How To Use Icons[/URL] tutorial for some info on locating resources.

Member Avatar for catpoints
0
2K
Member Avatar for rithish

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

Member Avatar for jon.kiparsky
0
94
Member Avatar for ConstantineOfTX

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

Member Avatar for ConstantineOfTX
0
146
Member Avatar for Justin9825

You only need a single loop through games[] to pair the teams. You just step in from the ends evenly as you loop, so first pair is 0 and length-1. Think about the loop you need to select the rest based on that progression to the middle.

Member Avatar for Ezzaral
0
101
Member Avatar for rithish

[URL="http://en.wikipedia.org/wiki/Programming_style"]Learn to indent first.[/URL]

Member Avatar for rithish
0
167
Member Avatar for aquarian

You resurrected this thread from the grave to ask others to correct some code you found on the internet and send it to you? Amazing. I don't think so. Closed.

Member Avatar for Ezzaral
0
1K
Member Avatar for tracydo

[B]>Uhh...why is num=7 is never used?[/B] Read the code again and watch the calls to nextInt(). You'll see it.

Member Avatar for jokers6
0
122
Member Avatar for jingda

Actually that poster does not have any sig links. Apparently he just likes to make absolutely useless comments in other people's threads. I didn't see a single post that added any relevant value.

Member Avatar for Portgas D. Ace
0
289
Member Avatar for beginer231
Member Avatar for esraa waqfi
Member Avatar for lookuta2011

You forgot to post your code (Be sure to use [noparse][CODE][/CODE][/noparse] tags)

Member Avatar for JamesCherrill
0
103
Member Avatar for seanmchugh.info

Why should anything be done about him? I read through your thread there. You started acting like a jackass and your thread got closed. I don't see the problem as being on his side there.

Member Avatar for abelLazm
-1
133
Member Avatar for ggyyree
Member Avatar for Ezzaral
0
169
Member Avatar for xxreenaxx1

Why not ask them then? If they "helped", they should be able to tell you quite easily what it is and why they did it that way.

Member Avatar for xxreenaxx1
0
92
Member Avatar for tracydo

Hints on correcting those 3 errors: Check spelling, length is a method of String instead of a property, and you can't define the same variable more than once within a block.

Member Avatar for dononelson
0
501
Member Avatar for nitnayak
Member Avatar for tnccjavaMatt

@irfan_iba: What language in VS? You have hijacked someone else's thread in the wrong forum, demonstrated no effort at solving the issue on your own, and you haven't even indicated which language you're working with. Quite a roll there.

Member Avatar for stultuske
-1
4K
Member Avatar for gingerfish

You can add a [ICODE]break[/ICODE] statement after [ICODE]found=true[/ICODE] as well. There is no reason to keep looping once found.

Member Avatar for Ezzaral
0
189

The End.