hoang vo

Greenhorn
+ Follow
since May 03, 2005
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by hoang vo

HI,

I am seeking a Junior Position in Java Programming in Canada. I am SCJP2 certified, but have not had real world experiences. I have a Diploma in Programmer Analyst from CDI College of Business and Technology.

I am knowledgeable in C++/Java/VB6. As well as MS Access, MS SQL, SQL Server and Oracle 8i.

I have many years of experiences in Computer Hardware. I have helped many friends set-up completely new computers from scratch. As well, I have experiences in LAN and wLAN, some knowledge in networking(TCP/IP).

I am from Surrey, British Columbia, Canada. Please PM me for any position available.
[ August 27, 2006: Message edited by: hoang vo ]
13 years ago
Hi all,
I am in need of guidance on this subject.
This is not a school project nor work project. This is just to extend my knowledge of the language.

What I am trying to do is create a java application, connecting to a server ( likely a web server running SQL). The connection should be secure while retrieving/sending information. Users are allow to create/update their status.
Basically what should I look into? Reading materials?

I have some basic knowledge of java, and just asking for guidance on what I should look into.

Thank you.
13 years ago

Originally posted by Sandeep Narasimhamurthy:
Hi,

You are all messed up.

Any class within the same package can access protected members (variables/methods).
Sub class or not, doesn't matter. It can access protected members.

Then what's the use of protected ?
---------------------------------

Protected comes into picture for classes in OTHER PACKAGE.

If there is a subclass in other package, it can access Protected members. Not directly, buy by declaring objects of subclass, it can access protected members of parent class.

This mechanism provides a way to access protected members from other packages. Without this, only PUBLIC members will be available to classes of other packages, inherited or not.



Sandeep and Roel are right in my opinions.

Public - Any class can access in any package. (least restrictive)

Protected - Any inherited class IN or OUT of the package AND any class IN the same package. (more restrictive)

default(no modifier) - Any class IN the same package. (more more restrictive)

Private - Within the class (most restrictive)
ahh i figure as much, they dont seem to appear in any particular format from my test either.

is there anyway to determine or to specify say: order by name or size?

I mean i can get the filename into an array of string and compare those with each other to determin the aphabetical order, or put it into an array of file and order the files using File.length() method.

But just want to know if there is any other ways to organize the returned String filename or File filename type to either aphabetical or size-wise.
14 years ago
Just out of curiousity if anyone can help me answer this:

File f = new File("c:\\newFolder");
//f is a directory called newFolder

String fileList[] = f.list();
//return the string arrays of the files in the folder of f



my question is:
in what order does the file being return are?
for example: newFolder has 5 file

09022005test1
09032005test2
08032005test3
..
.
etc

what orders are they return as?
by name? by creation? by modify? or maybe my size?

thnx for the answer
14 years ago
just out of curiousity since i dont know to post it.

i have a simple program and wanted to make a setup file to install into other computers.

i wanted to know how to do so.
any help?
14 years ago
I agree with Stuart.

I did something like winamp for my first app while I am studying for the SCJP , which I am still working and fine tuning.


What I had was a JFrame (to appear in the taskbar), and as many JDialogs as needed. Only the JFrame will appear on the taskbar when minimize or maximize.

I had my JDialogs associate with my JFrame (basically setting the the JFrame to be the parent of the JDialogs, and when I minimize the JFrame all the JDialogs also minimize and vice versa.

I am not sure if that is what u wanted, but it works good for me. I can have like 10 dialog up and a JFrame and can move them anywhere I want.

The only problem I see with this is that all the JDialog will be on top of the JFrame, even if the JFrame has focus.

This is where I got my information on making JDialog and just extend it to what you need.
<a href="http://www.cs.cf.ac.uk/Dave/HCI/HCI_Handout_CALLER/node92.html#SECTION00094100000000000000<a href="http://www.cs.cf.ac.uk/Dave/HCI/HCI_Handout_CALLER/node92.html#SECTION00094100000000000000" target="_blank" rel="nofollow">A" target="_blank">http://www.cs.cf.ac.uk/Dave/HCI/HCI_Handout_CALLER/node92.html#SECTION00094100000000000000[URL=http://www.cs.cf.ac.uk/Dave/HCI/HCI_Handout_CALLER/node92.html#SECTION00094100000000000000]A simple Dialog
14 years ago
i've look into JInternalFrame before
it would been good except the window are inside the containing frame. its like an MDI.

Currently i m testing out JDialog and it seem to work good.

I have a JFrame which is the first record loaded.
then every other record loaded will go into JDialog, a non-modal dialog.

The JFrame when minimize will also mininize the JDialog. which is what i want. just the JDialog .. contains nothing hehe.

ps.
winamp is an mp3 player
14 years ago
Its a good idea but the CardLayout will only be able to display one panel at a time.

What I am thinking of would be similar to Winamp.

You have your main player which has playlist window, media library window, etc.

but only the player is minimizable while the other can only be close (like a dialog), they do not exist in the taskbar.
14 years ago
Hi,

I am writing a simple program that has more than 1 JFrame.
Each JFrame consist of information about a particular person and that list can go on.

But when i run the app in eclipse it opens 8 windows for 8 JFrame.
Is tehre a way to make it only open 1 ?

kind of like winamp:
the playlist is not in the taskbar but it display (if already open) when the user select the winamp icon in teh taskbar

hope i explained it correctly
[ August 22, 2005: Message edited by: hoang vo ]
14 years ago
thank you.
I will look into that.

currently i m using filewriter and filereader(2 be code)
and using a character sequence of "\n\n" as my end of the info for that person. But have been thinking about other methods to save structural information.

thanx again
14 years ago
Hi,
I hava these information:
name - string
alias - string
info1 - string
info2 - string
..


the info can go from 1 to 10

kind of like having a structure and saving that structure for later to load.
any info would be good on how to start it
14 years ago
question withdrawn

cause i had the wrong name

i had noteNameLabel.setLayout(new GridBagLayout());
instead of noteNamePanel.setLayout(new GridBagLayout());
14 years ago
Hi all,

My first time posting here.

I have a question regarding the GridBagLayout. I cannot seem to arrange the layout into 2 row 2 column. It all goes into one row.
here is my code:
14 years ago