 |
 |
Index ‹ java-programmer
|
- Previous
- 2
- singlethreadmodel vs. synchronizeI have a book that is explaining servlets and implements
singlethreadmodel instead of using synchronize with wait and notify.
does that only work with servlets? which is better?
- 5
- Eclipse Tomcat Project StructureHi All,
I am using Eclipse 3.0 with a Tomcat plug in.
I am trying to create multiple web projects using Tomcats webapps
directory. Eclipse will let me set up one project with under the webapps
folder but when I try to add a new project I get the following error
C:/jakarta-tomcat-4.1.30/webapps and C:/jakarta-tomcat-4.1.30/webapps
overlap.
This I am sure will have a simple explanation... I am thinking that it
should be ok to work on multiple web projects with different names at the
same time under Tomcats webapps folder ?
Thanks in advance
Jim
- 6
- CLASSPATH clobbering, win2kfrom <http://java.sun.com/j2se/1.4/install-windows.html#Environment>:
"Choose Start, Settings, Control Panel, and double-click System. On
Microsoft Windows NT, select the Environment tab; on Microsoft Windows
2000 select the Advanced tab and then Environment Variables. Look for
"Path" in the User Variables and System Variables. If you're not sure
where to add the path, add it to the right end of the "Path" in the
User Variables."
under System Variables the value of "Path" is:
"C:\Program Files\Java\jdk1.5.0\bin\"
from
<http://java.sun.com/docs/books/tutorial/getStarted/cupojava/win32.html#2c>
I followed these instructions:
"If you still have problems, you might have to change your CLASSPATH
variable. To see if this is necessary, try "clobbering" the classpath
with the following command:
set CLASSPATH="
"clobbering" fixed the problem, "java HelloWorldApp" worked fine.
However, since I need to clobber the CLASSPATH variable I need to
change it's value, but to what, pls?
thanks,
Thufir
- 6
- Applet, use seperate classHi I am making a applet that uses a seperate class, but my IDE tells me
that when I try to use my seperate class, that it cannot resolve the
symbol (ie cant find it) ,or if I try to import the class, that it
expects a '.'. Here's the code
import java.awt.*;
public class Buiding
{
private int width, height, topBuffer, sideBuffer, widthOfWindow,
heightOfWindow,
heightOfThird;
public Buiding(int width, int height)
{
this.width = width; this.height = height;
topBuffer = height/20;
sideBuffer = width/20;
widthOfWindow = width/10;
heightOfWindow = height/10;
heightOfThird = height/3;
}
public void draw(int x, int y, Graphics page)
{
int origionalX = x, origionalY = y;
page.drawRect(x, y, width, height);
int randomXWidth = x - widthOfWindow;
int randomX = (int)(Math.random()*randomXWidth);
int randomYWidth = y + heightOfThird - 2*topBuffer -
heightOfWindow;
int randomY = (int)(Math.random()*randomYWidth);
randomX += x;
randomY += y;
page.fillRect(randomX,randomY,widthOfWindow,heightOfWindow);
}
}
import java.applet.Applet;
import java.awt.*;
import Building; //stops here
public class test extends Applet
{
private Building test; // or here if the above line is not there
public void init()
{
test = new Building(100,100);
}
public void paint(Graphics g)
{
test.draw(10,10,g);
}
}
Thanks for any help
- 6
- void methods and "return"hi,
void methods cannot return values, however, i noticed that i can still
use "return" without any value to exit a method like this:
public void myMethod(int arg0)
{
if (arg0 == 0) return;
...
}
question: is the above ok or will i get errors with other java versions.
i'm using jre1.4.1_02 in eclipse.
thx!
- 7
- [ANN] DBPool : JDBC Connection Pooling - v4.7.2 released
A new version of DBPool has been released (v4.7.2), and is available for
download from http://www.snaq.net/java/DBPool/
DBPool is a pure-Java library for the pooling of JDBC connections for
applications that require high performance database access.
Features include:
* Pool Manager to allow easy configuration and/or quick startup
* User-configurable pools to achieve high performance
* Caching of statements to provide maximum performance
* Multiple connection pools simultaneously
* User-definable connection validation allows increased reliability
* Connection limit allows constraining to database licence restrictions
* Improved performance through caching of statements
* It's FREE, and source code is included
DBPool has been used in many large-scale commercial applications
throughout it's lifetime and various stages of development, on both
Solaris and Windows deployment platforms.
Stan
- 8
- Java coding with Agile PLM SDK - QuestionHello,
I was wondering if any one out here is dealing with a PALM System called
Agile and has some experience with the Agile SDK. If so can you email me, I
have a question on the SDK.
Also if any one know where I might find like a forum or message board that
deals with The Agile PALM system that would be help full too.
Thanks
-Dale
- 11
- Java process title editingI need a component that takes a String and puts it into Unix process
table by calling natively setproctitle. On Windows it can do nothing, I
don't care.
Also a possibility to use variables such as number_of_threads would be cool.
Why? When running a lot of Java server stuff on a Linux box it's really
hard to tell which process is which. Especially in production
environment "kill -9":ing makes me always feel quite uncomfortable...
If there is no such thing, then I'll have to roll my own. But better to
check first, don't wan't to reinvent stuff. :) Google didn't turn out
anything. ..
- 11
- Hiring Sr. Java Tool EngineerGood afternoon my name is Jason and I am a recruiter. My client is
currently seeking 3 Sr. Java Tool Engineers immediately! We are
looking for software engineers with SDLC and BCI experience.
The position is located in the Northern California area and the
company, which I can not disclose at the moment, is a groundfloor
cutting edge software application company that recently secured top
tier Venture Capital Funding. The salary range is $90k-125k and the
benefits include Medical, a great work environment and Pre-IPO Stock
Options. Company will relocate and sponsor/transfer VISAs.
If you are interested in getting more information about this position
please email me at email***@***.com and if possible please
include your resume for review. Thank you and Good Luck!
- 11
- Middle Tier for Java and PHPHi,
Let's say you have a Java SE Application and a PHP Web App that are both
accessing a database directly. You want to control things more formally
by using a common middle tier (enforcing things in addition to database
constraints / sprocs).
Any experience on what works and/or recommendations?
Thanks,
John
- 11
- Bug#398510: No longer active on this task.retitle 398510 RFP: openjdk-hotspot-jvm -- Hotspot JVM from Sun
retitle 398448 RFP: openjdk-compiler -- sun java compiler, javac
thanks
Hi
I'm no longer active on this task so I rename it to RFP. However
other people should be able to start from where I stopped so
I have uploaded the files to:
http://debian.opal.dhs.org/java-jdk-dev
Best regards,
// Ola
--
--- Ola Lundqvist systemkonsult --- M Sc in IT Engineering ----
/ email***@***.com Annebergsslingan 37 \
| email***@***.com 654 65 KARLSTAD |
| http://opalsys.net/ Mobile: +46 (0)70-332 1551 |
\ gpg/f.p.: 7090 A92B 18FE 7994 0C36 4FE4 18A1 B1CF 0FE5 3DD9 /
---------------------------------------------------------------
--
To UNSUBSCRIBE, email to email***@***.com
with a subject of "unsubscribe". Trouble? Contact email***@***.com
- 11
- Where's the source for midpapi.zip?OK - I give up - what has Sun done with the source to "midpapi.zip"?
I'm usting the WTK, 2.0.
Thanks in advance for any assistance.
--
__________
|im |yler http://timtyler.org/ email***@***.com
- 11
- contributiscusate ho sbagliato mira
"Laura" <email***@***.com> ha scritto nel messaggio
news:cnMSg.126457$email***@***.com...
> ma un informatico con p.iva fa parte dei lavoratori autonomi a cui
> verranno aumentati del 2%
> o dei lavoratori atipici a cui saranno aumentati del 5%?
>
- 14
- 14
- Help for Windows CEHi
I'm a student and I need to develope an application in java for
Windows CE.
Now I've installed on my pc Eclipse and a sun virtual machine for
windows XP.
My question is: What I can do in order to use my eclipse for develope
an application for my pocket pc with windows CE?
How I can do for make graphical applicationin windows CE? Under
Windows I use the VE plugin but under winCE what I can do for this
problem?
thank very much for all people who help me!
Fabrizio Dominici
|
| Author |
Message |
Kaiser Bun

|
Posted: 2004-2-15 11:17:00 |
Top |
java-programmer, eclipse
John Bailo wrote:
> http://www.eclipse.org
>
The Eclipse IDE is very huge and bloated. You might
want to take a look at one of these alternatives:
http://jedit.org
Supports several development languages and a huge
assortment of feature plugins. You can script out
your own shell tools as macros and make them available
as buttons on your toolbar.
http://netbeans.org
Similar to JEdit but with a GUI designer for Java apps.
Also lots of plugins and multi-language support.
The nice thing about having IDEs written in Java is
the cross-platform support; using the same environment
on any Java-enabled OS.
|
| |
|
| |
 |
Kaiser Bun

|
Posted: 2004-2-15 11:17:00 |
Top |
java-programmer >> eclipse
John Bailo wrote:
> http://www.eclipse.org
>
The Eclipse IDE is very huge and bloated. You might
want to take a look at one of these alternatives:
http://jedit.org
Supports several development languages and a huge
assortment of feature plugins. You can script out
your own shell tools as macros and make them available
as buttons on your toolbar.
http://netbeans.org
Similar to JEdit but with a GUI designer for Java apps.
Also lots of plugins and multi-language support.
The nice thing about having IDEs written in Java is
the cross-platform support; using the same environment
on any Java-enabled OS.
|
| |
|
| |
 |
Luke Tulkas

|
Posted: 2004-2-16 16:20:00 |
Top |
java-programmer >> eclipse
"Kaiser Bun" <email***@***.com> wrote in message
news:AKuLAB$email***@***.com...
> John Bailo wrote:
> > http://www.eclipse.org
> >
>
> The Eclipse IDE is very huge and bloated. You might
> want to take a look at one of these alternatives:
>
> http://jedit.org
>
> Supports several development languages and a huge
> assortment of feature plugins. You can script out
> your own shell tools as macros and make them available
> as buttons on your toolbar.
>
> http://netbeans.org
NetBeans (basic installation only): 80M
Eclipse + cdt: 86M
And that's two IDE's in one and it's not exactly an order of magnitude
of a difference.
|
| |
|
| |
 |
Kaiser Bun

|
Posted: 2004-2-16 22:50:00 |
Top |
java-programmer >> eclipse
Luke Tulkas wrote:
> "Kaiser Bun" <email***@***.com> wrote in message
> news:AKuLAB$email***@***.com...
>> John Bailo wrote:
>>> http://www.eclipse.org
>>>
>>
>> The Eclipse IDE is very huge and bloated. You might
>> want to take a look at one of these alternatives:
>>
>> http://jedit.org
>>
>> Supports several development languages and a huge
>> assortment of feature plugins. You can script out
>> your own shell tools as macros and make them available
>> as buttons on your toolbar.
>>
>> http://netbeans.org
>
> NetBeans (basic installation only): 80M
> Eclipse + cdt: 86M
>
> And that's two IDE's in one and it's not exactly an order of magnitude
> of a difference.
First, JEdit is "order of magnitude of a difference". Second, Netbeans
ships with a GUI designer whereas Eclipse does not:
http://eclipse.org/eclipse/faq/eclipse-faq.html#users_17
" 23. Does the Eclipse SDK ship with a GUI designer?
No, the Eclipse SDK does not ship with a GUI designer"
Now, download the GEF runtime and SDK for Eclipse to get a designer
and we have an additional 6 MB for a total of 92 MB. Keep downloading
tools, plugins, and watch it bloat.
I threw in Netbeans as an alternative to JEdit if you want a GUI builder
for Java projects. Otherwise, JEdit is fine for a whopping 1.4 MB download.
|
| |
|
| |
 |
Tim Tyler

|
Posted: 2004-2-16 23:04:00 |
Top |
java-programmer >> eclipse
In comp.lang.java.advocacy Kaiser Bun <email***@***.com> wrote or quoted:
> Luke Tulkas wrote:
> > "Kaiser Bun" <email***@***.com> wrote in message
> >> John Bailo wrote:
> >>> http://www.eclipse.org
> >> http://netbeans.org
> >
> > NetBeans (basic installation only): 80M
> > Eclipse + cdt: 86M
> >
> > And that's two IDE's in one and it's not exactly an order of magnitude
> > of a difference.
>
> First, JEdit is "order of magnitude of a difference". Second, Netbeans
> ships with a GUI designer whereas Eclipse does not:
>
> http://eclipse.org/eclipse/faq/eclipse-faq.html#users_17
>
> " 23. Does the Eclipse SDK ship with a GUI designer?
> No, the Eclipse SDK does not ship with a GUI designer"
Heh - give me Eclipse's compiler anyday, though ;-)
--
__________
|im |yler http://timtyler.org/ email***@***.com Remove lock to reply.
|
| |
|
| |
 |
Silvio Bierman

|
Posted: 2004-2-17 18:33:00 |
Top |
java-programmer >> eclipse
"Tim Tyler" <email***@***.com> wrote in message news:email***@***.com...
> In comp.lang.java.advocacy Kaiser Bun <email***@***.com> wrote or
quoted:
> > Luke Tulkas wrote:
> > > "Kaiser Bun" <email***@***.com> wrote in message
> > >> John Bailo wrote:
>
> > >>> http://www.eclipse.org
> > >> http://netbeans.org
> > >
> > > NetBeans (basic installation only): 80M
> > > Eclipse + cdt: 86M
> > >
> > > And that's two IDE's in one and it's not exactly an order of magnitude
> > > of a difference.
> >
> > First, JEdit is "order of magnitude of a difference". Second, Netbeans
> > ships with a GUI designer whereas Eclipse does not:
> >
> > http://eclipse.org/eclipse/faq/eclipse-faq.html#users_17
> >
> > " 23. Does the Eclipse SDK ship with a GUI designer?
> > No, the Eclipse SDK does not ship with a GUI designer"
>
> Heh - give me Eclipse's compiler anyday, though ;-)
> --
> __________
> |im |yler http://timtyler.org/ email***@***.com Remove lock to reply.
Actually, I like Eclipse and use it for most of my Java projects. However,
the compiler is the part I like the least. I prefer any IDe to use a
standard JDKs compiler. Eclipse compiler classes can not even be serialized
and subsequently be deserialized in the same class compiled with javac!
There is no advantage to having a different compiler, JBuilder's compiler
has always been a source of problems and outright bugs for me also.
Apart from that I want to switch to a new JDK as soon as it is available and
Eclipse gave me no way to evaluate the 1.5 alpha (which is now in beta
already). If the embedded compiler is only there for compilation speed than
I would like to have the option to use a standard javac because that is
speedy enough for me.
Besides, the Eclipse compiler gives nonsense-warnings on perfectly correct
code...
Silvio Bierman
|
| |
|
| |
 |
John Bailo

|
Posted: 2004-2-18 2:28:00 |
Top |
java-programmer >> eclipse
On Sun, 15 Feb 2004 03:15:36 +0000, Kaiser Bun wrote:
>
> The Eclipse IDE is very huge and bloated. You might
> want to take a look at one of these alternatives:
>
> http://jedit.org
I like jedit because it's lite.
However, the compile feature puzzles me.
After getting the tools.jar in the right place ( by moving it to the jedit
plugins directory ) and installing the java compiler plugin, I loaded one
of my java classes and went to:
Plugin
Jcompile
Compile File
That launches a console type window and it runs its own compile command.
But it just sits there with the circle indicating something is running
continually spinning.
This class takes about 10-15s to compile.
Ps- It also requires access to a set of API classes that are on my K
driver ( I put them in my classpath and they can be read when I javac from
the command line ).
--
W '04 <:> Open Source
|
| |
|
| |
 |
John Bailo

|
Posted: 2004-2-18 2:36:00 |
Top |
java-programmer >> eclipse
On Sun, 15 Feb 2004 03:15:36 +0000, Kaiser Bun wrote:
> The Eclipse IDE is very huge and bloated. You might
> want to take a look at one of these alternatives:
>
> http://jedit.org
another jedit question.
I set my mouse to left handed, but in the editor window, Jedit reverses my
mouse buttons for a right-hander ( so the button closest to the keyboard
shows the popup menu...) Can the mouse be configured for a lefty in Jedit ?
--
W '04 <:> Open Source
|
| |
|
| |
 |
Jim Sculley

|
Posted: 2004-2-18 4:02:00 |
Top |
java-programmer >> eclipse
Silvio Bierman wrote:
> "Tim Tyler" <email***@***.com> wrote in message news:email***@***.com...
>
>>In comp.lang.java.advocacy Kaiser Bun <email***@***.com> wrote or
>
> quoted:
>
>>>Luke Tulkas wrote:
>>>
>>>>"Kaiser Bun" <email***@***.com> wrote in message
>>>>
>>>>>John Bailo wrote:
>>
>>>>>>http://www.eclipse.org
>>>>>
>>>>>http://netbeans.org
>>>>
>>>>NetBeans (basic installation only): 80M
>>>>Eclipse + cdt: 86M
>>>>
>>>>And that's two IDE's in one and it's not exactly an order of magnitude
>>>>of a difference.
>>>
>>>First, JEdit is "order of magnitude of a difference". Second, Netbeans
>>>ships with a GUI designer whereas Eclipse does not:
>>>
>>>http://eclipse.org/eclipse/faq/eclipse-faq.html#users_17
>>>
>>>" 23. Does the Eclipse SDK ship with a GUI designer?
>>> No, the Eclipse SDK does not ship with a GUI designer"
>>
>>Heh - give me Eclipse's compiler anyday, though ;-)
>>--
>>__________
>> |im |yler http://timtyler.org/ email***@***.com Remove lock to reply.
>
>
> Actually, I like Eclipse and use it for most of my Java projects. However,
> the compiler is the part I like the least. I prefer any IDe to use a
> standard JDKs compiler. Eclipse compiler classes can not even be serialized
> and subsequently be deserialized in the same class compiled with javac!
Sure they can. Just define a serialversionUID for the class.
> There is no advantage to having a different compiler, JBuilder's compiler
> has always been a source of problems and outright bugs for me also.
IBM has a history of making compiler's that are *more* compliant than
the Sun compiler. Several recent changes in the Sun compiler have
brought it into aligment with the specification, several years after IBM
already had it correct.
> Apart from that I want to switch to a new JDK as soon as it is available and
> Eclipse gave me no way to evaluate the 1.5 alpha (which is now in beta
> already).
There is a way to do this with Eclipse. Search the mailing lists.
Someone posted a how-to.
> If the embedded compiler is only there for compilation speed than
> I would like to have the option to use a standard javac because that is
> speedy enough for me.
> Besides, the Eclipse compiler gives nonsense-warnings on perfectly correct
> code...
Such as?
Jim S.
|
| |
|
| |
 |
Tim Tyler

|
Posted: 2004-2-18 6:17:00 |
Top |
java-programmer >> eclipse
In comp.lang.java.advocacy Silvio Bierman <email***@***.com> wrote or quoted:
> "Tim Tyler" <email***@***.com> wrote in message news:email***@***.com...
> > Heh - give me Eclipse's compiler anyday, though ;-)
[...]
> Actually, I like Eclipse and use it for most of my Java projects. However,
> the compiler is the part I like the least. I prefer any IDe to use a
> standard JDKs compiler. Eclipse compiler classes can not even be serialized
> and subsequently be deserialized in the same class compiled with javac!
> There is no advantage to having a different compiler, JBuilder's compiler
> has always been a source of problems and outright bugs for me also.
> Apart from that I want to switch to a new JDK as soon as it is available and
> Eclipse gave me no way to evaluate the 1.5 alpha (which is now in beta
> already). If the embedded compiler is only there for compilation speed than
> I would like to have the option to use a standard javac because that is
> speedy enough for me.
Compilation speed isn't the only reason - though for me it is a big deal.
You can use any complier you like with Eclipse - if you don't want all its
snazzy compilation features. Add it as an external tool.
I've done it - but I don't think many would seriously want to switch out
IBM's compiler and switch in Sun's.
--
__________
|im |yler http://timtyler.org/ email***@***.com Remove lock to reply.
|
| |
|
| |
 |
Kaiser Bun

|
Posted: 2004-2-18 11:05:00 |
Top |
java-programmer >> eclipse
John Bailo wrote:
> On Sun, 15 Feb 2004 03:15:36 +0000, Kaiser Bun wrote:
>
>
>>
>> The Eclipse IDE is very huge and bloated. You might
>> want to take a look at one of these alternatives:
>>
>> http://jedit.org
>
> I like jedit because it's lite.
>
> However, the compile feature puzzles me.
>
> After getting the tools.jar in the right place ( by moving it to the
> jedit plugins directory ) and installing the java compiler plugin, I
> loaded one of my java classes and went to:
>
> Plugin
> Jcompile
> Compile File
>
> That launches a console type window and it runs its own compile
> command. But it just sits there with the circle indicating something
> is running continually spinning.
>
> This class takes about 10-15s to compile.
>
> Ps- It also requires access to a set of API classes that are on my K
> driver ( I put them in my classpath and they can be read when I javac
> from the command line ).
I'm currently using it for my C/C++ projects. What I did was
create a macro that launches a shell command to make my
project from the project's root directory, using a different make
utility (an alternative to the default "make"), then added a
button on my toolbar to launch the macro. Take a look at
the help to get an idea of how macros and scripts work. If
you're having trouble with it and are interested in the macro
feature, I can post more info for you.
|
| |
|
| |
 |
Kaiser Bun

|
Posted: 2004-2-18 11:07:00 |
Top |
java-programmer >> eclipse
John Bailo wrote:
> On Sun, 15 Feb 2004 03:15:36 +0000, Kaiser Bun wrote:
>
>
>> The Eclipse IDE is very huge and bloated. You might
>> want to take a look at one of these alternatives:
>>
>> http://jedit.org
>
> another jedit question.
>
> I set my mouse to left handed, but in the editor window, Jedit
> reverses my mouse buttons for a right-hander ( so the button closest
> to the keyboard shows the popup menu...) Can the mouse be configured
> for a lefty in Jedit ?
I'll take a look and let you know if I come across anything.
|
| |
|
| |
 |
Travis 'Bailo' Bickel

|
Posted: 2004-2-18 11:43:00 |
Top |
java-programmer >> eclipse
Kaiser Bun wrote:
> John Bailo wrote:
>> On Sun, 15 Feb 2004 03:15:36 +0000, Kaiser Bun wrote:
>>
>>
>>> The Eclipse IDE is very huge and bloated. You might
>>> want to take a look at one of these alternatives:
>>>
>>> http://jedit.org
>>
>> another jedit question.
>>
>> I set my mouse to left handed, but in the editor window, Jedit
>> reverses my mouse buttons for a right-hander ( so the button closest
>> to the keyboard shows the popup menu...) Can the mouse be configured
>> for a lefty in Jedit ?
>
> I'll take a look and let you know if I come across anything.
Thanks.
But -- /Eclipse/ --- I'm .... *suspicious*
Take a nice simple java class -- editable with EditPro, compilable with
javac/ -- then in Eclipse -- a bunch of *problems*
Smacks of Micro-Sabotage !!!
--
Kent Crazy B.V.
|
| |
|
| |
 |
Luke Tulkas

|
Posted: 2004-2-18 17:42:00 |
Top |
java-programmer >> eclipse
"Kaiser Bun" <email***@***.com> wrote in message
news:hLNMAB$email***@***.com...
> Luke Tulkas wrote:
> > "Kaiser Bun" <email***@***.com> wrote in message
> > news:AKuLAB$email***@***.com...
> >> John Bailo wrote:
> >>> http://www.eclipse.org
> >>>
> >>
> >> The Eclipse IDE is very huge and bloated. You might
> >> want to take a look at one of these alternatives:
> >>
> >> http://jedit.org
> >>
> >> Supports several development languages and a huge
> >> assortment of feature plugins. You can script out
> >> your own shell tools as macros and make them available
> >> as buttons on your toolbar.
> >>
> >> http://netbeans.org
> >
> > NetBeans (basic installation only): 80M
> > Eclipse + cdt: 86M
> >
> > And that's two IDE's in one and it's not exactly an order of
magnitude
> > of a difference.
>
> First, JEdit is "order of magnitude of a difference".
I know. I have it installed. But merely as a text editor. If I wanted to
use it as a Java IDE, I'd have to DL quite a lot of plugins. As things
stand now, all I have is syntax highlighting. Can you tell me how much
plugins (in megs) would I have to DL in order to have
1. integrated use of compilers (including rmic) and debugger
2. code completion, member insight, parameter insight, class insight,
automatic interface implementation, method overriding etc.
3. various outlines & hierarchical views
4. integrated javadoc
5. integrated (web)application server and EJB
6. integrated jar, war, etc. builders
7. integrated version control system(s)
8. refactoring tools
9. maybe even a GUI builder
I think that those 10 megs would become a lot more.
> Second, Netbeans
> ships with a GUI designer whereas Eclipse does not:
>
> http://eclipse.org/eclipse/faq/eclipse-faq.html#users_17
>
> " 23. Does the Eclipse SDK ship with a GUI designer?
> No, the Eclipse SDK does not ship with a GUI designer"
>
> Now, download the GEF runtime and SDK for Eclipse to get a designer
> and we have an additional 6 MB for a total of 92 MB. Keep downloading
> tools, plugins, and watch it bloat.
If only 6 additional megs are required then I choose Eclipse over
NetBeans anytime.
> I threw in Netbeans as an alternative to JEdit if you want a GUI
builder
> for Java projects. Otherwise, JEdit is fine for a whopping 1.4 MB
download.
It's fine, of course. For what it's meant to be. That whopping 1.4MB
becomes approx 10 megs when installed.
|
| |
|
| |
 |
James D Carroll

|
Posted: 2004-2-28 12:48:00 |
Top |
java-programmer >> eclipse
Frankly, as a VB and Java programmer I can't think anything worse than a GUI
builder. For years I had to listen to folks deride VB as a "scripting
language" not worthy of serious consideration because a person could open it
up and within a fairly small time frame develop a decent looking application
that did useful things. Us VB'ers were cads for our lack of understanding
of OOP and the apps we created. Granted, many (99.99%) of the VB'ers never
grasped OOP, even when the language allowed for it (VB6 supports classes,
polymorphism, and interface (not implementation) inheritance).
GUI buiders, in VB or Java, are evil because they foster the "show me a
button that does something" mentality that might please your manager, but
ultiumately kills the app of any import. Sure its nice to give users an easy
to interface, but when the GUI become the driving force for an app it is
doomed.
Bottomline: the GUI should be the result of the underlying system, not the
other way around.
"Kaiser Bun" <email***@***.com> wrote in message
news:hLNMAB$email***@***.com...
> I threw in Netbeans as an alternative to JEdit if you want a GUI builder
> for Java projects. Otherwise, JEdit is fine for a whopping 1.4 MB
download.
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.593 / Virus Database: 376 - Release Date: 2/20/2004
|
| |
|
| |
 |
sangi_be

|
Posted: 2004-4-2 7:41:00 |
Top |
java-programmer >> eclipse
i would like to know how to run swing programs in eclipse development
environment and also how to debug a java program step by step in
eclipse development environment
|
| |
|
| |
 |
Xavier Tarrago

|
Posted: 2004-4-2 15:54:00 |
Top |
java-programmer >> eclipse
You run swing programs like any other java program. But there is not wysiwyg
GUI design. May-be some plugins, but I did not use them.
To debug, edit source code, put breakpoints (click in the left margin), then
select the file where the main is and use menu run>debug as>java
application.
"sindhu" <email***@***.com> a 閏rit dans le message de
news:email***@***.com...
> i would like to know how to run swing programs in eclipse development
> environment and also how to debug a java program step by step in
> eclipse development environment
|
| |
|
| |
 |
Alex Hunsley

|
Posted: 2004-4-2 17:05:00 |
Top |
java-programmer >> eclipse
sindhu wrote:
> i would like to know how to run swing programs in eclipse development
> environment and also how to debug a java program step by step in
> eclipse development environment
That's what the documentation is for.
There's also help available in the application.
|
| |
|
| |
 |
A.M

|
Posted: 2004-8-31 11:18:00 |
Top |
java-programmer >> eclipse
Hi,
Is Eclipse the most powerful IDE for Java? Do we have any better free IDE
for Java?
Thanks,
Alan
|
| |
|
| |
 |
jonathan

|
Posted: 2004-9-1 1:22:00 |
Top |
java-programmer >> eclipse
"A.M" <email***@***.com> wrote in message news:<u5SYc.121144$email***@***.com>...
> Hi,
>
> Is Eclipse the most powerful IDE for Java? Do we have any better free IDE
> for Java?
Not that I know of. Everyone has their favorite IDE, but I haven't
found anything that I have found to be satisfactory...
That's why I'm starting a new project called JDelphi. You can check it
out at jdelphi.dev.java.net, but there's nothing to download yet.
BTW, if you're interested in this project, and if you share the vision
behind it, your help would be very much appreciated in the development
effort.
Jonathan Neve.
|
| |
|
| |
 |
javalpha

|
Posted: 2004-9-1 12:33:00 |
Top |
java-programmer >> eclipse
"A.M" <email***@***.com> wrote in message news:<u5SYc.121144$email***@***.com>...
> Hi,
>
> Is Eclipse the most powerful IDE for Java? Do we have any better free IDE
> for Java?
>
> Thanks,
> Alan
Hi,
There are many free IDEs for Java, but which one you consider "most
powerful" is upto you. Take a look at <a href=
"http://www.artima.com/weblogs/viewpost.jsp?thread=67523">Java IDE
shootout</a> (requires free registration). Among others, it includes
Emacs and NetBeans, both of which are free. It does not include text
editors such as <a href="http://jedit.org/">JEdit</a>, a GPL'd text
editor for Java, or Vim.
Javalpha.
|
| |
|
| |
 |
| |
 |
Index ‹ java-programmer |
- Next
- 1
- Mystery of the Shrinking JScrollPaneI've got a slight mystery that I can't fathom, and was wondering if someone
could help me understand what I've done wrong.
I'm trying to create a simple interface within a defined width and height.
It consists of a top half, and a bottom half.
The top half is a sideways-scrolling panel containing a bunch of smaller
panels side-by-side, in a GridLayout. This can expand to fit the width of
the overall UI, but must never take more height than it actually needs to
show the smaller panels in full.
The bottom half is simply a panel, which should absorb all extra height and
width.
If I add sufficient images to NOT exceed the width of the overall UI,
everything works as expected; the JScrollPane expands to fit the images'
height into its viewport, and the filler panel below takes up the slack.
But if I add another small panel, enough to exceed the width of the overall
UI, it goes wrong; the JScrollPane shrinks to practically nothing. I have
set the preferred height of the small panels and of the panel they sit in
(which is inside the scroll pane), so it's not as if it shouldn't be able to
figure out how tall it should be; after all, it figured it out when they
didn't exceed the width.
I just can't understand why it should suddenly shrink.
Here's an applet that will demonstrate the problem:
First, the HTML file to run it:
<HTML>
<HEAD>
<TITLE>TestShrinkingScrollPane</TITLE>
</HEAD>
<BODY>
<APPLET code="JTestShrinkingScrollPaneApplet.class" width="840"
height="640"></APPLET>
</BODY>
</HTML>
Now the single java source file to compile (compiling using 1.4.1_03),
JTestShrinkingScrollPaneApplet.java :
import javax.swing.JApplet;
import javax.swing.JPanel;
import javax.swing.JScrollPane;
import java.awt.Color;
import java.awt.Dimension;
import java.awt.GridBagConstraints;
import java.awt.GridBagLayout;
import java.awt.GridLayout;
import java.awt.Insets;
/**
*
*/
/**
* @author Jason
*
*/
public class JTestShrinkingScrollPaneApplet extends JApplet
{
/**
*
*/
private static final long serialVersionUID = 1L;
public void init()
{
final int NUM_SMALL_PANELS = 5 ;
// Add a panel with GridBagLayout to the content pane as our root
component.
JPanel backPanel = new JPanel();
backPanel.setBackground(Color.RED);
backPanel.setLayout(new GridBagLayout() );
getContentPane().add(backPanel);
// Create our panel that will scroll sideways, and its contents.
JPanel scrollablePanel = new JPanel();
scrollablePanel.setBackground(Color.BLUE);
scrollablePanel.setLayout(new GridLayout(1, NUM_SMALL_PANELS, 0, 0) );
// No gaps between cells. Unlike FlowLayout(), this forces it on to one
row.
for (int panelIndex = 0 ; panelIndex < NUM_SMALL_PANELS ; panelIndex++)
{
JPanel smallPanel = new JPanel();
smallPanel.setBackground(Color.YELLOW);
smallPanel.setPreferredSize(new Dimension(160, 110) );
scrollablePanel.add(smallPanel);
}
// With no gaps between cells, the overall size needed is obvious:
scrollablePanel.setPreferredSize(new Dimension(160 * NUM_SMALL_PANELS,
110) );
// Create the bottom panel, that will absorb the extra height available.
JPanel fillerPanel = new JPanel();
fillerPanel.setBackground(Color.GREEN);
// Now create the grid bag.
GridBagConstraints constraints = new GridBagConstraints();
constraints.anchor = GridBagConstraints.CENTER ;
constraints.gridheight = 1 ;
constraints.gridwidth = 1 ;
constraints.gridx = 0 ;
constraints.insets = new Insets(0, 0, 0, 0);
constraints.ipadx = 0 ;
constraints.ipady = 0 ;
constraints.weightx = 1.0 ;
// The wide, scrollable panel - it can absorb the width, but must not
// absorb any more height THAN IT NEEDS!
constraints.fill = GridBagConstraints.HORIZONTAL ;
constraints.gridy = 0 ;
constraints.weighty = 0.0 ;
backPanel.add(new JScrollPane(scrollablePanel), constraints);
// The other panel - it can absorb the width AND the height.
constraints.fill = GridBagConstraints.BOTH ;
constraints.gridy = 1 ;
constraints.weighty = 1.0 ;
backPanel.add(fillerPanel, constraints);
}
}
If you compile and display it as it stands, you can see the JScrollPane is
quite rightly displaying the yellow small panels in full height.
If you now change NUM_SMALL_PANELS to 6, which goes beyond the width, and
then re-display it, you'll see the scroll pane collapses.
Any ideas as to why this happens? I've tried setting the viewport preferred
size but it doesn't make any difference. The best I can do is manually set
the scroll pane's size to the needed height + a scroll bar's preferred
height but that is neither elegant nor perfect - I want to know why it goes
wrong!
Any help on the why would be appreciated.
- 2
- 3
- Torque and WebsphereWe are implenting a J2EE project where WebSphere is handling
connection pooling for the application calls to a database. We have a
JDBC Resource configured which tested successfully. We also have the
application successfully connecting to the database which is confirmed
by the following error message.
rethrown as org.apache.torque.TorqueException: [IBM][CLI Driver][DB2]
SQL0204N "TSTUSER.PERMISSION" is an undefined name.
The problem is apparent, TSTUSER does not own a table called
PERMISSION and in fact this table is owned by the user TELUSER and our
intention is for TSTUSER to execute DML against it. We have not been
able to configure the schema.xml file nor the build.properties to
instruct Torque to produce SQL that fully qualifies the object name
with the appropriate schema owner. Any advice you might offer will be
appreciated.
Best regards
- 4
- free java datetimepickerhi,
if you need a datetimepicker-control for java,
you can find one on my side:
http://www.software47.de/eng/software/datetimepicker/datetimepicker_en.htm
it's absolutely free, you can use it as you like.
since i was looking for a free datetimepicker myself, but found nothing, I
wrote one the last days...
If you find bugs or have ideas to better it up, let me know.
Java 1.4 is needed! (because of frame.setundecorated...)
kind regards wolfgang
- 5
- Need convert to postscript before printing?I want to print files which are stored in a folder. From many forum, i
found that printer can only receive postscript format, and if i want to
print pdf or microsoft office files, i need to convert it to postscript
before send to printer.
Am i right? Can anyone gives opinion how to make it simple?
- 6
- 7
- java/62837: linux-sun-jdk14 executables hang with COMPAT_LINUX in the the kernel.Synopsis: linux-sun-jdk14 executables hang with COMPAT_LINUX in the the kernel.
State-Changed-From-To: open->feedback
State-Changed-By: linimon
State-Changed-When: Fri Mar 31 08:51:09 UTC 2006
State-Changed-Why:
Submitter: is this still a problem?
Responsible-Changed-From-To: phantom->freebsd-java
Responsible-Changed-By: linimon
Responsible-Changed-When: Fri Mar 31 08:51:09 UTC 2006
Responsible-Changed-Why:
Reassign from phantom since he has been inactive for more than one year.
Hat: gnats-admin
http://www.freebsd.org/cgi/query-pr.cgi?pr=62837
- 8
- Setting Appender's fields in Apache's Log4JHi,
In the following code snippet (which is written to create a
FileAppender & make log4J log to that file):
import org.apache.log4j.*;
class sample
{
....
HTMLLayout layout = new HTMLLayout();
layout.TITLE_OPTION = "DataSE Log";
String logFileName = "Log.txt";
Appender appender = new FileAppender(layout, logFileName, true);
appender.immediateFlush = false;
appender.bufferedIO = true;
appender.bufferSize = 64;
Logger logger = Logger.getLogger();
logger.addAppender(appender);
.....
}
the above snippet is not inside any method. Its directly within the
class. In the above snippet, I am encountering 2 types of errors:
1. Am using the fields of the classes FileAppender & layout. The usage
seems to be wrong, because am getting the error "'synatx error on
token(s); misplaced construct(s)" & similar errors.
2. how to specify the bufferSize? Just as '64' or '64K'?
Thanks.
- 9
- most software jobs are software maintenance rather than new development?
>> If the code were written with copious unit tests, and if they still
>> passed no matter how old the original effort, then you don't need such
>> expertise to maintain it.
>Dubious at best. Obviously you only have read well written/refactored code
I think someone can only see the world through TDD glasses :)
-Scott Frye
"aut viam inveniam aut faciam"
- 10
- Lomboz: problems running JBoss
> The result: Now I can start JBoss within Lomboz :)
> But calling my web results in an
> "Error running javac.exe compiler"
> Adding the variable "JAVA_HOME" did not help :(
Now I found out, that it works, when I put the bin dir
of javac.exe to the Windows system PATH before running
Eclipse. I don't like that. Isn't there another way?
Marcus
- 11
- [OT]httpservletrequest parameters in netscapesookean wrote:
> Some more info...
>
> Here's some snippet for the list box:
> <select name="mylistbox" id="select2" onchange="setLang()">
>
> And here's a simplified version of my setLang()
> function setLang()
> {
> document.location.href="www.myserver.com?page=mypage&page2="+document.listbox[listbox.selectedIndex].value;
> }
Two points:
1) This question is off-topic for this (non-existent) group.
2) Does the version of Netscape you are using claim to be XHTML
compliant? Are you identifying your document as as XHTML document and
not simply an HTML document?
Ray
- 12
- Java UML tutorialsThere's a good tutorial on UML with corresponding Java code at
http://www.parlezuml.co.uk/tutorials/java/class/index.htm
So far there's only one on class diagrams, but there's quite a few
much more advanced UML tutorials aimed at C# developers that this one
seems to be a "port" of, so expect more tutorials soon.
designman
- 13
- Process managementI am looking some packages for:
- monitoring a machine (total/free memory, CPU usage, keyboard/mouse
activity)
- managing processes (start/ssupend/resume/change priority) of processes.
I need this working at least on Windows/Linux ;-)
So far I was not able to find something doing this.
Thanks for your help.
Guillaume
- 14
- 15
- Tweaking DefaultTreeCellRendererHello,
I'm implementing Drag & Drop for my JTree and I got everything working so far.
There is only one thing that I'd like to add: I would like to highlight the node
that is the current drop target somehow. I did manage to select the node
during my dragEnter() and dragOver() events, but I'd rather not change the
tree's selection during dragging.
So I thought I could customize the TreeCellRenderer used. What I did is the
following:
I extended DefaultTreeCellRenderer and added a method to set the current drop
target row. When creating my tree I set the new renderer as the tree renderer
(which is working because I can see the methods beeing called when adding a
System.out.println())
The I overwrote getTreeCellRendererComponent(). Before calling the
super.getTreeCellRendererComponent() I check if a drop target row is set, and if
it is I pretend the cell is focused:
public Component getTreeCellRendererComponent(JTree tree,
Object value,
boolean sel,
boolean expanded,
boolean leaf,
int row,
boolean hasFocus)
{
boolean drawFocus = hasFocus;
if (this.dropTargetRow != -1 && row == this.dropTargetRow)
{
drawFocus = true;
}
return super.getTreeCellRendererComponent(tree, value, sel, expanded, leaf,
row, drawFocus);
}
But this does not work. I have added debuggin code and the dropTargetRow
variable is set and initialized correctly.
What am I missing here? When I pass a hardcoded true or false to the super call,
it does work (all nodes either always focused or never)
Thanks for any input
Thomas
|
|
|