Forum: Java Nov 10th, 2005 |
| Replies: 29 Views: 17,426 jwenting
Firstly my apology. I mis-understood the real point of your test example. I also think this has led me to make some in-correct statements. Sorry. The mixture of static, final and gc... |
Forum: Java Nov 9th, 2005 |
| Replies: 19 Views: 3,937 Have a think about this peice of code and tell me what you think.
import java.util.Vector;
public class Jottings {
//This is the Initialiser Block
//s1 is initialised here
String[] s1 =... |
Forum: Java Nov 9th, 2005 |
| Replies: 29 Views: 17,426 OK. I will try to find a documentation reference for you to read.
If you look in the test code you will see that a new Inner object does not initialise the value of i. This means that when it is... |
Forum: Java Nov 9th, 2005 |
| Replies: 29 Views: 17,426 When a new object is created from a class an unused part of memory is used for it.
The unused part of memory MAY have been used before or it MAY NOT. All you can be sure of is that it is marked... |
Forum: Java Nov 6th, 2005 |
| Replies: 19 Views: 3,937 |
Forum: Java Nov 6th, 2005 |
| Replies: 19 Views: 3,937 |
Forum: Java Nov 6th, 2005 |
| Replies: 9 Views: 2,157 How are the dreams going? |
Forum: Java Nov 6th, 2005 |
| Replies: 5 Views: 1,563 |
Forum: Java Nov 6th, 2005 |
| Replies: 19 Views: 3,937 Thanks for the reference. |
Forum: Java Nov 5th, 2005 |
| Replies: 19 Views: 3,937 Thanks. Looks like it's the constructor. I understand that design patterns also indicate this although I'm unsure how to check that one out. |
Forum: Java Nov 4th, 2005 |
| Replies: 19 Views: 3,937 This ref covers some useful basic stuff on layout.
http://java.sun.com/docs/codeconv/CodeConventions.pdf
Umfortunately it doesn't extend to my initialisation code issue et al.
Anyone have a... |
Forum: Java Nov 4th, 2005 |
| Replies: 1 Views: 1,242 As a quick but useful suggestion have you considered using a whole class to represent just one of your data items. It often works well because you can then seperate the handling of multiple items... |
Forum: Java Nov 4th, 2005 |
| Replies: 10 Views: 4,278 Perhaps it is more uncommon than I realised, yet when you register your address on any mail-order, or bank, site the fields appear in a vertical row every time. I guess they don't use a Jtable! ... |
Forum: Java Nov 4th, 2005 |
| Replies: 19 Views: 3,937 Anyone know of some simple best practice lists somewhere? Searching the sun link above is a bit blinding.
Here is a simple issue which new Java programmers meet quite quickly...
If I write a... |
Forum: Java Nov 4th, 2005 |
| Replies: 29 Views: 17,426 A few comments on your garbage collection code...
Looks like your Inner class isn't an inner class. This may confuse some readers.
I see the point you are making but your example uses two... |
Forum: Java Nov 4th, 2005 |
| Replies: 29 Views: 17,426 Your'e right, but I didn't say there WAS a gaurantee. You used the word.
I accept and for the sake of all other readers of this thread. A peice of memory may never be garbage collected. EVEN if... |
Forum: Java Nov 4th, 2005 |
| Replies: 7 Views: 1,458 Are you talking about Java? |
Forum: Java Nov 3rd, 2005 |
| Replies: 29 Views: 17,426 You said Dotz had a different point of view but my point was complementary really. Others have explained that Dotz was talking about a final. You didn't ask about a final so I returned to your... |
Forum: Java Nov 3rd, 2005 |
| Replies: 9 Views: 2,157 I'll try thinking in Generics then.
Thanks! |
Forum: Viruses, Spyware and other Nasties Nov 3rd, 2005 |
| Replies: 4 Views: 4,686 Have you tried uninstalling? |
Forum: Java Nov 3rd, 2005 |
| Replies: 5 Views: 1,570 Maybe someone should tell you that you are being a bit ambitious! |
Forum: Java Nov 3rd, 2005 |
| Replies: 5 Views: 6,516 As a general point. Because Java uses objects for just about everything many comparisons and assignments use objects.
All objects are referenced from a variable of some type which points to the... |
Forum: Java Nov 3rd, 2005 |
| Replies: 3 Views: 3,012 Casting with Strings can be tricky. Use "toString" if you can.
I came across this one recently which interseted me...
i is an int, value is an Object and intf is an Integer Number Format
and... |
Forum: Java Nov 2nd, 2005 |
| Replies: 15 Views: 3,351 When you refer to JBuilder is it Foundation?
I am using the standard Eclipse installation. Does it have any support for GUI layout. It seems very scarce. I havn't installed any add-ons. |
Forum: Java Nov 2nd, 2005 |
| Replies: 10 Views: 4,278 You got it. I was doubting my communicaions skills big time!
The concept of swapping the row column meaning is spot on. Wish I had thought of describing it like that. Could also be described... |
Forum: Java Nov 1st, 2005 |
| Replies: 10 Views: 4,278 I had better describe my requirement in a different way. This is not a different problem so hopefully it will make the issue clearer.
I have some data values which could be compared with fields... |
Forum: Upcoming News Stories Nov 1st, 2005 |
| Replies: 6 Views: 2,372 After using it for a day I felt at home with the new look and feel. There are clearly some good artistic sills in the support team as well as the depth of development experience which shows... |
Forum: Java Oct 31st, 2005 |
| Replies: 3 Views: 1,616 How about using synchronise on the Print1to10 class. |
Forum: Java Oct 31st, 2005 |
| Replies: 29 Views: 17,426 As I understand it the garbage collector will remove a static variable if all references to it have been lost. This can happen if there are no objects of that class. |
Forum: Java Oct 31st, 2005 |
| Replies: 9 Views: 2,157 I've tried to imagine new methods but they don't appear for me the next day! |
Forum: Java Oct 31st, 2005 |
| Replies: 2 Views: 1,894 I presume you are not using Java. You have posted in the wrong forum. |
Forum: Java Oct 31st, 2005 |
| Replies: 4 Views: 4,653 From your last post I assume that you have now implemented an AbstractTableModel. |
Forum: Java Oct 31st, 2005 |
| Replies: 1 Views: 2,805 Make sure getColumnCount returns non-zero too. |
Forum: Java Oct 31st, 2005 |
| Replies: 10 Views: 4,278 I want to edit one record at a time and display it in a column. There are several fields which are fairly wide and if I use a column for the display then it will fit on the screen.
If I use the... |
Forum: Java Oct 31st, 2005 |
| Replies: 10 Views: 4,278 I am prepared to be corrected if I am wrong but...
The Jtable is a pretty powerful and useful object.
As I understand it the JTable is designed to hold one object type in each column. For... |
Forum: Java Oct 31st, 2005 |
| Replies: 15 Views: 3,351 I thought the article very good too. The Layouts issue will run and run I'm sure but being fairly new to Java I'm still finding it difficult to code my screen layouts.
Let me set a context for a... |
Forum: Network Security Oct 24th, 2005 |
| Replies: 1 Views: 3,984 If you are using broadband now try to access the modem control page to check if your local tcp/ip is ok with IE. The address is usually at http://192.168.0.1 |
Forum: Apple Hardware Oct 24th, 2005 |
| Replies: 1 Views: 4,509 As a quick test you could disable the WEP for 5 minutes to see if the driver appears. WEP probably not the problem but this would eliminate the possibility. If the code has been changed recently of... |
Forum: Apple Hardware Oct 24th, 2005 |
| Replies: 1 Views: 2,719 crucial.com is great for this sort of check. |
Forum: Windows NT / 2000 / XP Oct 24th, 2005 |
| Replies: 2 Views: 1,523 Sounds like hardware if you havnt changed or done something new? |