3,927 Posted Topics

Member Avatar for MB1765

You could do the whole site in Flash I suppose :P ... which of course would be really slow and irritating...

Member Avatar for MB1765
0
194
Member Avatar for abar_sow

You can either use the AppletViewer as described here: [url]http://java.sun.com/javase/6/docs/technotes/tools/windows/appletviewer.html[/url] or create an HTML page and place an Applet tag in it to run the applet in your browser: [url]http://java.sun.com/docs/books/tutorial/deployment/applet/html.html[/url]

Member Avatar for abar_sow
0
177
Member Avatar for venomlash

I assume you mean IDE when you say compiler, since those are what you listed. I've never used BlueJ, so I can't comment on that one. Eclipse and Netbeans are both good IDEs and are free. There are many commercial ones out there, but I doubt they add enough value …

Member Avatar for jbennet
0
155
Member Avatar for Cerberus

If you are using MySQL, in a query you can use the DATE_FORMAT() function [U][URL]http://dev.mysql.com/doc/refman/5.1/en/date-and-time-functions.html#function_date-format[/URL][/U] to change the display format of a date. I don't believe you can change the format that the date is stored in though. If it's a different database you'll have to check the docs. Most …

Member Avatar for Cerberus
0
102
Member Avatar for sickly_man

Is that not exactly the same as your browse() function here: [url]http://www.daniweb.com/forums/post406611-7.html[/url] You would need to set the ROWS define to 3 instead of 20, but it seems the same to me.

Member Avatar for Ezzaral
0
85
Member Avatar for sickly_man

[quote=sickly_man;406570]i dont think so because both errors refer to the first line of the foreach statement. foreach ($header as $element) and the other one which is the same foreach ($header as $element) please help me this is annoying the shit outta me.[/quote] You don't show the assignment of $header. Are …

Member Avatar for Ezzaral
0
501
Member Avatar for no1zson

I do not see any structural problems there. You have overridden the method correctly. There are other issues with the code though and it will not compile as you have it posted. You have defined "restock" as an int, assigned it a double value in the constructor, and also left …

Member Avatar for no1zson
0
97
Member Avatar for Designer_101

[quote=Designer_101;405558]hi, my name is Reece, i have learnt, javascript, css, php, xhtml, html and loads of graphic stuff. Im 14 and my teacher said for me to learn asp, but im sure there is no difference, is there??[/quote] I'd recommend going on to Java or C# personally. No reason to …

Member Avatar for pty
0
151
Member Avatar for Aia

[quote=Aia;401955]It is as impossible to man to change the course of this earth as it is impossible for man to extend his arm and reverse the course of the river Mississippi upstream.[/quote] Perhaps, but it wouldn't hurt if we at least tried to not trash the hell out of it …

Member Avatar for lasher511
0
685
Member Avatar for ndeniche

If you are using Windows, have you tried Wampserver? [url]http://www.wampserver.com/en/[/url] One simple install for Apache, PHP, and mySQL. Works immediately without having to screw around with the various config files. (Linux has LAMP packages available I believe if you need those instead)

Member Avatar for ndeniche
0
88
Member Avatar for md_salman

Just have B and C take a reference to A (the frame) in their constructors. The JPanel components already have a method to getParent(), but it's easier to just pass the reference so you don't have to worry about container nesting and finding the right parent. Your action listener on …

Member Avatar for Ezzaral
0
62
Member Avatar for UrbanKhoja

[quote=Serunson;404330]I know, why don't we run these tech people, all they use is a handbook, we have a brain :D Everyone on here could easily be a better 'tech guy' than the one's PC World have :)[/quote] Um, because we already have or at least aspire to have better jobs …

Member Avatar for jbennet
1
483
Member Avatar for marjan_m

[quote=jbennet;406454]Use XAMPP instead of WAMP. In my opinion its better[/quote] What do you find better about XAMPP? Just curious, as I've only used Wampserver.

Member Avatar for Ezzaral
0
218
Member Avatar for vijaygandhi559

Try adding the following to your constructor:[code] public LoggerClass(){ BasicConfigurator.configure(); myLayout = new SimpleLayout(); myAppender = new ConsoleAppender(myLayout); myLogger.addAppender( myAppender ); }[/code] If you want a file appender, you can add one of those like this [code] try{ RollingFileAppender fileAppender = new RollingFileAppender(new PatternLayout("%d: %m: %l " + System.getProperty("line.separator") ), …

Member Avatar for jwenting
0
203
Member Avatar for pd1234

Take a look at "reCaptcha". It's a pretty neat service and they have a plugin for PHP.

Member Avatar for Ezzaral
0
59
Member Avatar for staneja

Use java.sql.Connection for your "con" variable type. Just change the import type and it will be fine.

Member Avatar for staneja
0
158
Member Avatar for kodiak

If the whitelist is entirely comprised of single characters, you can probably use [code]preg_replace( "[^#$%]", "", $stringToFilter );[/code] to replace any occurrence of "#","$",or "%" with an empty string. Just put whatever characters you need to strip in there. If it's not a simple single character situation (i.e. you need …

Member Avatar for stymiee
0
844
Member Avatar for TheGathering

Started with BASIC on a Commodore Vic-20, programs were saved to a tape cassette :) Later had BASIC and Pascal classes in HS and the engineering college was still requiring a course in Fortran (on the VAX, not PC, bleh.. ).

Member Avatar for jbennet
0
133
Member Avatar for qasauria

In addition to what Cerberus mentioned, Sun also has many tutorials available for free that you can learn from: [url]http://java.sun.com/docs/books/tutorial/[/url]

Member Avatar for ioillusion
0
175
Member Avatar for okparrothead

I think weber was suggesting something like[code=php] for ($i=0; $i<count($data); i++) $subtotal[$i] = $data[$i][4];[/code]

Member Avatar for Ezzaral
0
109
Member Avatar for venomlash

Actually Java does have a Paint interface in java.awt for defining color patterns, but I have never had a need to implement it in any Graphics2D work I've done to date. You would only need it if you were defining a customer color-type class.

Member Avatar for jwenting
0
99
Member Avatar for spartak
Member Avatar for dgdg

Yes, times will differ. Enough to care about? That depends on what you are doing with them. The first will incur array access costs in accessing the deeper sub-arrays, but working with subsets of information may be faster. The second is linear, so element access will be faster but you …

Member Avatar for Ezzaral
0
60
Member Avatar for vijaygandhi559

This HTML is not really a good candidate for processing with an XPath. Typically the information you are working with in XML is meaningfully marked up in a relational manner with data being found in specific elements or attributes. Here your data is just in a generic TD tag. TD …

Member Avatar for masijade
0
163
Member Avatar for MrScruff

[quote=brah;405320]I do. I was unable to find another 'how-to' for this problem, so when I found the answer I decided to post it. I hope it was useful, but I understand better solutions may be out there. Please let me know if you know of one--I would surely benefit from …

Member Avatar for masijade
0
1K
Member Avatar for kodiak

Does the query work fine from a SQL tool, like phpMyAdmin or such? I've not seen table names surrounded with the "`" before, but that may be unrelated. Are there non-nullable fields that you are not including in your insert? If you don't want to try it out in a …

Member Avatar for kodiak
0
117
Member Avatar for christina>you

Well, on that note: [url]http://www.rideaccidents.com/[/url] (scroll down to the News section) Cheery reading!

Member Avatar for maravich12
0
500
Member Avatar for kantze

Well, the answer is very straightforward - no. You are intentionally circumventing the trial period policy. How can you possibly wonder if this was intended to be ok? You are obviously NOT respecting the effort of the maker and DO want to steal the software, otherwise you would pay for …

Member Avatar for TheGathering
0
129
Member Avatar for suriname0

Try starting with Sun's J2EE tutorial trail: [url]http://java.sun.com/javaee/5/docs/tutorial/doc/[/url] There is a lot of information there. Specifically you will want to focus on basic JSP and Servlets. Take a look through those and perhaps Google "JSP servlet tutorial" for some extra info. If you have specific questions that you can't seem …

Member Avatar for peter_budo
0
139
Member Avatar for no1zson

Take another look at the line you have bolded - the return line. Does it match any variable in your program?

Member Avatar for Ezzaral
0
216
Member Avatar for baltazar

Well, if you know what a red-black tree is, you define a class for the nodes, a collection for those node, and the various methods to add, remove, search and print those node. We can't simply do your homework for you. Post code and questions and someone can probably help.

Member Avatar for mzd12111
0
252
Member Avatar for mzd12111

Have you tried using the following?[code] Writer out = new BufferedWriter(new OutputStreamWriter(new FileOutputStream("someFile")));[/code] If your default encoding will not work correctly, you can specify encoding on the OutputStreamWriter (UTF-8 probably) by using the constructor that accepts a charset parameter. If your default encoding (in Java, determined by your own system …

Member Avatar for mzd12111
0
97
Member Avatar for The Dude

Well, you have to wonder how much different things would have been these past 7 years if the courts hadn't appointed Bush in the 2000 election. Gore won the popular vote.

Member Avatar for Dave Sinkula
0
109
Member Avatar for freddypyther

C++ with DirectX of OpenGL is certainly a viable possibility - if you are comfortable with C++. Other options would be Java with JOGL (binding for OpenGL), C#, or perhaps even Python with PyOpenGL. It really depends on your programming background and what languages you feel comfortable with.

Member Avatar for jwenting
0
115
Member Avatar for Cerberus

Wampserver is another all-in-one install for Apache, PHP, MySQL on Windows: [url]http://www.wampserver.com/en/[/url]

Member Avatar for zaphod2003
0
156
Member Avatar for teklu
Member Avatar for sk8ndestroy14

Scary when you actually start taking notice of government and politics isn't it :P It's a shame many just don't pay any attention.

Member Avatar for sk8ndestroy14
0
257
Member Avatar for Ganeshbabu

Are you needing something like this?[code] $sql = "SELECT * FROM myTable"; if ($rs = mysql_query($sql, $dbConn)){ echo "<table>"; for ($i=0; $i<mysql_num_fields($rs); $i++) { echo "<th>".mysql_field_name($rs,$i)."</th>"; } while ($row = mysql_fetch_row($rs)) { echo "<tr>"; for ($j=0; $j<mysql_num_fields($rs); $j++) { echo "<td>".$row[$j]."</td>"; } echo "</tr>"; } echo "</table>";[/code]

Member Avatar for Ezzaral
0
82
Member Avatar for The Dude

Yeah, that's pretty screwed up, but unfortunately it's not surprising. I wonder if it's just a recent thing or if they have been picking on cover bands like this for years? I thought artistic license was given to such things as "interpretations" or whatever.

Member Avatar for EnderX
0
62
Member Avatar for Dave Sinkula

[quote=jwenting;400250]corporal punishmen is not just good for kids. Public whipping or caning could be a serious deterrent for minor crimes like pickpockets and jaywalkers.[/quote] I agree, we could do with a caning policy over here in the States.

Member Avatar for jbennet
0
320
Member Avatar for genocide

I think he already left once he found out we wouldn't just hand him a completed assignment to turn in.

Member Avatar for jwenting
0
151
Member Avatar for vijaygandhi559

JavaMail is available here: [url]http://java.sun.com/products/javamail/index.jsp[/url] However, from the following search results: [url]http://www.google.com/search?hl=en&q=+site:publib.boulder.ibm.com+javamail+websphere[/url] It seems that WebSphere includes JavaMail. Many of the links above are references to older versions, so I am not sure if they have changed any of that, but they are probably worth checking out. It may be …

Member Avatar for vijaygandhi559
0
157
Member Avatar for asquiazon

Yep, Wampserver (one of a few WAMP packages available) is extremely easy to set up - just run the install :) [url]http://wampserver.com/en/[/url]

Member Avatar for Ezzaral
0
50
Member Avatar for shadrakni

[quote=dr2ge;400754]Where can i get bot for Silkroad ?[/quote] This is a Comp Sci forum - not Bots-R-Us. Look for your cheating software elsewhere please.

Member Avatar for ~s.o.s~
1
360
Member Avatar for michael.ngobeni

[quote=jwenting;401725]Since when is PDF read/write?[/quote] Well, only sort of. There are several writer objects in iText that allow you to import existing PDF content and generate new output content. I think that what the OP is wanting to do would be possible in iText, but I can't say from direct …

Member Avatar for michael.ngobeni
0
129
Member Avatar for vinod_javas

I would tend to think of the Scrollpane as a View of a View anyway. The Viewport references a component that is a View of underlying data. (Maybe Scrollpane is considered a Decorator? I don't know) I think a more clear example of MVC in the Swing components would be …

Member Avatar for thekashyap
0
156
Member Avatar for Mr.UNOwen

Your max res and fps are probably only going to be determined through experimentation. Level of detail, number of objects updating per frame, complexity of game logic interactions and your own coding efficiency are all going to have an impact on performance.

Member Avatar for Mr.UNOwen
0
153
Member Avatar for Kob0724

Since you are using DefaultTableModel, take a look at the addRow() and insertRow() methods. They both take the row as a Vector, not an Object[] array row, but you could work around that easily.

Member Avatar for Ezzaral
0
246
Member Avatar for rdhiravani

Just read the "tools" part of your JDK documentation on how to use the jar utility. The form of the command is going to vary with how you want to jar or unjar your files.

Member Avatar for jwenting
0
4K
Member Avatar for javed_PUCIT

You may be able to add the lines as images to the items collection and use the DisplayMember property to point to those images. If not, then you probably need to work with ListView and the ImageList class.

Member Avatar for f1 fan
0
273

The End.