java emphasizes the reusability of code. if want to anything from the scratch, go ahead without bothing to learn it because it won't make you happy.
and more, everything but primitive built-in data type is pointer. don't worry about access physical memory without pointer: when you create an object, you're actually creating a pointer to that memory area set aside for you in the heap, but--without *, that you might think of as your friend, sorry.
it's totally for different use and that's why you need to learn both Java and C/C++ !!!!!!!!And absolutely YES to your question. You CAN write your own awt tools. But you will surely give up.first, your tools are mostly not as perfect as the original ones.s second, you must consider the standard. third, you must spend too much time on these meaningless codes although you know clearly how to do that.basicly all the lightweight components can be written in pure Java (swing). the Graphics class is very strong in doing all the painting screen solutions.
象awt这种就不用你自己写了,前人一般都会考虑到你的需要已经准备好一些了。
不过,你可以在其基础上修改或扩充你自己的功能。若实在觉得awt/swing不顺手,当然你也可以自己写一个。java与硬件的联系也有一些基础类库的,你可以在这之上加以扩充,以满足自己的需要。
我就是想知道如何自己写一个类似awt的东西,只要能实现一点小功能就可以,能给个例子或者思路吗?
zez(鹤清风 为了老婆多挣钱 !) ,你误会我的意思了,大概是我没说明白。
我的意思是说,我想访问物理内存,没有指针我如何实现呢?
当然只是一个windows窗口,你可定愿意用c去写。至于DOS下的中断向量表。保留的都是dos(windows)的。。linux下怎么办呢???(我不懂,所以就不知道管不管用了。)其实,我也不明白,,只是世界变化太快。。
You CAN write your own awt tools. But you will surely give up.first, your tools are mostly not as perfect as the original ones.s
second, you must consider the standard.
third, you must spend too much time on these meaningless codes although you know clearly how to do that.basicly all the lightweight components can be written in pure Java (swing).
the Graphics class is very strong in doing all the painting screen solutions.