831334 wrote:"Within Java" doesn't tell whether you want to print using a printer, on the console or the GUI.
My apologies, I thought the question was transparently posed within the 'Java Programming' forum implying "within Java".
Indeed, I want to print to the console selective italicized print; that's the IDE console I am using and not a console such as a hand-held game or an actual terminal as part of a client/server configuration -- I jest of course but help is greatly appreciated.The console doesn't support italics in the general sense. It would involve terminal dependent control characters, which the IDE console would most likely not support anyway.
I want to be a little fancy with my code.I think it's a bit too early for that.
831334 wrote:Well that's nice for you, but I doubt many will be impressed here.
Well I am a graduate student in Computer Science currently building from scratch a database program as part of my school database class I am taking this semester. I have taken undergraduate courses in Java covering simple types, and data structures; at the graduate level algorithm analysis covering topics such as Fourier Transforms. I am also engaged in improving my C programming skills and learning Python to boot.
When I originally posted I thought I would receive an answer to my question regardless where I posted; perhaps this forum would be more active and relevant for my question. Now that my resume is out there including a background in electrical engineering, should I hit Google or can I get an answer to my question?Now I know that one shouldn't expect much eloquence from a computer scientist, but your original question of "How can I print Strings in italics" wasn't exceptionally well thought out. Or was it news to you that Java is capable of outputting Strings in more ways than outputting to a standard console?
If not the current adage is: "Its easy, just Google it" will suffice and follows the wade through data overload but oh well.We gave you plenty of answers already, do we need to hold a lecture for you to understand them?
PhHein wrote:Marked Helpful and thank you. I also appreciate knowing that console output can not attribute special formatting. I will consult the Abstract Window Toolkit, Swing structs, Standard Window Toolkit, and other GUI toolkits. I plan to add a GUI component to this project so again, thank you for answering damn question.
You can format String output with AWT, Swing, SWT and other GUI toolkits.
831334 wrote:I would have had several answers, had your question been formed properly. As was in several posts indicated, you can display italics text in a GUI or you could send italicized text to a printer.
Curious, do you even have an answer of how I may display Strings as italics in Java?
Console is a no go?Like I said, it would depend on the terminal and its capabilities. I wouldn't say it's impossible, but it wouldn't be worth it. And the IDE's console is usually text-only.
but I think you can understand my question.Well, I'm pretty good at deciphering people's ramblings here, and you seem to be even a native English speaker unlike so many people here.
Perhaps you will also not make assumptions if you answer the question concerned I may not have yer learned control loops or how to spell Arrey.Could you rephrase that?
Nevertheless, this trite was entertaining.Only for you, I assure that.
831334 wrote:This is not a feature peculiar to Java since on Windows or Linux or pretty much any OS. Java just uses the console (or equivalent on your OS) which is a very very dumb terminal. Any program in any language writing to it will have the same problem. It is possible to install software that emulates a VTxxx terminal or other random access terminals but this make little sense these days. Best just to consider using Swing or AWT.
I also appreciate knowing that console output can not attribute special formatting.