Bugs item #1578865, was opened at 2006-10-17 04:33
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=438935&aid=1578865&group_id=44253
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: User interface
Group: 2: Annoying
Status: Open
Resolution: None
Priority: 5
Submitted By: Marty Stepp (martystepp)
Assigned to: Nobody/Anonymous (nobody)
Summary: Scanner input boxes wrap when Interaction scrollbar appears
Initial Comment:
Using DrJava 20060918-1737 on Windows and Linux,
there's an annoying UI appearance bug with user input
from the Scanner.
Often we'll write programs where we prompt the user
using System.out.print, and then read a value using the
Scanner. For example:
Scanner console = new Scanner(System.in);
System.out.print("Your name? ");
String name = console.nextLine();
Notice that I used print, not println -- we use print
intentionally to stay on the same line as the user's
input. DrJava handles this just fine, except at the
moment that the Interactions pane becomes just large
enough to need a scrollbar.
As the scrollbar appears, it causes the lines of the
interactions pane to re-wrap or something, making the
input entry box jump down to the next line. This is
frustrating for students because they think their
program has inserted a line break that it has not.
They're required to exactly match expected output, so
they understandably get worried when they encounter
this bug.
To reproduce this bug, run a program such as the
attached program. Before running it, resize the
interaction pane to give yourself some room, say 8-10
lines. Initially the prompts will look right, but as
there become just enough prompts to cause a scrollbar
to appear on the Interactions pane, every input textbox
will suddenly shift in position to the next line. It's
incorrect and ugly.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=438935&aid=1578865&group_id=44253
|