Skip to main content



      Home
Home » Newcomers » Newcomers » New to Java and Eclipse
New to Java and Eclipse [message #145339] Tue, 28 March 2006 12:07 Go to next message
Eclipse UserFriend
Originally posted by: sebastien.durand.umontreal.ca

Hello everyone,

I have just done few java tutorials on eclipse and this software amaze me!

Here I have two questions for you.

My situation is the following: I which to create a simple GUI that will be
linked or be using few functions I created in R, a free statistical
software. I which this GUI to do two things: 1- read the output of the R
functions and plot or display them in the GUI... and 2- create inputs
(numerical or characters) that will have to be passed to R software
(Please note that in R documentation it is mentionned that it is possible
to link both interface together, but at this time before I start coding I
would like to get myself well oriented).

I have writen some very basic C code, perl, matlab and R langague. Now I
which to learn Java which I have never tried before.

My first question is as follow:
1- In order to have a selfcontained GUI that is platform independant, and
that will be linked to R software, what should I use to create my GUI. Is
swing a good choice.

2- Now, to efficiently learn Java starting from scratch, what should I do
or read (please note that I don't what to know everything about Java I
simply what to be efficient at building and creating my own GUI..., which
I guess isn't that simple).

Thanks a lot.

Sébastien Durand
Re: New to Java and Eclipse [message #145846 is a reply to message #145339] Thu, 30 March 2006 14:31 Go to previous message
Eclipse UserFriend
Sébastien,

What you want to do is possible, but you will probably have to use JNI
to access the R api, and JNI is not for the faint of heart. I'd suggest
you get the doc at http://java.sun.com/docs/books/jni/ and perhaps
consider buying a book, search on Java JNI in Amazon.

You can use Swing or SWT, I think Eclipse people are likely to be
slightly biased to SWT since that is what Eclipse itself is implemented
with. But from your requirements, there is one factor which may push
you towards Swing -- it does 2D graphics well, whereas SWT does not.
There is a way to make SWT do 2D using a sort of encapsulated flavour of
AWT, documented at
http://www-128.ibm.com/developerworks/java/library/j-2dswt/

There are hundreds of books on Java, and several on GUI programming
using Swing, and a couple on GUI Programming with Eclipse/SWT.

Chris
Previous Topic:How to Edit CSS file with Eclipse
Next Topic:"learn keystroke" macro ?
Goto Forum:
  


Current Time: Thu May 08 06:16:28 EDT 2025

Powered by FUDForum. Page generated in 0.07663 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top