-
Replied To a Post in Neko project
On what line number? -
Replied To a Post in Update a JFrame dynamically?
Your processing is preventing Swing from getting any CPU cycles, so any GUI updates are blocked until your processing finishes. You need to read up on the Swing Event thread … -
Replied To a Post in Build GUI with complex GridBagLayout
Don't know about "correct", but if I were doing this, that's how I would do it (at least as a starting point). Looks like panel 1 has only one JLabel … -
Replied To a Post in Priority Queue is not sorting as per Natural Order
peek if you want to see the first item without removing it, yes. I don't think gthere's any way to see the later items *in the correct order* without removing … -
Replied To a Post in Build GUI with complex GridBagLayout
Start by loooking at which controls line up with which others - aligned controls are usually best on the same panel, unaligned ones may be easier in separate panels.Eg in … -
Replied To a Post in Priority Queue is not sorting as per Natural Order
PriorityQueue inherits its toString() from java.util.AbstractCollection, which doesn't know about sort orders. (println uses toString() on all its arguments). If you poll() the elements as intended, you get them in … -
Replied To a Post in two-dimensional arra (java program)
DaniWeb Member Rules (which you agreed to when you signed up) include: "Do provide evidence of having done some work yourself if posting questions from school or work assignments" http://www.daniweb.com/community/rules -
Replied To a Post in Checkbox inside Table
Sorry, my misunderstanding. Let's start again from the very beginning. A JTable will display a column of boolean values as check boxes by default. *Provided* it knows tha the column … -
Replied To a Post in Checkbox inside Table
That's what check boxes do. They toggle btween true and false when you click them. -
Replied To a Post in Checkbox inside Table
OK, "exactly the same" was a bit of an exaggeration, but the overall approach is the same. -
Replied To a Post in Checkbox inside Table
[This Oracle tutorial](http://docs.oracle.com/javase/tutorial/uiswing/components/table.html#combobox) shows how to put a combo box ina JTable - it's exactly the same for a check box. -
Replied To a Post in pls advice me am i doing right with proceeding with core java
Also, multithreading isn't just a Java thing. If a language and its libraries don't implement support for multi-threading then they're no use in the real world of software deveopment. Multi-threading … -
Replied To a Post in GridBagLayout layout manager questions
Either you set the constraints for the layout (like line 76 above) then those apply to whatever you add afterwards by default, OR you specify a set of constraints in … -
Replied To a Post in GridBagLayout layout manager questions
In his horrible method - line 76 - he calls `layout.setConstraints( component, constraints)` before calling `add` The example in the API doc is similar, except that it passes the constraints … -
Replied To a Post in Help: Project has a 10 minute big-O
That profiler output is pretty typical.You cklick the start button so that triggers a whole raft of methods calling other methods until it gets down to your code, after which … -
Replied To a Post in GridBagLayout layout manager questions
OK!!! 1) Just for simplicity. You can have a GridBagLayout on a JPanel, but there's often less need for sub-panels to achieve your layout than there would be for some … -
Replied To a Post in mariesim
MarieSim seems to have been written in Java, but you can't write MARIE programs in Java, so you probably won't find anyone here who can help. It's whole purpose is … -
Replied To a Post in How to make songs run in a playlist?
that's exactly what I thought your question was! You need to run some code (to start the next song) when the previous song finishes - right? CustomPlayer does not have … -
Replied To a Post in I need to learn java intermediate
stuktuske is right. Nobody is smart enough to be able to learn "intermediate" Java in a week, or a month. Best that you re-evaluate your goals. -
Replied To a Post in How to make songs run in a playlist?
We don't have the specs for CustomPlayer, but most players have a listener interface where you can get a callback when the track has finished playing. That would be the … -
Replied To a Post in set allignment left,right,center and justify
For formatted text don't use a JTextArea, use an editor pane or text pane. See http://docs.oracle.com/javase/tutorial/uiswing/components/editorpane.html -
Replied To a Post in working with JList
Yes, Java 8 is scheduled for March 2014. Developer previews have been available for ages, along with a version of NetBeans that supports it, and the Release Candidate is due … -
Replied To a Post in Controlling program flow
There's a real problem with Scanner's design - so many people fall into this trap. You have some input with an int followed by some text, eg 101 John Doe … -
Replied To a Post in Help: Project has a 10 minute big-O
That message implies you are still on Java 1.6. If so an immediate upgrade to 1.7 is a top priority, noit just for the language/API enhancements buta also for security … -
Replied To a Post in Help: Project has a 10 minute big-O
Just a random thought - it's not possible that any of those get methods are causing the word list file to be re-loaded each time (that could explain the time)? … -
Edited While loop crash
Hello, I'm using the DX Studio engine (used to develop 3d games/applications), which uses javaScript as the main language. Since the engine is not getting much attention, their forum is … -
Replied To a Post in Simple Applet
> at myapp1.init(myapp1.java:39) tells you its on line 39, ie `add(c4);` the only thing that can be null in that is c4. You declare c4 on line 9, but you … -
Replied To a Post in working with JList
Yup. I guessed that Person has a toString that shows all its values, but for the JList only some of those values are required. (Just for fun - in Java … -
Replied To a Post in Java Gui...
I looked at the screen image, and it's more than just a complete beginners exercise. If you have been set this as part of your course, and you "don't know … -
Replied To a Post in Java Gui...
Hi, welcome to DaniWeb 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 … -
Replied To a Post in Help with a Java code
They are all variables. Some veriables are "primitives", eg int, float, boolean, char (See Java Language Spec section 4.2 for the complete list, but they alll have names that begin … -
Replied To a Post in working with JList
No, not toString for the JList. By default JList calls toString on each object that it displays to get some text to put in the list. You could change toString … -
Replied To a Post in Java Programing
How about looking at the online documentation, eg http://docs.oracle.com/javase/tutorial/uiswing/components/dialog.html or http://docs.oracle.com/javase/7/docs/api/javax/swing/JOptionPane.html -
Replied To a Post in Java Programing
That tells you there's a null value being passed to parseInt on line 24 (looks like line 22 in the version you posted). Look at the code: String firstinput = … -
Replied To a Post in Netbeans working with a "cache" of an existing class?
Have you tried a "clean and build" on the project? -
Replied To a Post in Java Programing
The error message tells you exactly what the error was and the exact line where the error occurred. That would be very useful information to share. -
Replied To a Post in Help: Project has a 10 minute big-O
I still can't see anything in there that could get you within orders of magnitude of 600,000,000 microSecs with such tiny data volumes. Did you try the NetBeans profiler to … -
Replied To a Post in Help: Project has a 10 minute big-O
All this encouraged me to finish the map version, and it is insanely fast. I built a map where the key is a String of all the letters in a … -
Replied To a Post in Building GUI with combo box
Yes ("Disaster" was a but strong, but it does change the default layout, so you do get different results with or without the panel) -
Replied To a Post in Unable to connect the program to access database
13: java.lang.NullPointerException 14: at DatabaseManager.getFaculty(DatabaseManager.java:14) would be a good place to start looking... -
Replied To a Post in How do I store user input without overriding previous input?
This is where object oriented programming comes in. Rather than have those separate arrays, in Java you would define an Ad class, with name, title. description etc as its instance … -
Replied To a Post in How do I store user input without overriding previous input?
You can use a String array to hold all the previous answers and print them later. An ArrayList of Strings would be even better, if you have got that far … -
Replied To a Post in Html Tag occurence counter
The output you posted above shows you have 90% solved already. Just look at those split sections - if they begin with <\ they are an end tag, if they … -
Replied To a Post in hi, WE need code for NetClus Algorithm in Java for clu
DaniWeb Member Rules (which you agreed to when you signed up) include: "Do provide evidence of having done some work yourself if posting questions from school or work assignments" http://www.daniweb.com/community/rules … -
Replied To a Post in Help: Project has a 10 minute big-O
> JamesCherrill says his hashed maps solution takes a few seconds if that. So now I had to log the actual elapsed times - they are actually about 60 microSeconds … -
Replied To a Post in drop and drag in java
NetBeans is the "standard" Java development environment, and includes D&D window building etc. But stultuske is right - you may learn how to D&D but you won't learn how windows … -
Replied To a Post in Building GUI with combo box
I'm perfectly sure you can do this without a custom renderer. You use those to control how the "inside" of the component is painted, not how they get placed in … -
Replied To a Post in How can I gnerate random PPS Numbers in Java?
If there's a letter in there then you cannot create it as a numeric type, it has to be a String. Generate the 7 digit number, convert it to String, … -
Replied To a Post in Building GUI with combo box
Maybe your book was written before Java 1.5? Lots were! It is only a warning (a "note"). Your code has been compiled sucessfully, so you can ignore it and run … -
Replied To a Post in Building GUI with combo box
OK With Java 1.5 we got type variables, and these were retro-fitted into the existing classes. In the case of JComboBox this was enhanced to JComboBox<E> so you could specify …
The End.