java - What's a good-practice replacement of System.out.println? -


my application has output content user. throughout classes i've been using system.out.println, since program isn't intended run command line isn't suitable.

i had thought of making classes extends jpanel , having content append textarea. i've been reading isn't move, , issue arises in i'll have pass jpanel class classes output text.

is there good-practice alternative system.out.println? if not, how suggest proceed? have suggestions of java logging, don't want output file.

you should have limited user interaction in of classes , in fact ui code should separate in own set of class. should strive write model (non-ui) code can work in console application, swing application, swt application or other ui library type application. way code can work sop or gui's see fit. wager > 90% of java classes created professional coders have no ui code within them.

also please note logging , user interaction code 2 orthogonal concepts. @ logging way communicate developer , supporter, not user.


Comments

Popular posts from this blog

SPSS keyboard combination alters encoding -

Add new record to the table by click on the button in Microsoft Access -

javascript - jQuery .height() return 0 when visible but non-0 when hidden -