![]() Updated CopyFile.java example to show how to check if a file exists before attempting to read from it.Added a requirement that shortcut+p prints the current cursor position, and removed the "cursor" option for the 2nd command line argument.Added links to Project 2 slide and video.Added a clarification to the runtimes: Using arrow keys or clicking should be resolved in constant time: but the length of each line is a constant, since the window can only be so wide.Added a note that the scroll bar should never result in non-integral window positions (these positions should be rounded, like text positions).Īdded more FAQs to address common questions about the mysterious JavaFX Nodes, Groups, and special root Group.Added another video on data structure selection and analysis.Added an extra page with some tips about how to use JavaFX's ScrollBar class, linked from the scroll bar section.Updated information about grading (to link to Piazza).This section describes major changes that have been made to the spec since it was released. Project 2: Editor, version 1.0 Change Log Pressing command+equals (or command+minus) causes three events to happen, so my font increases (or decreases) by 12 rather than 4.I'm getting an error from JavaFX that says duplicate children were added.The bar (sometimes called the "thumb") in my scroll bar seems really small.Can I use JavaFX's ScrollPane instead of ScrollBar?.I'm carefully placing the scroll bar at the edge of the window, but there is this ugly border of a few pixels to the right of the scroll bar.I added a ChangeListener to ScrollBar to listen for when the user scrolls, but this listener gets called even when my code initiates a change to the value of the scroll bar! How do I avoid this?.Can I use functionality from earlier projects, even though I worked with a partner on those projects?.Can I use code that I found online and that's not from a Java library?.What does this error mean? "Caused by: : Children: child node is null: parent = Can I use methods from the swing or awt or \ ?.I want to add something as a child of root but I can't get access to root in the location where I want it!.How can I remove Nodes from the screen? Is it ok to remove all of the children of root and re-add them each time?.What do you mean by "render"? How do I re-render things?.What is this mysterious root and why do I need to change its children? (or: what are Groups?).My Text / Rectangle / other Node isn't appearing on the screen!.How can I efficiently append to a String?.What about the delete key, which deletes the character in front of the cursor on some operating systems?.Does my editor need to support any non-text keys not mentioned in the spec (e.g., the tab key)?.Breaking a line in the middle of a word.What happens when the cursor is between lines?.columnIndex - If positive, the index going forward (the given paragraph's line or the next one(s)). Parameters: paragraphIndex - The index of the paragraph from which to start. getAbsolutePosition(0, "some".length() + 1) = 5 = getAbsolutePosition(1, 0).getAbsolutePosition(0, "some".length()) = 4 = getAbsolutePosition(1, -1).(where the first paragraph's text is "some" and the second "thing"), then the following statements are true: In other words, given a document with two paragraphs If the column index spans outside of the given paragraph's length, the returned value will Warning: Off-By-One errors can easily occur the spot in-between characters) to the left of the given column in the given paragraph.įor example, given a text with only one line "text" and the columnIndex value of 1, "position 1" would be returned: selectionBounds default > selectionBoundsProperty See Also: getSelectionBounds().selectedText default selectedTextProperty See Also: getSelectedText().selection default selectionProperty See Also: getSelection().anchor default anchorProperty See Also: getAnchor().showCaret default showCaretProperty See Also: getShowCaret(),.caretBounds default > caretBoundsProperty See Also: getCaretBounds().caretColumn default caretColumnProperty See Also: getCaretColumn().currentParagraph default currentParagraphProperty See Also: getCurrentParagraph().caretPosition default caretPositionProperty See Also: getCaretPosition().text textProperty See Also: getText().length lengthProperty See Also: getLength().Method Summary All Methods Instance Methods Abstract Methods Default Methods Modifier and Type.True when an update to the area's underling editable document is still occurringĭefault >ĭefault
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |