3,927 Posted Topics
Re: [B]> but didn't found the code that use Microsoft Visual C++ 2010 Express Edition as a compiler[/B] The point isn't to "found" the code - it's to write it. Make some effort, post your code, ask specific questions. | |
Re: Sounds like you're trying to scam a pay-per-click service. If that's not the case, perhaps you can explain further? | |
Re: Okay, this was scattered across 4 different threads. I have merged them into one. If you wonder why it seems a bit of a mess, that would be why. Plang007, keep it in one thread in the future. | |
Re: Without the use of special class loaders, you can't put all of your jars into a single jar. | |
Re: So did you actually have a question about this code? | |
Re: Just to clear up the confusion: Yes, this thread has been moved from PHP to Javascript. Carry on :) | |
Re: Nidhish, please do not make multiple threads for the same question. You already have another thread for this: [url]http://www.daniweb.com/forums/thread349208.html[/url] I am closing this thread. Please direct further discussion to the other thread. | |
Re: You can view that thread again now. There was a post in the middle that was causing a parsing problem. I deleted it and it's fine now. | |
Re: Edit: Never mind, answered my own question. | |
| |
Re: You code won't even compile. How do you know the result? | |
Re: You could [iCODE]setOpaque(false);[/iCODE] on the panel that you wish to be transparent. It depends on what layout you are using and how you are adding the components. | |
Re: Use DecimalFormat [CODE] DecimalFormat df = new DecimalFormat("0000"); int a=23; System.out.println(df.format(a));[/CODE] | |
Re: Or you can run the code under a 32-bit JVM. The 64-bit JVM will not find the 32-bit Access driver in ODBC, but a 32-bit installation will. | |
Re: Capitalization matters in Java. Look up that function in the API. | |
Re: [B]> I'm being serious here.[/B] No you aren't. You are just wasting people's time. | |
Re: [B]> and can someone also tell me how to make a topic go to solved? [/B] You can click the "Mark this thread as solved" link under the heading "Has this thread been answered?" heading at the bottom of the thread. | |
Re: You are somewhat right that it is exiting at "random" times - it's your generator for the computer choice that is causing the exit. The [iCODE]nextInt(int)[/iCODE] function is specified [QUOTE]Returns a pseudorandom, uniformly distributed int value between 0 (inclusive) and the specified value (exclusive),[/QUOTE]So it is giving you a value … | |
Re: You can use the getSource() method of the ActionEvent to get a reference to the button that was clicked. You will need to cast it to JButton yourself to use it, since getSource() returns Object. ![]() | |
Re: Um, alright, so did you have a question? | |
Re: A couple of things. In your KeyDemoFrame constructor, you're creating a completely separate JPanel.[CODE] public KeyDemoFrame(){ window = new JPanel(); window.setSize(400,400); window.setVisible(true); addKeyListener(this); }[/CODE]You need to act upon the current instance of your custom KeyFrameDemo class instead. You also don't need the setSize() and setVisible() calls[CODE] public KeyDemoFrame(){ addKeyListener(this); }[/CODE]The … | |
Re: [B]> Hope I wasn't too harsh..... [/B] Harsh? No, not really - just clueless. Please stop interjecting useless comments into other people's threads. This "advice" you seem compelled to give on a topic that you don't understand is not helpful. | |
Re: > [B]You ruined my whole happiness now. Do you enjoy ruining peoples' lives like that?[/B] Ok, I think it's nap time. | |
Re: Try using just getInsets() instead of getMargin()[CODE]String label = "Really Super Extra Long String Here"; int len = jButton1.getFontMetrics(jButton1.getFont()).stringWidth(label); jButton1.setSize(len + 2*jButton1.getInsets().left, jButton1.getHeight());[/CODE] | |
Re: Initialize the variable to a default value, whichever would make more sense as a default for your usage. | |
Re: [B]> And give me any one reason, big or small, as to why I'd leave code sitting for one year and not use it, delete it or work around with it?[/B] Any working programmer is going to have plenty of code around that they haven't looked at in over a … | |
Re: Your panel doesn't have the focus, so it's not receiving your key events. Add [CODE]content.requestFocusInWindow();[/CODE]after the setVisible() call. | |
Re: Make sure that your fillRect call is being made before the other UI components are being rendered. Typically that would mean making it the first statement in your paintComponent() method. | |
Re: The query in your "remove" string is a select query - not a delete query. Select queries return result sets and are called with executeQuery(). Delete/update queries return the number of rows affected and are executed with executeUpdate(). Do you know how to delete rows from a table? You need … | |
Re: Create a subclass of JDesktopPane and override [iCODE]paintComponent(Graphics)[/iCODE] to draw the image. | |
Re: You can could also create a [URL="http://download.oracle.com/javase/7/docs/api/java/awt/geom/Path2D.html"]Path2D[/URL] instance and add points to it if you have a specific formula that you need to plot. | |
Re: I suppose it's possible that someone could. Not sure why they would want to really, but yeah, it's possible that they could. | |
Re: Signatures are only visible to logged in users. | |
Re: Here's a basic example on getting text from a URL: [url]http://www.exampledepot.com/egs/java.net/ReadFromURL.html[/url] | |
Re: > I want an answer for your reason. And I want you to cease this completely useless and off-topic hijack of the thread. This isn't the place to discuss your hurt feelings. Get it back on topic. | |
Re: This part works just fine here for me using [ICODE]InetAddress.getLocalHost()[/ICODE] as a test address[CODE] System.out.println("The IP addres is: " + Name[1]); System.out.println("The Hostname is: " + Name[0]);[/CODE] ![]() | |
Re: [B]> Not sure how to flag as answered!! [/B] Just click the link "Mark this thread as solved" at the bottom where it says "Has this thread been answered?" | |
Re: [B]> This is an Interview question.[/B] If you can't figure it out without asking others to do it for you, you should not get the job. | |
Re: Not seeing an inconsistency. Listing shows the thread was created 1 day ago. Replies are within that time frame, with the last being 12 minutes ago. "strange error in MySQL query" is the one you mentioned up above though and that's not the thread you're looking at. | |
Re: [B]> send me sources code and i can help you solve problem [/B] Please keep it on the forums where everyone can assist and benefit from the answer. | |
Re: [URL="https://jogl.dev.java.net/"]JOGL[/URL] is a fairly straight-forward wrapper for OpenGL. | |
Re: It occurs because of the order you are checking the relative locations once they have intersected. You first check the x values and update them +- 100, so consider how that affects the intersects() check in the two blocks that check the y values. | |
Re: I'll second the suggestion on H2. We are using it and it's great. | |
Re: That would depend on the language you're working in - VB.NET? C#? If you'll tell us, we can move this post to the appropriate forum where the experts can help out. :) | |
Re: Sounds like a job for Google. You could start with this: [url]http://en.wikipedia.org/wiki/Comparison_of_programming_languages[/url] | |
Re: Use a [URL="http://download.oracle.com/javase/tutorial/uiswing/misc/timer.html"]Swing Timer[/URL] to update the line coordinates and call repaint. You will need to make "y" a class variable and paintComponent() just needs to draw the line.[CODE] public void paintComponent (Graphics g) { super.paintComponent(g); g.setColor(Color.RED); g.drawLine(y,40,380,30); }[/CODE] | |
Re: The short answer? You can't. You can edit everything out of it though. | |
Re: I think Nick may have thought you were referring to your other thread, which had the domain scattered throughout the code and on many replies. |
The End.