|
Advertisement
|
Forum posts by Kondwani Mkandawire:Posted in Java Answers Forum, Jun 14, 2005, 9:20 PM
> What I'm saying is that Java is meant to make things> functional, not to make things pretty. It was a reply toIf that was the case why do we have a Swing and AWTlibrary, *practically* everything in Swing that isdone from a functional perspective can be done froma Console developed program.
Posted in Java Answers Forum, Jun 14, 2005, 2:55 AM
> You have to keep in mind that even though Swing is great> for building GUIs, Java is a programming language, not a> markup language such as HTML.> > But yes, it would definately ease some things up.In reference to the above, what in the world does Javabeing a Programming language have to do with introducingand extension to the Components...
Posted in Java Answers Forum, Jun 14, 2005, 2:23 AM
Found the solution I have Modelled 3 classes:A ViewPort, An AbstractViewPainter, a BackgroundViewPainteroff this Tutorial:http://java.sun.com/products/jfc/tsc/articles/swing2d/Put my JTable in my ViewPort, myViewPort.setView(myJTable);and set this ViewPort carrying its own BackgroundPainter (with my Image)to be the view port of a ScrollPane in...
Posted in Java Answers Forum, Jun 13, 2005, 6:53 PM
Thanks man... I'll try it out...Don't you think it would be great though if Sunintroduced a method signed:void setBackgroundImage(Image im)for Components in the next Java release?
Posted in Java Answers Forum, Jun 13, 2005, 3:31 AM
Hi folks:I have a JFrame, in it there is a JTable table1;Please give me some suggestions on how to set abackground image for the table.I have googled this like crazy but to no avail.Thanks in advance.Spike
Posted in Java Answers Forum, Jun 12, 2005, 7:23 PM
Some suggestions:Set up your environment first. Download j2sdk install it (configure it for yourenvironment via your batch files (configure the CLASSPATH and PATH environmentvariables to include your Java Environment). You can Google "configuring Classpathfor Java" I'm sure tons of step by steps should show up.After Installation try type in the...
Posted in Java Answers Forum, Jun 9, 2005, 1:38 AM
Its Ok, I got the answer:Wrapper types for primitives e.g Integer and Booleando not support modification and ints and booleanare passed by value.int var[0] = x;var[0] = y;has a different effect Integer var = new Integer(x);var = new Integer(y);Only that I don't see why this would make a differencein Java Pos.
Posted in Java Answers Forum, Jun 9, 2005, 1:30 AM
Hi Folks:Going through the Java Pos documentation, I'm tryingto understand why someone would create and returnor utilize a primitive value carried as a singlearray element. I thought Java has no dereferencingas in other languages (hence memory address is wouldnot be a reason).For instance why would someone declare variables as follows:boolean...
Posted in Java Answers Forum, Jun 9, 2005, 12:38 AM
Don't quite know what you're asking but related topicswould *probably* be writing a mail server, or probably reading up on Cron (schedule it to execute your scripts that run Java progs which send mail).In short Googling JavaMail and Cron would be agood start.Don't know if that answers your question.
Posted in Java Answers Forum, Jun 9, 2005, 12:34 AM
Thanks man, makes a lot of sense.I was wondering when someone would respond to thatone coz when I saw the Q, I was dying to know theresponse too...(to the poster) good Q.(to the responder) Thanks again...
Posted in Java Answers Forum, Jun 8, 2005, 6:19 PM
Its also usually good practice to include the locationof your java environment to your path environment variable,on the Linux Kernel I'm on its done in my .bashrc file,on windows I believe you have to edit autoexec.batSomeone please correct me if I'm wrong.By the way do you have a jdk on your machine?
Posted in Java Answers Forum, Jun 6, 2005, 6:40 PM
How about having a Controller which does your fileaccessing (your controller would be your base code),and the UI code (Swing, or some other API) then interacts with the Controller, and you web applications (JSPs) would the also interact with your controller (which has access tothe file system).
Posted in Java Answers Forum, Jun 2, 2005, 5:43 PM
From the line count it seems that the beef is withthese two lines: FileInputStream inStream = new FileInputStream("Matrix"); ObjectInputStream objStream = new ObjectInputStream(inStream);Place a try catch around these lines too as follows:try{ FileInputStream inStream = new FileInputStream("Matrix"); ObjectInputStream objStream = new...
Posted in Java Answers Forum, Jun 2, 2005, 5:38 PM
***Reporting Exception*** should be the first line you see. It still seems tothrow it, or its not catching the right one...Try:(catch IOException) instead of just (Exception e)
Posted in Java Answers Forum, Jun 2, 2005, 1:49 AM
If I have a class as follows:classA{ int att1; public boolean someMethod1(packageb.ClassB b){ process(b); return false; }}Is it fair to say A is associate with B, if B were an attribute, thenwe would say A has to have a B object, am I right??Thanks for your assistance.Spike
|