Fullscreen have scrollbars

Y’all might find the following full-screen border fixer helpful:

comp = event.source
appRoot = comp.parent.rootPane.parent
while comp:
	try:
		comp.setBorder(None)
		b = comp.getBorder()
	except:
		b = "Fail"
	print "%s (%s) @ %d,%d %dx%d border=%s" % (comp.name, str(comp.getClass()), comp.x, comp.y, comp.width, comp.height, b)
	if comp is appRoot:
		break
	comp = comp.parent

Place it in any startup window’s internalFrameOpened() event. It only needs to run once, but does no harm if run again.
The annoying extra border comes from the JScrollPane’s viewport. That would be the JScrollPane that adds scrollbars to the entire application when any floating window is dragged down or right.

2 Likes