不过Robot仅对屏幕坐标有效,而对Swing组件参考无效,因此直接使用它会使测试很脆弱,这意味着任何布局变化都会中止测试。
But the Robot works with screen coordinates instead of Swing component references, so using it directly in tests will make the tests fragile, meaning any change in layout will break them.
教堂的花园和其他附属建筑非常开阔,它们作为奥克兰笛卡尔坐标式城市布局的延伸而与城市相连接。
The Cathedral's gardens and dependencies6 are very open and connected to the city as an extension of Oakland's Cartesian urban grid.
您也可以采用二维方式对元素进行布局,使用水平和垂直坐标将元素定位到页面中的任何位置。
You can also lay out elements two-dimensionally positioning elements with horizontal and vertical coordinates anywhere on the page.
应用推荐