-
Replied To a Post in on undo button press delete last shape
`g` is undefined at line 6 - maybe you intended `graphics2d` (see line 3) ? -
Replied To a Post in on undo button press delete last shape
Normally for an undo you would get rid of the last thing you added - ie remove the last Triangle, Rectangle, or Circle from its corresponding list, then redraw. Your … -
Replied To a Post in How To Make Dani Web The Best Forum That Attracts Newbies & Earns Oldbies!
Yes, come on guys, I've never seen such an orgy of troll-feeding in my life. We can't take administractive action against trolls, but we can do the next best thing … -
Replied To a Post in Will Electric Cars ever make it?
Looks like Norway - with vast supplies of hydro-electic is going to lead the way http://www.independent.co.uk/news/science/norway-electric-powered-country-first-fully-green-energy-clean-cars-a7898701.html -
Replied To a Post in Will Electric Cars ever make it?
> it's looking like we need to create a Moore's Law for EV's Yes indeed. Last November Renault casually announced an increase of almost 100% in battery capacity for the … -
Replied To a Post in Will Electric Cars ever make it?
> if you are on the grid, you are not entirely clean even on the EVcar Depends where you are! The electricity sector here in France is mainly nuclear power, … -
Replied To a Post in Shape redraw on mouse drag event
Sorry, but that's now we work here. We will help you to learn and help you to write your own code, butif we do your homework for you then nobody … -
Replied To a Post in Shape redraw on mouse drag event
I'm confused. Do you want the triangle to show while you are still moving the mouse? If so see my previous post. You need to add a statement to draw … -
Replied To a Post in Will Electric Cars ever make it?
> the cost is nearly identical to the Prius today That's surprising. We run a Zoe EV and have a Citroen C4 Picasso that can do about 50 mpg. Here's … -
Replied To a Post in Shape redraw on mouse drag event
Because you add the triangle to `triangles` every time mouseDragged is called, so you end up with it repeated many times. You can do something like: mouse pressed: create a … -
Replied To a Post in Draw triangle on mouseDragged() event
You need to create your triangle on mousePressed, and keep updating it as the mouse is moved. ps: down voter: did I get something wrong? -
Replied To a Post in Draw triangle on mouseDragged() event
That's because you don't add the new triangle to `triangles` until the mouse is released. Upside down *may* be because y coordinates start at 0 at the top and increase … -
Replied To a Post in Will Electric Cars ever make it?
Great idea - but a quick Google suggests maybe 1 kWh in an 8 hour day for a 1 square meter panel. even my little Zoe battery takes 41 kWh -
Replied To a Post in calculate the grades for a student using if..else statements.
You do realise that your code is not Java, do you? -
Replied To a Post in Guys whats wrong with this :( output is nonstop "true"
`println` works by calling `toString()` on each of its arguments in order to get something printable. All classes inherit a `toString()` from `Object`, but all that does is to return … -
Replied To a Post in Will Electric Cars ever make it?
We bought a new Renault Zoe at the end of last year and are glad that we did. It has a realistic range of 250km after an overnight charge which … -
Replied To a Post in Will self driving cars ever make it?
> And do we REALLY want the government in charge of whose life is worth more than others? The question is: who else? A strictly-for-profit company? Fundamentialist religious types? The … -
Gave Reputation to Stefce in DaniWeb suggestion
Since am member of this forum am asking my self one question, why am not informed on time when someone reply to my question? For me the biggest engagement is … -
Replied To a Post in How To Make Dani Web The Best Forum That Attracts Newbies & Earns Oldbies!
In Internet slang, a troll (/ˈtroʊl/, /ˈtrɒl/) is a person who sows discord on the Internet by starting quarrels or upsetting people, by posting inflammatory,[1] extraneous, or off-topic messages in … -
Replied To a Post in Will self driving cars ever make it?
Where I live in rural France it's not unusual to have a deer jump out of the vineyards at the side of the road, or for a wild boar (built … -
Replied To a Post in PROGRAM WITH THE USE OF SPACE(_) IN JAVA.....
If you fix your indentation it will become clear why that code will not compile... -
Replied To a Post in Need advice on ER Diagram
Hi Sibuns Youhave moved on from the ER Diagram question to a discussion of usbwebserver. That's perfectly OK, but it would be better if you start a new topic, with … -
Replied To a Post in Dani isn't killing DaniWeb with Dazah, she's saving it
> Do you really think that if people can't even be bothered to post in the Programming section that they'd bother to post in a specific language forum? My point … -
Replied To a Post in Dani isn't killing DaniWeb with Dazah, she's saving it
I too believe it was a catastrophic mistake to trash the language-specific forums. Anyone looking at the remaining programming forum will quickly see that we don't do Java, just PHP, … -
Replied To a Post in Need advice on ER Diagram
> One location(one shelf) can only store one set of tires at the time. SO the relation 1:1 has more sense right ? Right I'm not convinced of the need … -
Replied To a Post in Need advice on ER Diagram
It seems unlikely that a tyre can be in two locations a the same time! Do you group 4 tyres together, or deal with them separately? Can a location hold … -
Replied To a Post in C# Passing Data from form2 to form3
Where you have multiple forms ("views") that need to share data (a "model") you can use Model-View-Controller (MVC) architecture. In simple cases you can ignore the controller and just have … -
Replied To a Post in Need advice on ER Diagram
> Tires are not really a many to one for client, they are a many to one for cars <etc> That's right (sorry I missed it). -
Replied To a Post in Need advice on ER Diagram
Relations look OK. 50 for an address or 20 for a complete car model seem small to me. -
Replied To a Post in Need advice on ER Diagram
Apart from the IT justification and design, I'm curious about the business itself. Your figures imply that changing/storing 7 sets of tyres is enough to pay for an employee... unless … -
Replied To a Post in Need advice on ER Diagram
Sorry if that seemed like an attack - it wasn't personal. I just didn't (still don't) understand why you would need so much Information Technology Engineering for something where a … -
Replied To a Post in Need advice on ER Diagram
If this is a "small business at home" then you are over-engineering this to a rdiculous extent. Who are the "receptor" and the "worker" - mom? dad? (not to mention … -
Gave Reputation to Dani in How To Make Dani Web The Best Forum That Attracts Newbies & Earns Oldbies!
> Don't let unregistered post or vote. Or, atleast don't let them vote. (This'll attract them to register). Unregistered users currently cannot vote or post, and have not been able … -
Gave Reputation to Dani in How To Make Dani Web The Best Forum That Attracts Newbies & Earns Oldbies!
> Don't let unregistered post or vote. Or, atleast don't let them vote. (This'll attract them to register). Unregistered users currently cannot vote or post, and have not been able … -
Gave Reputation to UI in Looking For Web Proxy Hosts
HappyGeek, Answering one of your posts before your previous post. Yes, I did call you a capitalist but I did not call you a loser directly. I called everyone, who … -
Replied To a Post in Indentation in printing
Looking at your code again it seems you are setting the font on line 17. SANS_SERIF is a porportional font where blanks and letters have different widths, so columns will … -
Replied To a Post in How to increase the width of JTextField in Tab?
You have a `gbc.gridy--;` on line 142. It's unusual to see code that loads a form from the bottom upwards, also I can't quite see how that works with the … -
Replied To a Post in How to increase the width of JTextField in Tab?
You have made the fundamental mistake of using a null Layout Manager. By hard-coding pixel coordinates you eliminate any portability to computers with screen resolutions or fonts different from yours. … -
Replied To a Post in Indentation in printing
Maybe it'sthe font in the xps document.Are you sure you are using a mono-spaced font (like courier for example)? -
Replied To a Post in Indentation in printing
I don't know what your latest code looks like, but here's an example that works... System.out.printf("%-30s %10s %10s %10s\n", "Item", "Quantity", "Price", "Amount"); String format = "%-30s %10.2f %10.2f %10d\n"; … -
Replied To a Post in Looking For Web Proxy Hosts
TL;DR: -
Replied To a Post in Indentation in printing
Try posting it as code - that will preserve spaces -
Replied To a Post in Looking For Web Proxy Hosts
HappyGeek is an admin - ranks above mod and below Dani. -
Replied To a Post in Indentation in printing
I can't see the layout you are getting unless you format your post to retain blanks etc, but in general... if you are formating a string followed by 3 numbers … -
Replied To a Post in Indentation in printing
> I have given a space of %30s between every field That's not how it works. The width spec is the minimum width to use for the field, not the … -
Replied To a Post in What To Download Today From Youtube ?
fpru: Forensic Psychiatric Rehabilitation Unit, according to Google. Appropriate? -
Replied To a Post in Looking For Web Proxy Hosts
Don't get too excited... I cannot confirm that your ideas (which I am not privy to) are not crazy nor plain stupid. All I'm saying is that paradigm busting ideas … -
Replied To a Post in How to convert swing application to Java application
If it's not code for the startup or for the GUI then probably yes. This is such a tiny program you should just get on and do it without any … -
Replied To a Post in How to convert swing application to Java application
OK. In that case just re-write it. It's far too small to have much in the way of reusable parts. -
Replied To a Post in How to convert swing application to Java application
That's not Java code, so you can't use it on either. How big (number of lines) is you application today?
The End.