Search:
Type: Posts; User: Londbrok
Search:
Search took 0.03 seconds.
-
March 27th, 2012, 01:17 AM
It is good to exercise caution with threads. Have as few as you can, and as many as you must. There is no automatic benefits of having multiple threads as such. When used with reason threads can...
-
February 14th, 2012, 05:38 AM
How do you specify which values belong to which row? Who is in charge of those, the table model?
You can write an extension of DefaultCellEditor. When getTableCellEditorComponent(...) is called,...
-
February 13th, 2012, 06:07 AM
Use modulo % as in: num1%num2==0
-
January 25th, 2012, 02:38 AM
Check up on how to call methods, you are using assing operation as if directly setting variable values.
SomeClass someInstance=new SomeClass(some pararms, or none);...
-
January 10th, 2012, 08:27 AM
yeah sure does , how blind of me.
-
January 10th, 2012, 06:03 AM
Why do you use findInLine method? Why not just check the input?
Why do you expect that System.in would contain a "."? You do not place it there and should the user somehow know place it, he would...
-
January 10th, 2012, 05:38 AM
Do you actually ever add something to the priority queue? You create it with size and a comprator, but theres no trace of actual values being added.
-
December 22nd, 2011, 07:52 AM
Do you have the images in your disposal. If not, what chart library do you use?
-
December 20th, 2011, 07:35 AM
Dont know what you mean by that? Show the changes you made, please use [Code] tags
-
December 20th, 2011, 05:57 AM
Check your methods for adding / decreasing speed.
For the first thing, myint+1 does not add anything to your myint variable. Use myint+=1 (same as myint = myint+1). Also, you allow inifinite...
-
December 20th, 2011, 03:16 AM
Laying out the components in a container is strictly married to the LayoutManager that is used. Frames contentpanes use BorderLayout by default, anything added to BorderLayout by calling single param...
-
December 16th, 2011, 08:46 AM
In my humble opinion, you get a clean result storing the long value for the time. You can store this as a Unix time, (Seconds from epoch -> Java time / 1000), milliseconds, or even nanoseconds,...
-
December 14th, 2011, 06:27 AM
You have a CSV file, you comment specifically that the entries are separated by a comma... and still you tokenize it with a tabulator? Is this as intended?
Have you looked at Scanner? While your...
-
December 14th, 2011, 05:43 AM
Yes you can always query the focus owner from FocusManager, there is a static getter. Note that for this work, your components need to have a KeyListener of some sorts assigned to them.
So you...
-
December 5th, 2011, 08:08 AM
If you think of a tree as such, it is very XML like. There are plenty of examples on how to use direct XML document for building tree components in Java. You can take a look at those, or implement...
-
December 5th, 2011, 07:56 AM
Given answers still apply.
Take a look at Collection contains method. How does it determine the return value? As Keang already pointed out, having an efficient equals is the crucial part. On top...
-
December 5th, 2011, 05:19 AM
Fix it so that it will? Are you serious?
Given the problems that you noted and the implementation you provided... I dont see where you have issues. You have provided a Person class, but nothing...
-
November 11th, 2011, 03:29 AM
A number of APIs. For a simple text file, Scanner is a convinient and easy to use approach. You can create a Scanner for the file, iterate it line by line in a while loop. If your file format is more...
-
October 25th, 2011, 04:43 AM
You have a list of PhoneBook objects, to which you attach two Strings. Add proper elements to your list and you will get forward. Creating a single instance of PhoneBook does absolutely nothing in...
-
July 29th, 2011, 05:10 AM
I dont know if this is a school exercise. If it is, you need to follow the requirements (whatever they are) specifically. Any case, I would give you these pointers:
What you seem to be doing,...
-
1. Use code tags, preserves readable formatting of the code.
2. Post relevant information. - Stack trace (if any), code samples that shed actual light on your issue.
3. Please mark to which line of...
-
Well, there is an option to add a PopUpMenuListener to the combobox, events of that are likely to have the popup panel as a source.... no, just checked it, source is the combobox. Theoretically you...
-
Without having to sink into the underlying depths of how rendered components are assembled, you might consider this....
You can have mouse listener in the comboboxes popup panel, which will tell...
-
You code is not that complete, heres some general tips:
Ask both numbers from the user before doing any testing. Then iterate the array looking for the first number, if it is found, the number...
-
You could consider a diff -like approach. The server would contain the model, being the text under editing. Handling it must be synchronized, clients send a changeEvent (such as simply: line number,...
|
Click Here to Expand Forum to Full Width
|