3,927 Posted Topics
Re: 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 … | |
Re: No one is going to take your quiz or complete your homework for you. | |
Re: Threads merged. Please do not create multiple threads for a single question. | |
![]() | Re: 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 … ![]() |
Re: 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. | |
Re: Did you read the sticky thread at the top of this forum entitled "Starting Java"? | |
Re: [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. | |
Re: 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] | |
| |
Re: 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. | |
Re: Moving to general Microsoft Software forum. What you describe sounds basically like Mail Merge functionality in MS Word. | |
| |
![]() | Re: 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. ![]() |
Re: Sounds like a homework question. Were you paying attention in class? | |
Re: [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? | |
Re: 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. | |
Re: [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. | |
Re: 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. | |
Re: 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. | |
Re: 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 … | |
Re: 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. | |
Re: "Data Entry Operators"? Are you referring to spammers who use software to get around Captchas? | |
Re: 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 … | |
Re: This?[CODE]cellName = concat(cellName, '$The_New_Value')[/CODE] | |
Re: I'm guessing that your db connection is failing. Have you verified it? | |
Re: Or try not copy-paste spamming the forums: [url]http://www.techsupportforum.com/forums/f15/cpu-overheating-or-is-it-569771.html[/url] | |
Re: Let you know what regarding Autoit scripting? He linked to it. Did you expect him to write the script for you also? | |
Re: 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. | |
Re: 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. | |
Re: 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] | |
| |
Re: 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. | |
Re: [URL="http://en.wikipedia.org/wiki/Programming_style"]Learn to indent first.[/URL] | |
Re: 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. | |
Re: [B]>Uhh...why is num=7 is never used?[/B] Read the code again and watch the calls to nextInt(). You'll see it. | |
Re: 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. | |
Re: [QUOTE=;][/QUOTE] Wow, that's a totally pathetic thing to do. | |
Re: You forgot to post your code (Be sure to use [noparse][CODE][/CODE][/noparse] tags) | |
Re: 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. | |
Re: I'd recommend giving [URL="http://www.h2database.com/"]H2[/URL] a look. | |
Re: 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. | |
Re: 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. | |
Re: @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. | |
Re: You can add a [ICODE]break[/ICODE] statement after [ICODE]found=true[/ICODE] as well. There is no reason to keep looping once found. |
The End.