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...
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...
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,...
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?
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.
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...
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...
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...
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...
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...
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:
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...
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,...