• 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
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

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



 
It's a beautiful day in this neighborhood - Fred Rogers. Tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic