3,927 Posted Topics
Re: I read a few of them now and then, but it's not really something I keep an eye on. | |
Re: By .doc format you are meaning Microsoft Word? Or just a generic text document? | |
Re: Have you Googled it? Looked up any tutorials? Make some effort to educate yourself first, then ask specific question if you need help. | |
Re: Please respect the forum rules regarding posting in English. | |
Re: You stack trace will indicate the exact line that the error is occurring on. | |
Re: You could add a TableColumnModelListener something like this to resize your filter fields[CODE]tableDetails.getColumnModel().addColumnModelListener(new TableColumnModelListener() { public void columnMarginChanged(ChangeEvent e) { txtRegNum.setPreferredSize(new Dimension(tableDetails.getColumn("A").getWidth(),txtRegNum.getPreferredSize().height)); txtFirstName.setPreferredSize(new Dimension(tableDetails.getColumn("B").getWidth(),txtFirstName.getPreferredSize().height)); txtLastName.setPreferredSize(new Dimension(tableDetails.getColumn("C").getWidth(),txtLastName.getPreferredSize().height)); panfortable.revalidate(); } public void columnAdded(TableColumnModelEvent e) {} public void columnRemoved(TableColumnModelEvent e) {} public void columnMoved(TableColumnModelEvent e) {} public void columnSelectionChanged(ListSelectionEvent e) {} }); [/CODE]You'll … | |
Re: Here is a good place to start: [URL="http://download.oracle.com/javase/tutorial/jdbc/basics/index.html"]JDBC Basics[/URL] Don't use the JdbcOdbc driver when a pure JDBC driver is available. Here are some examples specifically for MySQL: [url]http://dev.mysql.com/doc/refman/5.1/en/connector-j-examples.html[/url] Personally I would choose an embedded file-based database such as H2 or Derby instead of MySQL if you just want to … | |
Re: Another option is the [URL="http://download.oracle.com/javase/6/docs/api/java/awt/Desktop.html#open(java.io.File)"]Desktop.open()[/URL] method. You have more control with the Process the NormR1 mentioned, but it is OS-specific. The choice depends on your particular needs. | |
Re: Here is another good article by Brian Goetz on handling interruption: [url]http://www.ibm.com/developerworks/java/library/j-jtp05236.html[/url] | |
Re: That is just an annotation added by the IDE. In that specific case, it's actually just an anonymous implementation of the ActionListener interface. | |
Re: If you're using Tomcat, try putting the jar in [iCODE]$CATALINA_HOME/common/lib[/iCODE] See this for more info: [url]http://tomcat.apache.org/tomcat-5.5-doc/jndi-datasource-examples-howto.html#MySQL_DBCP_Example[/url] | |
Re: In Netbeans, you can open the project properties and look at the "Run" category. There is an entry for Main Class there. Be sure that is set to the class you are wanting to run and then clean and build your project. | |
Re: Looks to me like someone is due to fail a test. Interesting, given the link in his signature. | |
Re: You can use a small panel that displays an image as a container for your controls. Something like this[CODE]class ImagePanel extends JPanel { Image img; public ImagePanel(){ super(); img = loadImage("whatever.file"); } public void paintComponent(Graphics g) { super.paintComponent(g); if(img != null) { g.drawImage(img, 0, 0, this); } } public Image … | |
Re: This forum is a customized version of vBulletin, which is not an open source system. | |
Re: Didn't you read his post? He explains what is wrong. | |
Re: As akill10 mentioned above, you have not initialized the [iCODE]request[/iCODE] variable. You have only declared it. ![]() | |
Re: Read the documentation for Eclipse. | |
Re: You can probably use [URL="http://download.oracle.com/javase/tutorial/uiswing/layout/border.html"]BorderLayout[/URL] for that with your tree in the center and buttons at south. There are plenty of other layout options if you want to gain more control over positioning. Just take a look at the contents listing at the left side of that tutorial link. | |
Re: Also note that directories will also be included and can be discerned with file.isDirectory(). If you need to include file counts from subdirectories, you'll need to do the recursion yourself. | |
Re: I'm guessing it's this interactive design form? [url]https://alliancetag.com/tagdesign.aspx[/url] | |
Re: Since nextGuassian() will give you a double with mean 0 and std dev of 1.0, perhaps you can use a std deviation of 1/3 of half of your range:[iCODE]rand.nextGaussian()*0.33*halfRange[/iCODE] to get 99.7% of your values between [-halfRange,halfRange] and add that to your midpoint?[CODE] Random rand = new Random(); int x0 … | |
Re: No, instead, you please start a new thread [I]if[/I] you have a more specific question to ask. | |
Re: Why not just ask him "What issues?" I am not aware of any myself, except that it is a bit more difficult to read and will throw an exception if there is a formatting problem. | |
Re: Well, you're headed towards a "0" anyway if you haven't made any further effort on this in 5 days and can't find a single example of graphics in C as a starting point. No one is going to write it for you. | |
Re: Adding a few more observations: - Those "wink" smilies are showing due to [icode];)[/icode], which is invalid syntax in those if() statements. - No parameter type in the process() method declaration. - Multiple return statements in the display() method - code beyond the first is unreachable. And the method declaration … | |
Re: [QUOTE=sanjup;658053]how we can call one servlet from other servlet and give the source code of all process? send it in this id: <removed>[/QUOTE] 1) Do not hijack threads. Post your own thread if you have a question. 2) Do not ask for code to be emailed. This is against the … | |
Re: From what I could determine, it looks like the only way to accomplish that is to dynamically create the query with the desired criteria. Pass-through queries cannot use parameters and they are parsed and run on the remote server. They don't have any knowledge of your local database and its … | |
Re: I just marked it solved instead. Perhaps someone searching for how to do this will run across your post and it will help them. | |
Re: First, read the site rules and pay extra attention to this one [B]"Do not write in all uppercase or use "leet", "txt" or "chatroom" speak"[/B] Then post specific questions about the portions that you are having trouble with along with relevant code and error messages. | |
Re: Yeah, it does stand out more now. Hopefully it will be used more frequently. | |
Re: A couple of online books I ran across when I began looking into PHP: [URL="http://hudzilla.org/phpwiki/index.php?title=Main_Page"]Practical PHP Programming[/URL] [URL="http://www.techotopia.com/index.php/PHP_Essentials"]PHP Essentials[/URL] | |
Re: I don't see where you actually start this thread[code]Thread t = new Thread (new ClientHandler(clientSocket));[/code]Try adding [code]t.start();[/code] | |
Re: [URL="http://www.h2database.com/html/main.html"]H2[/URL] is another nice open source embedded database. | |
Some issues from the redesign were discussed and have now fallen well off the radar so I wanted to bring them back to page one: - "Edit/Delete" button: Complete misnomer, because it does not offer the ability to delete. - No [noparse][ICODE][/noparse] button on either of the post editors. Some … | |
Re: Save it as csv amd use [URL="http://dev.mysql.com/doc/refman/5.0/en/mysqlimport.html"]mysqlimport[/URL]? | |
Re: Here's a start: [url]http://www.exampledepot.com/egs/java.net/ReadFromURL.html[/url] | |
Re: You cannot plagiarize your own code. Any sentient human being looking at that thread would see six pages of you working through issues with the original code you posted. Unless you copied the original post code from another source on the net, I don't see where you would have any … | |
Re: You have to call next() three times if you want three values. Why not store all three values into a single object as you read them from the file? | |
Re: [quote=Me Awesome;442589]Hi every body, I am a masters student in computer science and i am looking for a project that is working good. I need the code for it. If anybody has it, please send it to me...or atleast suggest me where i could find one. The project shlould be … | |
Re: Just go ahead and use the [URL="http://download.oracle.com/javase/6/docs/api/java/awt/Point.html"]Point[/URL] class. Edit: Ok, nevermind. Cross-posted as you posted the above. If you do need to work with other single points, there are convenience methods to test Point containment with various shapes, including Rectangle. | |
Re: Use [iCODE]equals()[/iCODE] or [iCODE]equalsIgnoreCase()[/iCODE] to test String equality, not "==". | |
Re: See if the [URL="http://download-llnw.oracle.com/javase/6/docs/api/java/awt/Desktop.html#browse(java.net.URI)"]browse()[/URL] method of the [URL="http://download-llnw.oracle.com/javase/6/docs/api/java/awt/Desktop.html"]Desktop[/URL] class works for you. | |
Re: So start coding! Post specific questions when you run into troubles and perhaps someone can help you through them. You aren't expecting someone to write this for you, are you? | |
Re: >Good story but on a deeper level... Deeper level? Perhaps you meant "entirely irrelevant stream-of-consciousness tangent"? What does karma have to do with geotagging features in phones? |
The End.