Skip to main content

Text in JavaFX App Bleeding.

1 reply [Last post]
elberry
Offline
Joined: 2004-03-22
Points: 0

Hey all,
I have an JavaFX app that I'm running on my mac at home:
Intel Mac, Java 1.5.0_13, jsr223 reference implementation, and latest release of OpenJFX.

My Script is simple:

<br />
import java.lang.*;<br />
import java.lang.System;<br />
import javafx.ui.*;<br />
import javafx.ui.canvas.*;<br />
import javax.swing.*;</p>
<p>var queryField = TextField {<br />
	columns: 30<br />
};</p>
<p>queryField.onKeyUp = operation(keyEvent) {<br />
	System.out.println(queryField.text);<br />
};</p>
<p>Frame {<br />
	title: "Find Files"<br />
	centerOnScreen: true<br />
	resizable: false<br />
	content: GridBagPanel {<br />
		cells: [<br />
			GridCell {<br />
				gridx: 0<br />
				gridy: 0<br />
				weightx: 0.0<br />
				content: Label {<br />
					text: "Enter File Name:"<br />
				}<br />
			},<br />
			GridCell {<br />
				gridx: 1<br />
				gridy: 0<br />
				anchor: EAST<br />
				weightx: 1.0<br />
				content: CheckBox {<br />
					text: "Restrict to files in current project."<br />
				}<br />
			},<br />
			GridCell {<br />
				gridx: 0<br />
				gridy: 1<br />
				gridwidth: 2<br />
				fill: HORIZONTAL<br />
				content: queryField<br />
			},<br />
			GridCell {<br />
				gridy: 2<br />
				gridwidth: 2<br />
				weightx: 1.0<br />
				fill: HORIZONTAL<br />
				anchor: WEST<br />
				insets: Insets { top: 5 left: 25 bottom: 5 }<br />
				content: Label {<br />
					text: "Wild Cards: ? = Single Character, * = Multiple Character"<br />
				}<br />
			}<br />
		]<br />
	}<br />
	visible: true<br />
}<br />

I'm not sure what I'm doing wrong here, but the text in the window starts bleeding into one another, and the blue highlighting around the focused component remains even after focus is removed.

Here's a screenshot:
http://www.townsfolkdesigns.com/images/text_bleeding.png

Any help with this would be greatly appreciated.

Thanks,
Eric

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
elberry
Offline
Joined: 2004-03-22
Points: 0

I just tested this on windows, and it seems to be working fine there. So I'm making the assumption that this something with the Mac Java. Does anyone know if there's some known L & F issue on Mac that could be causing it? It seems as though the components are being redrawn over each other - like layering in The Gimp or Photoshop.