0

In Swing GUI i need to show an image which will indicates the Liquid level of the tank on the basis of dynamic data.It would be like a tank image which will show the liquid which is having.How can i draw liquid level?

Solution:

Reffer this block-"STEEL SERIES"

Mukthi
  • 561
  • 4
  • 13
  • 35
  • 4
    *"How can i do this in swing.."* Which part? Load an image? Display it in a panel or label? Draw the fluid level? Doing it dynamically? *"..with Netbeans IDE?"* The same way you'd do it in Eclipse or an app. written in a text editor. – Andrew Thompson Dec 09 '11 at 07:51

3 Answers3

2

How steampunky are you feeling? Here's a gauge level

Miquel
  • 15,405
  • 8
  • 54
  • 87
2

Also consider JFreeChart, which includes DialPlot and ThermometerPlot, shown here. The latter is designed for temperature, but it illustrates liquid levels well.

Community
  • 1
  • 1
trashgod
  • 203,806
  • 29
  • 246
  • 1,045
1

You may want to use a progress bar. Read: http://docs.oracle.com/javase/tutorial/uiswing/components/progress.html

You can do a setOrientation() method to make it vertical.

thotheolh
  • 7,040
  • 7
  • 33
  • 49