I am just trying to use the class Box (Java API) using Eclipse Neon. When I import javax.swing.Box
, the class seems not to exist anymore.
If I call the function like this:
Box myBox = Box.createHorizontalBox();
Eclipse shows an error: "The method createHorizontalBox()
is undefined for the type Box"
Is class Box (and functions) not included in javax.swing? Any idea what is wrong?