@Override
		public Dimension getPreferredScrollableViewportSize() {
			//
			// Overridden to allow the text of the text area to be as big as it wants to be to
			// prevent horizontal scrolling.  This helps with content like error messages, which
			// often are sized too small to see all the text.
			//
			Dimension size = getPreferredSize();
			size.width += getScrollBarWidth();

			Rectangle screenBounds = WindowUtilities.getScreenBounds(this);
			if (screenBounds == null) {
				// not yet 'realized' on screen; don't know which screen we will be on
				return size;
			}

			size.width = Math.min(size.width, screenBounds.width);
			size.height = Math.min(size.height, screenBounds.height);
			return size;
		}
Constructs a new JTextArea with the specified number of
rows and columns, and the given model. All of the
constructors feed through this constructor.
Ghidra/Framework/Docking/src/main/java/docking/widgets/ScrollableTextArea.java