3,927 Posted Topics

Member Avatar for duq_nies

[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.

Member Avatar for Ezzaral
0
43
Member Avatar for Quarie9

Sounds like you're trying to scam a pay-per-click service. If that's not the case, perhaps you can explain further?

Member Avatar for Ezzaral
0
103
Member Avatar for plang007

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.

Member Avatar for Ezzaral
0
242
Member Avatar for TheWhite

Without the use of special class loaders, you can't put all of your jars into a single jar.

Member Avatar for Ezzaral
0
121
Member Avatar for louwee
Member Avatar for Jx_Man
0
146
Member Avatar for Transcendent
Member Avatar for andrewliu
Member Avatar for andrewliu
0
341
Member Avatar for Jessurider

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.

Member Avatar for Ezzaral
0
85
Member Avatar for VernonDozier

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.

Member Avatar for Ezzaral
2
211
Member Avatar for sciprog1
Member Avatar for ajst
Member Avatar for JavaI
Member Avatar for Ezzaral
0
73
Member Avatar for asad_80
Member Avatar for gordsmash

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.

Member Avatar for Ezzaral
0
95
Member Avatar for newack

Use DecimalFormat [CODE] DecimalFormat df = new DecimalFormat("0000"); int a=23; System.out.println(df.format(a));[/CODE]

Member Avatar for newack
0
84
Member Avatar for black_berry

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.

Member Avatar for mKorbel
0
95
Member Avatar for newack
Member Avatar for newack
0
107
Member Avatar for spoonlicker

[B]> I'm being serious here.[/B] No you aren't. You are just wasting people's time.

Member Avatar for spoonlicker
0
3K
Member Avatar for kylestudent

[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.

Member Avatar for techRobo
0
117
Member Avatar for ChieftanBill

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 …

Member Avatar for ChieftanBill
0
92
Member Avatar for Katana24

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.

Member Avatar for ztini
0
2K
Member Avatar for fflittle
Member Avatar for SolidSora

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 …

Member Avatar for Ezzaral
0
159
Member Avatar for annnDi

[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.

Member Avatar for annnDi
0
399
Member Avatar for spoonlicker

> [B]You ruined my whole happiness now. Do you enjoy ruining peoples' lives like that?[/B] Ok, I think it's nap time.

Member Avatar for spoonlicker
0
239
Member Avatar for minghia

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]

Member Avatar for minghia
0
203
Member Avatar for BioJavaPhobic

Initialize the variable to a default value, whichever would make more sense as a default for your usage.

Member Avatar for BioJavaPhobic
0
293
Member Avatar for Sundayy

[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 …

Member Avatar for peter_budo
0
446
Member Avatar for mangopearapples

Your panel doesn't have the focus, so it's not receiving your key events. Add [CODE]content.requestFocusInWindow();[/CODE]after the setVisible() call.

Member Avatar for mangopearapples
0
181
Member Avatar for C:\>

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.

Member Avatar for Ezzaral
0
224
Member Avatar for EmbeddedHelp

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 …

Member Avatar for Ezzaral
0
178
Member Avatar for ahmed_fawzy

Create a subclass of JDesktopPane and override [iCODE]paintComponent(Graphics)[/iCODE] to draw the image.

Member Avatar for mKorbel
0
2K
Member Avatar for Taimoor Rana

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.

Member Avatar for Ezzaral
0
91
Member Avatar for cyrusmay13

I suppose it's possible that someone could. Not sure why they would want to really, but yeah, it's possible that they could.

Member Avatar for eightyseven
0
835
Member Avatar for johnsteve.bravo
Member Avatar for aanders5

Here's a basic example on getting text from a URL: [url]http://www.exampledepot.com/egs/java.net/ReadFromURL.html[/url]

Member Avatar for aanders5
0
343
Member Avatar for Transcendent

> 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.

Member Avatar for mike_2000_17
0
458
Member Avatar for TheOnlyNemesis

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]

Member Avatar for ztini
0
142
Member Avatar for Nickod777

[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?"

Member Avatar for Ezzaral
0
196
Member Avatar for nagmvs

[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.

Member Avatar for Ezzaral
0
112
Member Avatar for mwasif

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.

Member Avatar for mwasif
0
93
Member Avatar for EZ Fanpage

[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.

Member Avatar for FlashDeveloper
0
159
Member Avatar for Progr4mmer
Re: 3D

[URL="https://jogl.dev.java.net/"]JOGL[/URL] is a fairly straight-forward wrapper for OpenGL.

Member Avatar for Ezzaral
0
118
Member Avatar for Zabzacon

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.

Member Avatar for Ezzaral
0
147
Member Avatar for Phaelax
Member Avatar for Ezzaral
0
104
Member Avatar for CityThrille

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. :)

Member Avatar for CityThrille
0
71
Member Avatar for tupac03

Sounds like a job for Google. You could start with this: [url]http://en.wikipedia.org/wiki/Comparison_of_programming_languages[/url]

Member Avatar for chrjs
-3
116
Member Avatar for sciprog1

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]

Member Avatar for Ezzaral
0
366
Member Avatar for snkiz

The short answer? You can't. You can edit everything out of it though.

Member Avatar for ~s.o.s~
0
462
Member Avatar for littlemt

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.

Member Avatar for littlemt
0
175

The End.