3,927 Posted Topics

Member Avatar for warlock300300
Re: Help

And the assignment even says sample implementations are available - talk about lazy...

Member Avatar for Ezzaral
0
83
Member Avatar for Ghost

try[code]try { // Create a URL for the desired page URL url = new URL("http://www.cinndev.com/testFile.txt"); BufferedReader in = new BufferedReader(new InputStreamReader(url.openStream())); String str; while ((str = in.readLine()) != null) { System.out.println(str); } in.close(); } catch (MalformedURLException e) { } catch (IOException e) { }[/code]

Member Avatar for Ezzaral
0
431
Member Avatar for TimothyKhoo
Member Avatar for kevinpeterson22

[QUOTE=kevinpeterson22;680566]Hi I am new to MYSQL DB and i am a fresher here i am having code which is perfectly run and the only thing is i have stored the data in file but now i want to stored the file in DB i mean i want to change file …

Member Avatar for jwenting
0
296
Member Avatar for lich

If this is for your "email marketing campaign" (spamming), we're not going to show you how to scrape email addresses for your spam list.

Member Avatar for Ezzaral
-2
93
Member Avatar for Natique
Member Avatar for Natique
0
188
Member Avatar for ravikiran032
Member Avatar for Ezzaral
0
131
Member Avatar for Alex Edwards

Never having used any GObject components, I don't really understand exactly what you are wanting to emulate. As far as other rendering strategies, it really depends on what you're doing now and what you're wanting to change about it. You might find some value in looking through the source code …

Member Avatar for Ezzaral
0
136
Member Avatar for joshmo

That is just a method declaration, not a constructor. As already stated above, constructors do not specify a return type because they always return an instance of that class.

Member Avatar for joshmo
0
2K
Member Avatar for VernonDozier

You have made this a bit more complex than need be. For simple transformations, the Graphics2D methods rotate() and translate() will suffice (they additively modify the current AffineTransform of the graphics context) without any need to obtain or work with an AffineTransform object directly. I wrote this small example that …

Member Avatar for VernonDozier
0
1K
Member Avatar for Dave Sinkula

[QUOTE=Ene Uran;596659]Are prisons part of infrastructure? California needs lots more prisons![/QUOTE] They wouldn't if they stopped incarcerating for minor drug possession violations and if prison life were made much more difficult. Taxpayers already pay too much for needless or ineffective imprisonments.

Member Avatar for GrimJack
0
610
Member Avatar for HLA91

Well, the most noticeable thing right off the bat is wildly inconsistent naming and formatting conventions. Yes, they actually matter. [url]http://java.sun.com/docs/codeconv/html/CodeConvTOC.doc.html[/url]

Member Avatar for Alex Edwards
0
177
Member Avatar for dianac10

No, simply no, you cannot load an external browser program into a JFrame. They are not Java components - they are standalone programs.

Member Avatar for peter_budo
0
114
Member Avatar for dianac10
Member Avatar for Alex Edwards
0
77
Member Avatar for cambridgegal300

If you bothered to read the link he posted, in Drawing Geometric Primitives, they discuss the rounded rectangle and oval both.

Member Avatar for Ezzaral
0
665
Member Avatar for zyaday
Member Avatar for Salem

I'm just getting to the point I won't read code that isn't in code tags. I may reply that they need to post the code in tags, but if the code isn't formatted the question can go unanswered for all that I care.

Member Avatar for jasimp
1
190
Member Avatar for lordx78

The link that I posted in your other thread about not displaying the image covers this...

Member Avatar for Ezzaral
0
280
Member Avatar for augee

Have you looked at any of the tutorials and sample code in the Sun JMF section? There is a lot of information there for you to learn from.

Member Avatar for Ezzaral
0
40
Member Avatar for CoolGamer48

Your professor may have last compiled a "massive project" in 1970. :) My workstation compiles and jars a Java project of 869 source files in ~20 seconds. Incremental background compiles while editing are near enough real-time.

Member Avatar for William Hemsworth
0
185
Member Avatar for ravikiran032

[QUOTE=ravikiran032;677274]i don't understand how byte stream could read images. does it need help of applets or else.[/QUOTE] Images are comprised of bytes. You want to read them. Byte streams read bytes. You use a byte stream. ...

Member Avatar for ~s.o.s~
0
128
Member Avatar for dise652

[QUOTE=sittas87;674579]error in sentence: ...Its round, like a [COLOR="Green"]Apple[/COLOR][/QUOTE] Error in sentence: It's round like [I]an[/I] apple. (Since we're correcting things...)

Member Avatar for sittas87
0
309
Member Avatar for chodhry
Member Avatar for R0bb0b
0
200
Member Avatar for mimiru83

Well, I would think it unlikely that you are going to retrieve 10 images per second from an HTTP connection, but you could use a [URL="http://java.sun.com/javase/6/docs/api/javax/swing/Timer.html"]Timer[/URL] to repeat the HTTP GET requests on the connection on a set timing interval.

Member Avatar for mimiru83
0
70
Member Avatar for Ash22ambition

If you have specific questions, post your current code in [noparse][code] [/code][/noparse] tags and your questions or errors. If you have no idea how to proceed and need someone to walk you through the whole thing you are probably out of luck. (And using 17 exclamation points does not get …

Member Avatar for jasimp
0
92
Member Avatar for hny_lyn

See Chapter 7: Polymorphism here: [url]http://www.codeguru.com/java/tij/tij_c.shtml[/url] And please tone down the exclamation points a bit when posting.

Member Avatar for Ezzaral
0
79
Member Avatar for lordx78

Most likely it's a resource location issue. You should use getClass().getResource(String) to locate the resource to load. You can read more about that here: [url]http://java.sun.com/docs/books/tutorial/uiswing/misc/icon.html[/url]

Member Avatar for lordx78
0
99
Member Avatar for acejames1

[QUOTE=acejames1;674789]i would ask that all software developers make programs that work and do the job right the first time[/quote]Oh, well sorry, that goes against our desire to make programs that don't work and do the job wrong, just to laugh at your frustration with it. [QUOTE=acejames1;674789]i also think techies that …

Member Avatar for Ezzaral
0
165
Member Avatar for Motvel

There is no specific method for that. Just use add() and remove() to switch their places.

Member Avatar for Ezzaral
0
52
Member Avatar for shaynicb25
Member Avatar for Ezzaral
0
135
Member Avatar for onedayzef
Member Avatar for arun_cdm

Help yourself instead, by figuring this out and coding it. It's YOUR project and you are supposed to be learning something from this. What do you plan to do after you leave school when you have a project assigned to you? Ask people on the internet to hand you a …

Member Avatar for Ezzaral
0
95
Member Avatar for sach_ak47
Member Avatar for sandawg

[QUOTE=sciwizeh;673097]not the main loop, i get why you are using a loop there but why this: [code=java]while ( payrate <= - 1 ) { System.out.print ( "Please enter a positive number." ) ; payrate = input.nextDouble ( ) ; }[/code] all this does is keep taking in a number and …

Member Avatar for sandawg
0
256
Member Avatar for toyomansi

Place that code in a method of your ListTest() class rather than adding it directly in main(). main() should be performing operations on your ListTest instance and should not directly operate on any members of that class.

Member Avatar for toyomansi
0
691
Member Avatar for liam_page1

You won't need much of anything in second year if you don't pay attention in class and pass the one's required in first year. Perhaps you should take a look at the "Starting Java" FAQ stickied at the top of this forum if you have no relevant class materials to …

Member Avatar for stultuske
0
100
Member Avatar for Salem

[quote]"Our world has grown weary of greed, exploitation and division, of the tedium of false idols and piecemeal responses, and the pain of false promises," he told the crowd.[/quote] So he's saying the world has grown weary of the church?

Member Avatar for sneekula
0
155
Member Avatar for scunnywhite

1) Put code between [noparse][code] [/code][/noparse] tags when posting it (There is a button that will surround highlighted text with code tags in the toolbar of the post editor as well) 2) Compiler errors tell you explicitly what the problem is and on what line it occurs. Read them. Post …

Member Avatar for Ezzaral
0
85
Member Avatar for CoolGamer48

[QUOTE=teh noobshow;668636]...<useless blather>...[/QUOTE] Nothing in that post could be construed as the least bit helpful to the original poster's question.

Member Avatar for Ezzaral
0
866
Member Avatar for twgood

I assume that was added automatically when code completion filled in a method or interface for you? If so, just replace that with your own code for the method. It's there as a placeholder so that if you don't fill in your own code, you will receive an UnsupportedOperationException when …

Member Avatar for Ezzaral
0
73
Member Avatar for teh noobshow
Member Avatar for sciwizeh

I didn't find much detailed documentation on the available parameters for code templates besides ${cursor} and ${selection} - even in the netbeans api docs themselves for the editor.codetemplates package. File templates use ${name} for that, but it didn't work in the editor code templates.

Member Avatar for sciwizeh
0
96
Member Avatar for Naween

It's not working for the reason that I mentioned at the bottom of your other "need help!!!!1!!!" thread on the same code. Obviously you didn't read it.

Member Avatar for Ezzaral
-1
86
Member Avatar for Dani
Member Avatar for William Hemsworth
0
997
Member Avatar for Naween

Do you see a getSelectedItem() in the [URL="http://java.sun.com/javase/6/docs/api/java/awt/Checkbox.html"]Checkbox[/URL] API? Would such a method even make sense for a checkbox? Note, please place all code in [noparse][code] [/code][/noparse] tags when you post and give your threads a more descriptive title than "Help!" (as you seem to title all of your posts).

Member Avatar for sciwizeh
0
105
Member Avatar for HLA91

You can't declare "_aboutAction" as Action unless it implements the Action interface or extends AbstractAction, which your AboutAction does not.

Member Avatar for HLA91
0
164
Member Avatar for nageswar48958
Member Avatar for EriCartman13
Member Avatar for Naween

Be aware that you have re-declared all of your class-level component variables in your init() method, so if you refer to any of those outside of init() you'll find they are null and none of your listeners will work as you expect.

Member Avatar for Ezzaral
0
92
Member Avatar for Scuppery

The first time your wife sits into the toilet in the middle of the night after you left the seat up, you will [B][U]not[/U][/B] forget to put it back down again... :P

Member Avatar for abetageek
-2
275

The End.