How to create horizontal or vertical racks and glue for use with scala BoxPanel?

In Java, the java.swing.Box class contains methods for creating horizontal and vertical struts and glue. Struts and glue are useful for using space elements when using BoxLayout.

Box.createHorizontalStrut(10) Box.createVerticalStrut(10) Box.createHorizontalGlue() Box.createVerticalGlue() 

Where can I find the appropriate methods in scala?

+4
source share
1 answer

I found methods in a companion scala Swing object:

 import swing.Swing Swing.HStrut(10) Swing.VStrut(10) Swing.HGlue Swing.VGlue 
+5
source

Source: https://habr.com/ru/post/1334660/


All Articles