• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Building a Window Manager using Java

 
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Guys ,

As some of you may be knowing Linux has a device called FrameBuffer device /dev/fb0 . If we write
to this device we will basically be writing to the screen .

Now all devices in Linux basically behave like files right ? So lets say we open up a BufferedWriter to /dev/fb0 , we
should be able to write to it like any other file .

So I was just wondering that we could build an entire window manager by using this concept .

We could bypass the X server !!!

Also we could provide programmers with an entire API for building windows and stuff , like GNOME or KDE .

The API would be something like this :-

public WindowManager createWindow ( int x , int y , int length , int breadth )
{ We open a BufferedWriter or some sort of a writer to /dev/fb0
and do whatever is necessary to create the desired window


}

This would also allow us to create a entire JAVA based Desktop in Linux . As soon as the system boots instead of
starting X and the normal desktop managers we would be starting our own java program . Now since SWING wouldn't work
in an environment without X , rather than using SWING we would be making direct calls to our API to display a desktop .

Eagerly awaiting your comments



 
reply
    Bookmark Topic Watch Topic
  • New Topic