-
Replied To a Post in Adding handlers to buttons created with for loop
get/putClientProperty is another good approach to this problem. Note that it's an alternative to the previous approach (ie removes the need for individual action handlers), so pick one or the … -
Replied To a Post in Create a BankAccount class that has the following:
At a quick scan I see 11 lines that won't compile before he even gets to that line! I told him before to try to compile his code, but obviously … -
Replied To a Post in Series
There are lots of people here who will freely give their time to help you become the best Java programmer you can be. There's nobody here who is interested in … -
Replied To a Post in Need help please
You need to parse that into "5" "*" "20" for that you will need to look at one char at at time, but the numbers need to be put back … -
Replied To a Post in Need help please
Sorry, I won't do your homework for youb I will help *you* do it if you're prepared to put in some brainpower. If you want to store Strings like "20" … -
Began Watching Do you feel old yet?
I laughed :) [Kids react to old computers](https://bgr.com/2014/05/26/kids-react-to-old-computers-video/) -
Replied To a Post in Do you feel old yet?
The first computer I ever used was am IBM360/30 with 64k ram and a 3.6 meg hard disk. Programmed exclusively with punched cards. I was lucky, the people who went … -
Replied To a Post in Need help please
I have no idea why you are inserting your strings as multiple nodes, one per character... But that's why your "20" becomes "0" and "2" -
Replied To a Post in Create a BankAccount class that has the following:
> i have no idea what the program would even look To be realistic - copy/pasting stuff and hoping for the best is not goiung to work for you... you … -
Edited Deathbycaptcha
Can someone help me with implementing the deathbycaptcha API into Denodo? Thanks -
Replied To a Post in Deathbycaptcha
Do not ask for help to pursue any illegal activity including, but not limited to, hacking and spamming Thread closed. -
Replied To a Post in Create a BankAccount class that has the following:
It looks like you are wasting a lot of time. That code still has all the errors that you said you had fixed earlier, and the main method makes no … -
Replied To a Post in Need help please
Maybe because you store the data in a char, which only holds one character? On lines 15-19 you carefully take just the first character from the String and ignore the … -
Replied To a Post in Runnable jar file
The error shows your classes and manifest are ok. It looks like you failed to package your png files in the jar properly - the message implies it can't find … -
Replied To a Post in java is architectural neutral
That sounds like a homework question that you want someone to answer for you? -
Replied To a Post in Need help please
I don't know. I never studied computer science. But ata guess - no, it's not possible not to use a stack. -
Replied To a Post in Need help please
http://lmgtfy.com/?q=convert+infix+to+postfix+BST -
Replied To a Post in attendance register for subject in schools
Read the inage file into an `ImageIcon` and set that in a `JLabel` -
Replied To a Post in Adding handlers to buttons created with for loop
I think it's only confusing because the syntax is new and unfamiliar. You soon get used to it and, yes, it certainly simplifies/shortens your code, eg SwingUtilities.invokeLater(new Runnable() { public … -
Replied To a Post in static list
Static methods execute without an assocated instance of the class, so they don't have any direct access to any instance variables or instance methods. They only have direct access to … -
Gave Reputation to Doogledude123 in static list
A general rule I follow by, is that the only thing needed in main is a call to create a new instance of the class. That way I can keep … -
Replied To a Post in Adding handlers to buttons created with for loop
Just for all you folks out there who are still on an old version of Java, here's yet another reason to update to the current 1.8... void addButton(String label, ActionListener … -
Replied To a Post in Adding handlers to buttons created with for loop
No, it just looks like string concatenation, butthat's being done arithmetically by multiplying the previous value by 10 before adding. So if numberEnterd starts at 0 and you press 1 … -
Gave Reputation to hwoarang69 in font libary for android and desktop
# What I am using: # I am using java & libgdx to create a game in desktop & android. # Error: # Could not find class 'com.badlogic.gdx.graphics.g2d.freetype.FreeTypeFontGenerator', referenced from … -
Replied To a Post in Reading a file
BufferedReader is the simpler and more direct way to read lines from text file, but the overheads of scanner for readling lines will be tiny. Either will be just fine … -
Replied To a Post in VoIP in Java
That sounds like a sensible start - *something* is being captured!If it's a valid mp3 file then it should play in almost anything - Windows Media Player, iTunes etc. I … -
Replied To a Post in Reading a file
Maybe your Linux Java is 1.6 and your Windows Java is 1.7 or 1.8? (The try-with-resources construct was new in Java 7. You use that in the first version, but … -
Replied To a Post in Need help please
"is there something that i will do to output postfix?" Google is your friend. "is that correct I use Character not char?" In this case I can't see any reason … -
Replied To a Post in VoIP in Java
> I don't believe the code is even being touched. This alone tells me your test environment is way too complicated, withy far too much untested code, any or all … -
Replied To a Post in Reading a file
Second thoughts: Previous post does too much messing around from the List too early. Here's a better suggestion: Just use `Files.readAllLines(Path p)` to get all the data into a `List`, … -
Replied To a Post in Reading a file
Separating words and hints is a forumla for update chaos. Just read the file 1 line at a time. Get the index of the first " " and use that … -
Replied To a Post in Compile question, command line
^ ... provided they are declared as being in the same package. If you use (multiple) packages then you need a directory hierarchy that matches the package hierarchy. ps: It … -
Replied To a Post in VoIP in Java
Don't try to test too much code in one go. Strip that right back to the minimum needed to spool sound to a file and get that working first. -
Replied To a Post in Java rmic error when running?
That's the problem with books! Your 9 year-old book still contains info from 10 years ago. Don't take my word for it... check out Oracle's own on-line up-to-date tutorials on … -
Replied To a Post in Need help please
Right general area, yes. Time to try it out! -
Replied To a Post in Need help please
You'll need to traverse the whole tree by following the leftchild and rightchild links. That requires a recursive solution - a quick Google for *BST traversal recursive* will give you … -
Replied To a Post in Object Oriented Programming
> nothing is purely oop or procedural. IMHO Smalltalk is 100% OOP - no "primitives", no procedural language elements like if/else or do/while, just objects and message passing. But that's … -
Replied To a Post in Java rmic error when running?
rmic? That has been obsolete for ten years (well, over nine and a half anyway). It was made unneccessary in Java 1.5 (Sept 2004). See http://docs.oracle.com/javase/tutorial/rmi/overview.html Don't waste any more … -
Replied To a Post in Create a BankAccount class that has the following:
By the "second port" do you mean the BankAccountDriver class? If so: Start at the beginning and work through it one step at at time *Create a BankAccountDriver class...* yo … -
Replied To a Post in Need help with switch cases and method..
If that's all the relevant code then prob2 does the replacements and returns the result, which you then do nothing with. Somewghere you need to print that result! -
Replied To a Post in Need help with switch cases and method..
The quickest thing to do would have been to print strName just before the if test, which would have revealed the problem without waiting for a DaniWeb response. But anyway... … -
Replied To a Post in Need help please
http://bit.ly/TuqmeI -
Replied To a Post in Problem on moving
Assuming the game is one where things happen in real time, then yes. -
Replied To a Post in Create a BankAccount class that has the following:
You should try compiling ypour code. The compiler will give you lots of messages that will tell you exactly what your errors are. -
Replied To a Post in Problem on moving
That looks OK. Have you tried it? Problem with swing timer is that it executes on the swing thread, so no GUI updating or painting can happen while the updatePosition … -
Replied To a Post in Problem on moving
27 Btter (but not essental yet) to use a java.util.Timer because the swing timer runs on the swing thread and will interfere with smooth screen updaying as your animation gets … -
Replied To a Post in Problem on moving
Yes, you should use invokeLater, and I always would in "real" code. But for this tiny demo it would just create more clutter and hide the real point. I should … -
Replied To a Post in Problem on moving
You *can* do it with threads and waits etc, but it's too easy to get that wrong. Timer is easy & safe. Here's a little demo program that shows the … -
Replied To a Post in Create a BankAccount class that has the following:
Yes. The orignal project description explains exactly what the structure is, and lists all the variables, methods etc, in the right order, so there's no need for any further outlining … -
Replied To a Post in Problem on moving
Painting: see http://docs.oracle.com/javase/tutorial/uiswing/painting/ Timing: start a javax.swing.Timer, and return. Every time the timer fires you can update whatever needs updating and return. Inbetween the timer firings Swing will be free …
The End.