Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Java: Graphics in Linux

Does X-Windows have to be installed on a Linux-box in order for Java to display fullscreen graphics?

like image 624
Ande Turner Avatar asked Jan 17 '10 09:01

Ande Turner


People also ask

What is graphics program in Java?

Graphics Program in Java The graphics program in Java is part of the Swing program in Java. In this section, we will learn about the implementation of custom graphics using some advanced examples. Creating a Bouncing Ball

How to do 2D graphics in Java?

Introduction to 2D Graphics in Java. 2D Graphics can be achieved using the Java programming with the help of a few advanced features of Java 2 platform, that includes the Java’s built-in functions for operations like image processing, advanced graphic designing options, geometric transformation, alpha composting, etc.

How do I use the graphics object?

The graphics object is the thing that has all the good stuff in it. Browse the documentation for this class now. To draw or fill ovals and rectangles, you specify the upper-left coordinates, the width, and the height. Set the color before drawing with setColor.

What is the use of graphics class in Python?

Swing graphics can be done by using Graphics class. This Graphics class is the abstract base class for all graphics applications and it allows an application to draw components that are compatible with various devices.


1 Answers

Well "fullscreen graphics" is a bit vague.

Anyway, apparently there is a an effort ongoing to access the framebuffer from Java: Framebuffer Toolkit.

The objective of this project is to produce a body of code which is a lightweight framebuffer-based peer implementation for AWT and Swing. The goal of this code is to remove the dependency on X or other graphics layers such that graphics can be redirected to a framebuffer (e.g. a raw buffer, VNC, etc.). This example implementation will prefer pure-Java solutions, with public extension points available to enter native resources as necessary.

See Project proposal: fbtoolkit.

like image 67
Gregory Pakosz Avatar answered Oct 08 '22 23:10

Gregory Pakosz