Sofie Deceuninck

Greenhorn
+ Follow
since Feb 20, 2004
Merit badge: grant badges
For More
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 Sofie Deceuninck

I solved the problem by using an ArrayList where I put all my objects in. Then I only have to write my ArrayList to the file.

20 years ago
I still have a problem with my output. I write some objects to my file and I ad them at the end of the file, but when I want them to read with my input (ObjectInputStream) it only gives the first object and for the rest of the objects I get an IOException. Can sombody explain me this problem?
The following code are implementated in 2 different classes.

20 years ago
How can you read all the objects of a file written by an ObjectOutputStream? I tried the following code but it didn't work
Thanks for any suggestions !
20 years ago
It was just displayed with the default font so tricky to solve the problem.
Thanks for the links on how fonts work.
20 years ago
I tried what you said and saw that the font Bangle was available but when I tried the following it still didn't work out! What's the problem then?


Try calling -
code:
--------------------------------------------------------------------------------
String[] fontNames = GraphicsEnvironment.getLocalGraphicsEnvironment(). getAvailableFontFamilyNames();
--------------------------------------------------------------------------------
And see what fonts are available to you.


20 years ago
When I push the button I want to make a new frame, but that must be openend in the original frame namely Test_hotelreservation. How is this possible?

Thanks for the replies in advance!
20 years ago


You have to go to great lengths to install fonts (i.e. install them in the lib/fonts directory of the JRE, then edit font.properties to include them correctly)


What do I have to edit about the font.properties? Does it satisfy when I just place the appropiated fonts in the directory lib/fonts of the JRE?
20 years ago
How does it come the button's label isn't displayed with the font Broadway BT? In the method paint the font works.

When i use the method setFont it still doesn't work.

Thanks for the replies in advance.
Sofie
20 years ago
I want to make an array where the size is variable.
What's the difference when I use an ArrayList or a Vector?
20 years ago
I want to display an image in a frame but my image isn't displayed. I know this has been discussed already but it stil wasn't clear to me.
Thanks!
20 years ago
I want to display an image in a frame but my image isn't displayed. I know this has been discussed already but it stil wasn't clear to me.
Thanks!
20 years ago