Forum: Java Nov 10th, 2005 |
| Replies: 29 Views: 12,360 Re: about static variable 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,227 Re: What means "best practice"? 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 = new... |
Forum: Java Nov 9th, 2005 |
| Replies: 29 Views: 12,360 Re: about static variable 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: 12,360 Re: about static variable 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 as... |
Forum: Java Nov 6th, 2005 |
| Replies: 19 Views: 3,227 |
Forum: Java Nov 6th, 2005 |
| Replies: 19 Views: 3,227 |
Forum: Java Nov 6th, 2005 |
| Replies: 9 Views: 1,688 |
Forum: Java Nov 6th, 2005 |
| Replies: 5 Views: 1,318 |
Forum: Java Nov 6th, 2005 |
| Replies: 19 Views: 3,227 |
Forum: Java Nov 5th, 2005 |
| Replies: 19 Views: 3,227 Re: What means "best practice"? 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,227 Re: What means "best practice"? 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 link... |
Forum: Java Nov 4th, 2005 |
| Replies: 1 Views: 1,044 Re: Help mapping names an content 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: 3,225 Re: JTable Limitation or Not? 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,227 Re: What means "best practice"? 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 class... |
Forum: Java Nov 4th, 2005 |
| Replies: 29 Views: 12,360 Re: about static variable 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: 12,360 Re: about static variable 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,209 |
Forum: Java Nov 3rd, 2005 |
| Replies: 29 Views: 12,360 Re: about static variable 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: 1,688 |
Forum: Viruses, Spyware and other Nasties Nov 3rd, 2005 |
| Replies: 4 Views: 2,875 |
Forum: Java Nov 3rd, 2005 |
| Replies: 5 Views: 1,322 |
Forum: Java Nov 3rd, 2005 |
| Replies: 5 Views: 3,909 Re: String class methods... 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: 2,522 |
Forum: Java Nov 2nd, 2005 |
| Replies: 15 Views: 2,835 Re: Beware the GUI builder 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: 3,225 Re: JTable Limitation or Not? 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: 3,225 Re: JTable Limitation or Not? 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 in... |
Forum: Java Oct 31st, 2005 |
| Replies: 3 Views: 1,279 |
Forum: Java Oct 31st, 2005 |
| Replies: 29 Views: 12,360 Re: about static variable 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: 1,688 Re: My Java Dream 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,643 |
Forum: Java Oct 31st, 2005 |
| Replies: 2 Views: 2,814 |
Forum: Java Oct 31st, 2005 |
| Replies: 1 Views: 2,471 |
Forum: Java Oct 31st, 2005 |
| Replies: 10 Views: 3,225 Re: JTable Limitation or Not? 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: 3,225 JTable Limitation or Not? 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 example... |
Forum: Java Oct 31st, 2005 |
| Replies: 15 Views: 2,835 Re: Beware the GUI builder 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,539 |
Forum: Apple Hardware Oct 24th, 2005 |
| Replies: 1 Views: 3,539 Re: Airport Extreme Not Found 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,287 |
Forum: Windows NT / 2000 / XP / 2003 Oct 24th, 2005 |
| Replies: 2 Views: 1,348 |
Forum: Visual Basic 4 / 5 / 6 Oct 24th, 2005 |
| Replies: 1 Views: 1,108 |