Skip to main content

Rectangle2D

When we want to use Rectangle2D.Double with RMI we will need Serializable Rectangle2D.Double.
Rectangle2D is serialized by sun. <------- java.awt.Rectangle
But java.awt.Rectangle is supported just for Integer Version.

So, I made SerializableRectangle2D like as following code.

public class SerializableRectangle2D
extends Rectangle2D.Double
implements Serializable
{
public SerializableRectangle2D()
{
super();
}

public SerializableRectangle2D(double x, double y, double w, double h)
{
super(x, y, w, h);
}
}

However the getting value is just 0 when I use rmi and get message.
But, no documents was google in japanse.... I lose 3 days.......
Some of web site said i cannot do it using easy way....
And some of site said java 1.6 will be able to be suported it.
This meaning.......it will be able to use serialized Rectangle2D.Double.......

Actuary........I have no way how to make solution for this problem......
1 comment

Popular posts from this blog

SSID in japanese?

Usually, we don't use japanese for setting to computer. Because, japaese needs at least two byte. Usually, many computer systems are designed for one byte. So, to use japanese in the system setting was not common way. If he is usual engineer then he will not set japanese for the setting to SSID. I was not do such a thing. Today, i read a tweet written by my friend. He wrote that he could see the japanese ssid from his house. I was really  suprized when i read it. So, I asked prof. Google about this ssid expression in japanese. So, it is  exist.Now, I had no wireless devces for trying it. But,it is so intersting thing for me.

TokyoWalking : Tram @Arakawa-Line

End of last year, I went to cycling to Ikebukuro. Ikebukuro is one of the main city on Yamanote-line (loop line) It is north area of Tokyo (loop-line).

Basically, most rail lines on mid-tokyo are as subway or elevated railway. So, it made my so surprising, when I saw it. 
This is tram in tokyo. I did not know that tokyo also has a tram.

Following photo is another tram station.

I saw several tram on the railway. Most of them are painted with different line (maybe...) This tram is named Toden-Arakawa-Line. This line is for Waseda University. I could not take the tram, becase I rode my bicycle. However, I will take the tram on some day.

Following river is River, Kanda. The river is used on some old japanese song.


Bicycle insurance in japan

Long time, I was considering about bicycle insurance.

Many japanese are not consider about insurance for bicycle in japan. Because japan is weak country for insurance.

Many people considered about when they are attacked by car. They didn't have an idea what they may be going to be individual at fault. However, road bikes are faster than my MTB. And, many of city bikes do not turn on a head light after sunset. The old person has also no idea what the bicycles can ride so fast as 50cc motar bike. Then they easy enter in front of bicycles. Such kind of accident is not few in japan. And, the worst case of such accident, the road bike rider needed to pay 40 millions yen to attacked person.

Bicycle ride's bad manner have begun to social issues. Some bicycle riders do not follow the traffic lights or traffic signs. In such background, sometime, I have risks what I will be attacked by such bicycle riders when I ride my MTB. However, as above reason, many riders have no insurance for r…