3,927 Posted Topics

Member Avatar for TIM_M_91

Sure, just use SQL "CREATE TABLE..." Example: [url]http://www.herongyang.com/JDBC/JDBC-ODBC-Access-CREATE-TABLE.html[/url]

Member Avatar for TIM_M_91
0
165
Member Avatar for harishpenumudi
Member Avatar for thepanther

Are you unable to glance back in the thread?: [url]http://www.daniweb.com/software-development/java/threads/411022/1753724#post1753724[/url]

Member Avatar for Ezzaral
0
458
Member Avatar for furqanishaq

Fixed the OP's code tags, but I can't help with the error messages.

Member Avatar for zeroliken
0
127
Member Avatar for Ntropy

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.

Member Avatar for Ntropy
0
317
Member Avatar for javaprog200

Components placed in BorderLayout.CENTER expand to fill the available space in the container.

Member Avatar for javaprog200
0
183
Member Avatar for elkowalski

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 …

Member Avatar for elkowalski
0
194
Member Avatar for llemes4011

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]

Member Avatar for jcomeau_ictx
0
350
Member Avatar for tanvirraj91
Member Avatar for DeanMSands3
0
168
Member Avatar for sudheer506

Why not use Google instead of expecting others to do it for you?

Member Avatar for GrowTaller01
-1
211
Member Avatar for tanvirraj91

Requesting links to pirated material is against the DaniWeb rules. Thread closed.

Member Avatar for Ezzaral
0
74
Member Avatar for venomlash

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 …

Member Avatar for 117
0
7K
Member Avatar for J.S.AlKatheeeri

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.

Member Avatar for Ezzaral
0
98
Member Avatar for Goldfinch

Your for() loop is not in a block. That code needs to be inside a constructor, method, or static initialization block.

Member Avatar for Ezzaral
0
173
Member Avatar for monica86

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.

Member Avatar for stultuske
0
7K
Member Avatar for Dandello

[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 …

Member Avatar for Ezzaral
0
251
Member Avatar for Jimakoss

[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.

Member Avatar for WolfShield
0
315
Member Avatar for Tcll

> anyways... please, no more referrals unless you have something referrably useful Actually, that is vegaseats signature.

Member Avatar for Tcll
0
1K
Member Avatar for thes0mething

The listener would be added your panel. You could also use KeyBindings: [url]http://docs.oracle.com/javase/tutorial/uiswing/misc/keybinding.html[/url]

Member Avatar for Ezzaral
0
1K
Member Avatar for rvk.kasi

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.

Member Avatar for Ezzaral
0
130
Member Avatar for Thermalnuke

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.

Member Avatar for stultuske
0
256
Member Avatar for scheppy

You do realize what e.getSource() returns? Read the method description again, because changing it to what you did makes no sense at all.

Member Avatar for scheppy
0
278
Member Avatar for scheppy

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.

Member Avatar for scheppy
0
372
Member Avatar for friknos

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.

Member Avatar for friknos
0
138
Member Avatar for PrimePackster

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.

Member Avatar for PrimePackster
0
252
Member Avatar for gennesis

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.

Member Avatar for Ezzaral
0
316
Member Avatar for newbie26
Member Avatar for asif49

This appears to be a duplicate of your other thread: [url]http://www.daniweb.com/web-development/php/threads/407445/1739310#post1739310[/url] Closing.

Member Avatar for Ezzaral
0
455
Member Avatar for mortanto

You need to ask specific questions about the parts you are having trouble with.

Member Avatar for StephNicolaou
0
151
Member Avatar for ayanbizz
Member Avatar for jaai
Member Avatar for Rasmalai
Member Avatar for xxvicoxx

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.

Member Avatar for jeff-fisher
0
1K
Member Avatar for kiranshrewstha

^^ 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.

Member Avatar for ChrisPadgham
0
236
Member Avatar for boris90

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.

Member Avatar for DavidKroukamp
0
1K
Member Avatar for hsmroz

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.

Member Avatar for Ezzaral
-1
742
Member Avatar for jennyb

[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 …

Member Avatar for stultuske
0
119
Member Avatar for thejoker011
Member Avatar for happygeek

Ardav posted a similar experience here: [url]http://www.daniweb.com/community-center/daniweb-community-feedback/threads/394976[/url]

Member Avatar for Dani
2
1K
Member Avatar for Johnbonono

You are still asking for help hacking though, which is not allowed within the forum rules. Thread closed.

Member Avatar for Ezzaral
0
213
Member Avatar for Secret Agent

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.

Member Avatar for fullyloaded1987
0
203
Member Avatar for R32@
Member Avatar for R32@
0
3K
Member Avatar for sasidharnet

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]

Member Avatar for stultuske
0
507
Member Avatar for mehnihma

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.

Member Avatar for Ezzaral
0
180
Member Avatar for whit89
Member Avatar for Majestics

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.

Member Avatar for Majestics
0
251
Member Avatar for rajkumardhawan
Member Avatar for ilmkidunya
-6
319
Member Avatar for jhellr13

You'll find that "an error" is very little to work with. Post the entire error message.

Member Avatar for Trentacle
0
160
Member Avatar for Morley93

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.

Member Avatar for Morley93
0
555
Member Avatar for madhub2v

The End.