3,927 Posted Topics
Re: Sure, just use SQL "CREATE TABLE..." Example: [url]http://www.herongyang.com/JDBC/JDBC-ODBC-Access-CREATE-TABLE.html[/url] | |
Re: What on earth are you trying to do with this code?[CODE]new PeerLogin.2(this)[/CODE] | |
Re: Are you unable to glance back in the thread?: [url]http://www.daniweb.com/software-development/java/threads/411022/1753724#post1753724[/url] | |
Re: Fixed the OP's code tags, but I can't help with the error messages. | |
Re: Break it down to a simple loop that draws the vertical lines stepping across from x=0 to x=width, adding 10 each time. After that write a second loop that draws your horizontal lines, from y=0 adding 10 until y=height. You don't need an array for that. | |
Re: Components placed in BorderLayout.CENTER expand to fill the available space in the container. | |
Re: If you used a small custom class for your wall, you could have an axis property for horizontal or vertical. On collision you can check the wall axis to know which velocity to change. You can still keep a Rectangle inside the class to manage the bounds and forward your … | |
Re: No, you're going to have to convert the top-level window to JApplet. There really aren't too many things to change in many cases. If the other classes are lightweight components, it should be fairly trivial. You can find a lot of information here: [url]http://java.sun.com/docs/books/tutorial/deployment/applet/index.html[/url] | |
Re: I believe he means 'dos' (just command window these days) | |
| |
Re: Requesting links to pirated material is against the DaniWeb rules. Thread closed. | |
Re: The MouseEvent getX() and getY() methods will return the coordinates relative to the source of the event. If your panel is not that source, you will have to compute the coordinates yourself by adding them to the coordinates of the source (which also has getX() and getY() methods) within that … | |
Re: Try [URL="http://docs.oracle.com/javase/tutorial/uiswing/layout/grid.html"]GridLayout[/URL] and yes, you'll probably need "some kind of loop" with JPanels or JLabels. | |
Re: Your for() loop is not in a block. That code needs to be inside a constructor, method, or static initialization block. | |
Re: Remove this line[code]import Stats.*;[/code]Stats is a class, not a package, and if you have these in the same directory there is no need to import. | |
Re: [URL="http://mercurial.selenic.com/"]Mercurial[/URL] and [URL="http://git-scm.com/"]Git[/URL] are the current "favorites" in the open source VCS scene. SVN has somewhat fallen out of favor due to difficulties with merging branches. We use SVN here and have no complaints, but we don't really branch and merge. If we were going to look into a new … | |
Re: [QUOTE]My problems with Java are two: 1) It's programs are big and slow. 2) And that I never took the immense time to fully learn the language.[/QUOTE]#2 calls into question your qualification to claim #1. | |
Re: > anyways... please, no more referrals unless you have something referrably useful Actually, that is vegaseats signature. | |
Re: The listener would be added your panel. You could also use KeyBindings: [url]http://docs.oracle.com/javase/tutorial/uiswing/misc/keybinding.html[/url] | |
Re: AndreRet has already pointed out the forum rules about showing some effort. Since you don't seem willing to show any, I'm closing this thread. | |
Re: You need to show some effort if asking for homework help. Post your current code and specific questions. If you don't know what a float data type is, you need to read your book or a basic Java tutorial. | |
Re: You do realize what e.getSource() returns? Read the method description again, because changing it to what you did makes no sense at all. | |
Re: Most likely the loops are unnecessary. Depending on what the OP needs to do when the button is clicked, there are many ways to attach data or specific actions to a button. More info is needed about the intent of the buttons. | |
Re: The Java 1.4.2 docs do seem to come up near the top of search results fairly often, so it's an easy mistake to make if you don't glance at the version. | |
Re: There are no daily limits to the number of simple up/down votes by clicking the arrows, but you can only add reputation to a particular user once per day. | |
Re: Cross-posted here: [url]http://www.daniweb.com/web-development/databases/ms-sql/threads/407231/1738343#post1738343[/url] Please direct any further discussion to that thread. Closing this one. | |
Re: This appears to be a duplicate of your other thread: [url]http://www.daniweb.com/web-development/php/threads/407445/1739310#post1739310[/url] Closing. | |
Re: You need to ask specific questions about the parts you are having trouble with. | |
Re: Take care to use the correct operator. '==' is for comparison. | |
Re: In your rent and return methods, you're looping the whole list and acting on every car[CODE]for (Car car : cars) {...[/code]You need to get() just the one car and operate only on that car object. | |
Re: ^^ What he said. Post specific questions if you have them. The forum rules state that you must demonstrate some effort if you want help with homework assignments. | |
Re: Null pointer exceptions occur when you try to call a method on an object that is null. Try to determine why that is happening in your code. | |
Re: Read the forum [URL="http://www.daniweb.com/forums/faq.php?faq=daniweb_policies"]rules[/URL]: [B]- Do provide evidence of having done some work yourself if posting questions from assignments.[/B] Thread closed. | |
Re: [QUOTE]Im not a techy, nor do I pretend to be, I really need a kind person who will put the problem into a java application. ) Im a girl in desperation ! [/QUOTE] You're also a girl violating the [URL="http://www.daniweb.com/forums/faq.php?faq=daniweb_policies#faq_keep_it_organized"]forum rule about showing effort if you expect help with homework … | |
Re: Look up JFreechart. | |
Re: Ardav posted a similar experience here: [url]http://www.daniweb.com/community-center/daniweb-community-feedback/threads/394976[/url] | |
![]() | Re: You are still asking for help hacking though, which is not allowed within the forum rules. Thread closed. |
Re: I'm not sure, but you would need to post it in the Business Exchange forums, because negotiations for works for hire are not permitted within the tech forums. | |
Re: It sounds to me like he just wants you to save them in memory in an array. | |
Re: Yes, just read on serialization itself and you should understand why some of those are not serializable and why it's not appropriate for them to be. Here's a good place to start: [url]http://www.codeguru.com/java/tij/tij0116.shtml[/url] | |
![]() | Re: You can use the [URL="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html#format(java.lang.String,%20java.lang.Object...)"]String.format()[/URL] method to apply those formats. |
Re: The first is standard shortcut syntax for the creation and initialization of an array in the same statement it is declared. The second is using a static code block to create and initialize. | |
Re: You'll find that "an error" is very little to work with. Post the entire error message. | |
![]() | Re: Actually, you should override paintComponent(Graphics) instead of paint(Graphics) and called super(g). The paint() method has a few other responsibilities such as painting the border and children as well managing partial repaints. Overriding paintComponent() is recommended for custom rendering. ![]() |
The End.