User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
DaniWeb is a massive community of 457,401 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,404 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Showing results 1 to 40 of 45
Search took 0.01 seconds; generated 2 minute(s) ago.
Posts Made By: Gargol
Forum: Java Nov 10th, 2005
Replies: 29
Views: 12,360
Posted By Gargol
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
Posted By Gargol
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
Posted By Gargol
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
Posted By Gargol
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
Posted By Gargol
Forum: Java Nov 6th, 2005
Replies: 19
Views: 3,227
Posted By Gargol
Re: What means "best practice"?

I see our point on Main.
Forum: Java Nov 6th, 2005
Replies: 9
Views: 1,688
Posted By Gargol
Re: My Java Dream

How are the dreams going?
Forum: Java Nov 6th, 2005
Replies: 5
Views: 1,318
Posted By Gargol
Re: help needed

This is a Java forum.
Forum: Java Nov 6th, 2005
Replies: 19
Views: 3,227
Posted By Gargol
Re: What means "best practice"?

Thanks for the reference.
Forum: Java Nov 5th, 2005
Replies: 19
Views: 3,227
Posted By Gargol
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
Posted By Gargol
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
Posted By Gargol
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
Posted By Gargol
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
Posted By Gargol
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
Posted By Gargol
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
Posted By Gargol
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
Posted By Gargol
Re: Going for SCJP

Are you talking about Java?
Forum: Java Nov 3rd, 2005
Replies: 29
Views: 12,360
Posted By Gargol
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
Posted By Gargol
Re: My Java Dream

I'll try thinking in Generics then.

Thanks!
Forum: Viruses, Spyware and other Nasties Nov 3rd, 2005
Replies: 4
Views: 2,875
Posted By Gargol
Re: Grisoft AVG Free seems to be corrupted

Have you tried uninstalling?
Forum: Java Nov 3rd, 2005
Replies: 5
Views: 1,322
Posted By Gargol
Re: please help me

Maybe someone should tell you that you are being a bit ambitious!
Forum: Java Nov 3rd, 2005
Replies: 5
Views: 3,909
Posted By Gargol
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
Posted By Gargol
Re: Having problems saving objects into an array, then accessing the data later for repo

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 value...
Forum: Java Nov 2nd, 2005
Replies: 15
Views: 2,835
Posted By Gargol
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
Posted By Gargol
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
Posted By Gargol
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
Posted By Gargol
Re: help me on this syncronization??????

How about using synchronise on the Print1to10 class.
Forum: Java Oct 31st, 2005
Replies: 29
Views: 12,360
Posted By Gargol
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
Posted By Gargol
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
Posted By Gargol
Re: regExp pattern

I presume you are not using Java. You have posted in the wrong forum.
Forum: Java Oct 31st, 2005
Replies: 2
Views: 2,814
Posted By Gargol
Re: Problem changing contents of JTable when button is pressed...

From your last post I assume that you have now implemented an AbstractTableModel.
Forum: Java Oct 31st, 2005
Replies: 1
Views: 2,471
Posted By Gargol
Re: JTable problem

Make sure getColumnCount returns non-zero too.
Forum: Java Oct 31st, 2005
Replies: 10
Views: 3,225
Posted By Gargol
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
Posted By Gargol
Help 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
Posted By Gargol
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
Posted By Gargol
Re: got rid of peoplepc and now cannot use ie

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: 3,539
Posted By Gargol
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
Posted By Gargol
Re: Will PC2100 RAM work in a new Powerbook G4

crucial.com is great for this sort of check.
Forum: Windows NT / 2000 / XP / 2003 Oct 24th, 2005
Replies: 2
Views: 1,348
Posted By Gargol
Re: Serious Help Needed!

Sounds like hardware if you havnt changed or done something new?
Forum: Visual Basic 4 / 5 / 6 Oct 24th, 2005
Replies: 1
Views: 1,108
Posted By Gargol
Re: Help Needed

No Probs
Showing results 1 to 40 of 45

 
All times are GMT -4. The time now is 8:39 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC