3,927 Posted Topics
Re: You could do the whole site in Flash I suppose :P ... which of course would be really slow and irritating... | |
Re: 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] | |
Re: 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 … | |
Re: 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 … | |
Re: 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. | |
Re: [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 … | |
Re: 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 … | |
Re: [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 … | |
Re: [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 … | |
Re: 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) | |
Re: 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 … | |
Re: [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 … | |
Re: [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. | |
Re: 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") ), … | |
Re: Take a look at "reCaptcha". It's a pretty neat service and they have a plugin for PHP. | |
Re: Use java.sql.Connection for your "con" variable type. Just change the import type and it will be fine. | |
Re: 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 … | |
Re: 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.. ). | |
Re: 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] | |
Re: I think weber was suggesting something like[code=php] for ($i=0; $i<count($data); i++) $subtotal[$i] = $data[$i][4];[/code] | |
Re: 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. | |
Re: 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 … | |
Re: 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 … | |
Re: [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 … | |
Re: 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 … | |
Re: Well, on that note: [url]http://www.rideaccidents.com/[/url] (scroll down to the News section) Cheery reading! | |
Re: 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 … | |
Re: 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 … | |
Re: Take another look at the line you have bolded - the return line. Does it match any variable in your program? | |
Re: 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. | |
Re: 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 … | |
Re: 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. | |
Re: 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. | |
Re: Wampserver is another all-in-one install for Apache, PHP, MySQL on Windows: [url]http://www.wampserver.com/en/[/url] | |
Re: Did you specify the main class? | |
Re: 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. | |
Re: 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] | |
Re: 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. | |
Re: [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. | |
Re: I think he already left once he found out we wouldn't just hand him a completed assignment to turn in. | |
Re: 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 … | |
Re: 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] | |
Re: [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. | |
Re: [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 … | |
Re: 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 … | |
Re: 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. | |
Re: 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. | |
Re: 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. | |
Re: 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. |
The End.