| A good text editor for JAVA? |
|
 |
Index ‹ java-programmer
|
- Previous
- 4
- 6
- Great SWT ProgramIn article <email***@***.com>,
<email***@***.com> wrote:
> On Sep 17, 5:43 am, email***@***.com <email***@***.com> wrote:
> > Just out of curiosity, have you ever used vim or gvim? what do
> > you normally use for editing text -- or does it depend on the use
> > of the text (e.g., an IDE if it's source code, a word processor
> > if it's a formatted document)?
>
> It depends on the circumstances, but it's always something sane.
So, do you mean to imply by this that you've never used vim or gvim?
Just asking.
> That
> means a) its interface was designed and developed sometime after the
> invention of the mouse;
Presumably true of gvim, since it allows a lot of operations to be
done using a mouse.
> b) said interface is NOT just bolted on over
> something archaic (no doubt with half the wingnuts loose and the other
> half missing);
It seems to me that the actual operations involved in editing
text files haven't changed that much -- find, insert, delete,
etc. -- so a program that was able to perform them with a primitive
interface should be equally capable of performing them with a more
sophisticated interface, and the fact that the underlying code has
been in use for many years might improve the odds that any bugs
have been found and fixed.
I repeat -- have you ever used any of these tools you're slamming?
> c) the authors have indeed heard of and applied CUA so
> someone who knows how to use normal software can immediately be
> productive using theirs, and only learn the different/additional
> features vs. other similar applications; and
So apparently you've changed your mind about "CUA" being a
cryptic term?
( http://groups.google.com/group/comp.emacs/msg/7bbbe22873f7f9ac )
> d) there's no retro/
> nostalgic stuff going on -- it's not designed by people who pine for
> the days when 640K really was enough for anybody. :)
Well, when Mr. Gates (?) was saying that, I was probably still
mostly ignorant of the PC world; I started out on mainframes,
and it took a long time for me to regard PCs as anything but
toys. (Then again, I think one could make a case for the idea
that the way most people use them these days *is* as toys.
But I digress.)
I do pine for the days when more people believed in the Unix idea
of tools being simple programs that did simple jobs well [*] and
could be combined under the user's control to do more complex jobs.
But -- "yeah well".
[*] Rather than attempting to do everything the programmer and/or
the marketing department can think of, with mixed success.
--
B. L. Massingill
ObDisclaimer: I don't speak for my employers; they return the favor.
- 7
- Positioning dialogboxes created with JOptionPaneThe dialog boxes created using JOptionPane like showConfirmDialog,
showInputDialog gets displayed in the centre of the screen. I need to change
its position. How to do this?
These methods return int or none.
How to get access to the dialog boxes so that they
can be positioned by using appropriate method? or I need to create a custom
dialog box so that they can be positioned?
- 7
- Sound Recording - Runs out of memoryI think you may find examples from this website very helpful:
http://www.jsresources.org
Regards,
JM
"Christiaan" <email***@***.com> wrote in message
news:email***@***.com...
> Hi,
>
> Here is a simple sound recording program to record sounds via your
> mic.The problem is that you read the sound bytes into a
> ByteArrayOutputStream and if it becomes to big you get -
> java.lang.OutOfMemoryError.
>
> What can I do to overcome this , I have tried to write the incomming
> bytes to file 1st and then from the file into the audioInputStream ,
> but I couldn't get that to work - here is my code (I used jdk1.3 and
> jdk1.4):
>
>
>
> If you copy the code into a IDE the place where the exception are
> thrown are on line 236.
>
> /*
> Christiaan Pansegrouw
> 22/05/2003
> Simple Sound Recording app
> Contains a start & stop buttom & saves to a wave file -
> "userHomeDir"\SimpleMicRecording\SimpleSound.wav
>
> */
>
> import javax.swing.*;
> import java.awt.*;
> import java.awt.event.*;
> import javax.sound.sampled.*;
> import java.io.*;
>
>
>
>
> public class LaunchSimpleSound
> {
> public static void main(String [] args)
> {
> SimpleSound ss = new SimpleSound();
> }
> }
>
>
> class SimpleSound extends JFrame implements ActionListener
> {
>
> private String userHomeDir = System.getProperty("user.home");
> private String fileSeperator =
> System.getProperty("file.separator");
>
> private JPanel mainPanel;
> private JButton cmdStartRecord;
> private JButton cmdStopRecord;
> AudioInputStream audioInputStream;
> double duration;
> Capture capture = new Capture();
>
> public SimpleSound()
> {
> makeGUI();
>
> }
>
>
> public void makeGUI()
> {
> mainPanel = new JPanel();
> cmdStartRecord = new JButton("Start");
> cmdStopRecord = new JButton("Stop");
> cmdStopRecord.setEnabled(false);
>
>
> cmdStartRecord.addActionListener(this);
> cmdStopRecord.addActionListener(this);
>
>
> mainPanel.add(cmdStartRecord);
> mainPanel.add(cmdStopRecord);
>
> Container c = this.getContentPane();
>
> c.add(mainPanel , BorderLayout.CENTER);
> this.pack();
> this.setDefaultCloseOperation(EXIT_ON_CLOSE);
> this.setVisible(true);
>
> }
>
>
> public void actionPerformed(ActionEvent ae)
> {
> Object source = ae.getSource();
>
> if (source == cmdStartRecord)
> {
> cmdStartRecord.setEnabled(false);
> cmdStopRecord.setEnabled(true);
> capture.start();
>
> }
> else
> {
> cmdStartRecord.setEnabled(true);
> cmdStopRecord.setEnabled(false);
> capture.stop();
> // SaveToFile();
> }
> }
>
>
> public void SaveToFile()
> {
> if (audioInputStream == null)
> {
> System.out.println("Nothing to save ->someting bad happend !!!");
> System.out.println("cashing & burning . .. .");
> System.exit(0);
> }
> else
> {
>
> }
>
> try
> {
> audioInputStream.reset();
> }
> catch(Exception e)
> {
> System.out.println("Unable to reset audioStream in save method");
> System.out.println("Exitting . .. .");
> System.exit(0);
> }
> File x = new File(userHomeDir + fileSeperator +
> "SimpleMicRecording" + fileSeperator + "SimpleSound.wav");
> if (!(x.exists())){
> File dirs = x.getParentFile();
> dirs.mkdir();
> }
> File file = new File(userHomeDir + fileSeperator +
> "SimpleMicRecording" + fileSeperator + "SimpleSound.wav");
> try
> {
> if (AudioSystem.write(audioInputStream , AudioFileFormat.Type.WAVE
> , file) == -1)
> {
> System.out.println("Error");
> }
> }
> catch(Exception e)
> {
> System.out.println("Oh-no!!!");
> }
> }
>
> class Capture implements Runnable
> {
> private AudioFormat.Encoding encoding;
> private float rate;
> private int sampleSize;
> private int channels;
> private int frameSize;
> private boolean bigEndian;
>
>
>
> TargetDataLine line; //define a line - a line from witch audio can
> be read
> Thread thread;
>
> public void start()
> {
> thread = new Thread(this);
> thread.setName("Capture Audio");
> thread.start();
> }
>
>
> public void stop()
> {
> thread = null;
> }
>
> public void run()
> {
> duration = 0;
> audioInputStream = null;
>
> setupFormat();
>
> //define the required attributes for the line &
> //make sure a compatible line is supported
> AudioFormat format = new
> AudioFormat(AudioFormat.Encoding.PCM_SIGNED ,44100, 16,2 , 4 ,44100 ,
> true);
>
> //does not want to work !!!!????
> //AudioFormat format = new AudioFormat(encoding , rate , sampleSize
> , channels , frameSize , rate , bigEndian);
>
> DataLine.Info info = new DataLine.Info(TargetDataLine.class ,
> format);
>
> if (!AudioSystem.isLineSupported(info))
> {
> System.out.println("Line matching " + info +" not supported");
> System.out.println("Exitting the application . . .");
> System.exit(0);
> }
>
> //get & open target data line for capture
>
> try
> {
> line = (TargetDataLine) AudioSystem.getLine(info);
> line.open(format , line.getBufferSize());
> }
> catch(LineUnavailableException ex)
> {
> System.out.println("Unable to open the line");
> System.out.println("Exitting application . . .");
> System.exit(0);
> }
> catch(SecurityException ex)
> {
> System.out.println("A security exception occured");
> System.out.println("Exitting application . . .");
> System.exit(0);
> }
> catch(Exception ex)
> {
> System.out.println("Some exception occured");
> System.out.println("Exitting application . . .");
> System.exit(0);
> }
>
> ByteArrayOutputStream out = new ByteArrayOutputStream();
> int frameSizeInBytes = format.getFrameSize();
> int bufferLengthInFrames = line.getBufferSize() / 8;
> int bufferLengthInBytes = bufferLengthInFrames * frameSizeInBytes;
> byte [] data = new byte[bufferLengthInBytes];
> int numBytesRead;
>
> line.start();
>
> //while the thread is running , write whatever is comming
> //through the line(TargetDataLine) , to the ByteArrayOutputStream
> while (thread != null)
> {
> //Reads audio data from the data line's input buffer
> //if eoi then break out of the while-loop
>
> //The number of bytes to be read must represent an integral
> //number of sample frames, such that:
> // [ bytes read ] % [frame size in bytes ] == 0
> if ((numBytesRead = line.read(data , 0 , bufferLengthInBytes)) ==
> -1)
> {
> break;
> }
> //here is the problem
> out.write(data ,0 , numBytesRead);
> }
>
>
> //we reached the end of the stream . stop & close the line
> line.stop();
> line.close();
> line = null;
>
> //stop & close the output stream
> try
> {
> //Flushes this output stream and forces any buffered
> //output bytes to be written out. The general contract
> //of flush is that calling it is an indication that, if
> //any bytes previously written have been buffered by the
> //implementation of the output stream, such bytes should
> //immediately be written to their intended destination.
> out.flush();
> out.close();
> }
> catch(IOException ex)
> {
> System.out.println("IO Error occurered (flussing the
> BufferArrayOutputStream)");
> System.out.println(" . . . but carring on");
> }
>
> //load bytes in to audio input stream for saving
>
> byte audioBytes[] = out.toByteArray();
> ByteArrayInputStream bais = new ByteArrayInputStream(audioBytes);
> audioInputStream = new AudioInputStream(bais , format ,
> audioBytes.length / frameSizeInBytes);
>
> long milliseconds =
> (long)((audioInputStream.getFrameLength() * 1000) /
> format.getFrameRate());
> duration = milliseconds / 1000.0;
>
>
> try
> {
> audioInputStream.reset();
> }
> catch(Exception e)
> {
> System.out.println("Error resetting audioInputStream");
> System.out.println("Exitting application . . .. ");
> System.exit(0);
> }
>
> if (audioInputStream == null)
> {
> System.out.println("?????????");
> }
> SaveToFile();
>
> }
>
> private void setupFormat()
> {
> AudioFormat.Encoding encoding = AudioFormat.Encoding.PCM_SIGNED;
> rate = (float)44100;
> sampleSize = 16;
> channels = 2;
> frameSize = (sampleSize/8)*channels;
> bigEndian = true;
> }
> }
> }
- 8
- Where to find web game programmer?Where is the best place for me to find a java programmer to write a
few games for a website? These would be mostly casino style games
that would interact with our existing database to take advantage of
the points/tokens our users already have obtained.
Please email me if interested, or, send me to the best place to find
such a person or group of people..
c b r o m l e y @ g m a i l . c o m
- 10
- mail parser ?Hi
I am programming a smtp proxy and i would like to parse the email (in
rfc 822 format). Does a library already exist ?
many thanks
- 12
- buggy regexpHello all!
The following line hangs in Java:
Pattern.matches("((<BR>)|([^<>]+))*", "aaaaaaaaaaaaaaaaaaaaaaaa
<BR><Bx>")
What's wrong with the regular expression?
Thanks in advance
Ilya
- 14
- 15
- Calling Stored procedure within the Orcale Server or outside clientHi all,
I have liitle confusion about the stored procedures. I am doing the
Database purging using stored procedures in Oracle 9g. can you tell is
it better to call stored procedures from outside client which i will
take care of the flow in which stored procedues are called or call it
from JAVA STORED PROCEDURS loaded in the database, which will take
care of flow in which stored procs will get executed which inturn is
set by UNIX CRON
- 16
- MyEclipse - XDoclet problem Hi
I'm trying to create a simple EJB by the help of myeclipse
1. i've created EJB class
2. selected myeclipse - XDoclet standart EJB
and after running myeclipse - XDoclet only 'home' interface has been
generated
could anybody explain why 'object' interface hasn't been generated
I use
Eclipce Version: 3.0.0 Build id: 200310101454
MyEclipse Version: 3.6.4
code:
----------------------------------------------------------------------------
package hello;import java.rmi.RemoteException;import
javax.ejb.CreateException;import javax.ejb.EJBException;import
javax.ejb.SessionBean;import javax.ejb.SessionContext;/** * XDoclet-based
stateless session bean. The class must be declared * public, according to
the EJB specification. * * To generate code: * * * a.. Add Standard EJB
module to XDoclet project properties * b.. Customize XDoclet configuration
* c.. Run XDoclet * * * Please see the included XDoclet Overview * and
the XDoclet Reference in the help system for details * * @ejb.bean name =
"HelloWorld" * type = "Stateless" * display-name =
"HelloWorld" * description = "HelloWorld EJB" *
view-type = "remote" * jndi-name = "ejb/HelloWorldHome" */public
class HelloWorld implements SessionBean { /** The SessionContext */ private
SessionContext context; /** * An ejbCreate method as required by the EJB
specification. * * The container calls the instance's ejbCreate method
whose * signature matches the signature of the create method invoked *
by the client. The input parameters sent from the client are passed to *
the ejbCreate method. Each session bean class must have at * least one
ejbCreate method. The number and signatures * of a session bean's create
methods are specific to each * session bean class. * * @throws
CreateException Thrown if the instance could not perform * the function
requested by the container because of an system-level error. * *
@ejb.create-method */ public void ejbCreate() throws CreateException { }
/** * The ejbActivate() method as required by the EJB specification. * *
The activate method is called when the instance is activated from its *
passive" state. The instance should acquire any resource that it has *
released earlier in the ejbPassivate() method. * * This method is called
with no transaction context. * * @throws EJBException Thrown if the
instance could not perform * the function requested by the container
because of an system-level error. */ public void ejbActivate() throws
EJBException { } /** * The ejbPassivate() method as required by the EJB
specification. * * The activate method is called when the instance is
activated from * its "passive" state. The instance should acquire any
resource that * it has released earlier in the ejbActivate() method. *
* This method is called with no transaction context. * * @throws
EJBException Thrown if the instance could not perform * the function
requested by the container because of an system-level error. */ public void
ejbPassivate() throws EJBException { } /** * The ejbRemove() method as
required by the EJB specification. * * A container invokes this method
before it ends the life of the * session object. This happens as a result
of a client's invoking * a remove operation, or when a container decides
to terminate the * session object after a timeout. * * This method
is called with no transaction context. * * @throws EJBException Thrown
if the instance could not perform * the function requested by the
container because of an system-level error. */ public void ejbRemove()
throws EJBException { } /** * Set the associated session context. The
container calls this method * after the instance creation. * * The
enterprise bean instance should store the reference to the context *
object in an instance variable. * * This method is called with no
transaction context. * * @throws EJBException Thrown if the instance
could not perform * the function requested by the container because of an
system-level error. */ public void setSessionContext(SessionContext
newContext) throws EJBException { context = newContext; } /** * An
example business method * * @ejb.interface-method view-type = "remote" *
* @throws EJBException Thrown if the instance could not perform * the
function requested by the container because of an system-level error. */
public void m1() throws EJBException { // rename and start putting your
business logic here } /** * An example business method * *
@ejb.interface-method view-type = "remote" * * @throws EJBException
Thrown if the instance could not perform * the function requested by the
container because of an system-level error. */ public void m2() throws
EJBException { // rename and start putting your business logic here }}
----------------------------------------------------------------------------
Thanks a lot !
- 16
- SOLVED: How to read MANIFEST.MF from pluginHi,
here is a way to access "your" manifest, i.e. the manifest of the jar
your class is loaded from. It only works for SunPlugin. In other cases
you may have another ClassLoader not supporting a public
findResource-method. The always public getResource unfortunatly
prefers to return resources returned by the parent's getResource if it
is not null. That's why you would get the manifest of rt.jar. Is there
any good reason to revert the principle 'local hides global' in case
of getting resources? Anyway, here it is:
import java.util.jar.Manifest;
import sun.applet.AppletClassLoader;
...
AppletClassLoader cl = (AppletClassLoader)
getClass().getClassLoader();
URL manifest_url = cl.findResource("META-INF/MANIFEST.MF");
Manifest manifest = new Manifest(manifest_url.openStream());
Yours,
Albrecht
- 16
- Text Field InputI have a JFrame where I hold visible only and employee ID number. I
can input the employee number, retrieve the employee information from a
database, and then display the information on the screen.
I then want to enter hours on the same form. I can bring the
appropriate text field visible, but can't seem to get the code to halt
execution in order to input hours and then compute payroll.
How do I bring a new field visible and then halt code for the input,
several times, on the same form, bringing only the appropriate fields
visible as necessary?
Hope that made sense.
- 16
- Applet no longer works in IE - problem fixedHi Andrew,
It seems that the source of my problem is the fact that I upgraded
from Eclipse 2.1.1. to 3.2.0. After testing with the latest working
version of my applet I found out that the compiler compliance setting
has to be 1.3 for the applet to work in IE. Default setting is 1.4.
:-|
thanks, Mark.
On Tue, 15 Nov 2005 22:35:10 +0100, Mark <email***@***.com> wrote:
>Sorry, yes I forgot. I don't like frames but how else can you prevent
>having to reload the applet every time you load another page?
>I have removed the redirection.
>This is the HTML:
>
><!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
> "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
><HTML xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
><HEAD>
><TITLE>Smorf applet 360x360</TITLE>
><META NAME="ROBOTS" CONTENT="NOINDEX, NOFOLLOW">
><META http-equiv="Content-type" content="text/html;
>charset=iso-8859-1" />
><meta http-equiv="imagetoolbar" content="no" />
><meta content="TRUE" name="MSSmartTagsPreventParsing" />
><link rel="stylesheet" type="text/css" href="styles.css" />
><script language="javascript">
> if(self.location==top.location)self.location="frames360.html";
></script>
></HEAD>
><BODY>
> <APPLET
> code="SmorfApplet.class"
> height=360 width=360
> name="smorf"
> archive="smorfob.jar, jazz3d3.jar, jazz3d3_primitives.jar"
> </APPLET>
></BODY>
></HTML>
>
>anyway I found out creating the package isn't the problem. I put all
>the classes in a single package and jar file, the problem is still
>there.
>
>Mark.
>
>On Tue, 15 Nov 2005 21:20:49 GMT, Andrew Thompson
><email***@***.com> wrote:
>
>>Mark wrote:
>>
>>> The applet I'm testing is here:
>>> http://www.smorf.nl/smorfde/frames360.html
>>
>>That's a frames based page, and when I try to get
>>the applet itself*, I get directed back to the frames
>>page.
>>
>>* I need to see the HTML source.
>>
>>Fix that and I'll help.
- 16
- making indented XMLI could swear that this used to work for me, but when I run the
following code I get:
<?xml version="1.0" encoding="UTF-8"?>
<a><b><c/></b></a>
which is not the:
<a>
<b>
<c/>
</b>
</a>
that I want and was expecting. I'm running JDK 1.4.2_03 on W2K with
the latest Xalan and Xerces.
I've tried running it like the following:
java -classpath .;xercesImpl.jar;xalan.jar;xml-apis.jar PrintTest
java -Djava.endorsed.dirs=. -classpath
.;xercesImpl.jar;xalan.jar;xml-apis.jar PrintTest
java -Xbootclasspath/p:xercesImpl.jar;xalan.jar;xml-apis.jar
-classpath .;xercesImpl.jar;xalan.jar;xml-apis.jar PrintTest
I'm at a loss here. Can somebody throw me a bone?
Cheers.
Steve Maring
steve at maring dot org
import java.io.StringReader;
import java.io.PrintWriter;
import javax.xml.parsers.DocumentBuilderFactory;
import javax.xml.parsers.DocumentBuilder;
import javax.xml.transform.TransformerFactory;
import javax.xml.transform.Transformer;
import javax.xml.transform.stream.StreamResult;
import javax.xml.transform.dom.DOMSource;
import javax.xml.transform.OutputKeys;
import org.w3c.dom.Document;
import org.xml.sax.InputSource;
public class PrintTest
{
public static void main( String[] args )
{
try
{
String xml = "<a><b><c></c></b></a>";
PrintWriter printWriter = new PrintWriter( System.out, true
);
DocumentBuilderFactory factory =
DocumentBuilderFactory.newInstance();
DocumentBuilder builder = factory.newDocumentBuilder();
Document doc = builder.parse(
new InputSource( new StringReader( xml ) ) );
TransformerFactory transFactory =
TransformerFactory.newInstance();
Transformer transformer = transFactory.newTransformer();
transformer.setOutputProperty( OutputKeys.METHOD, "xml" );
transformer.setOutputProperty( OutputKeys.INDENT, "true" );
transformer.setOutputProperty(
OutputKeys.OMIT_XML_DECLARATION, "true" );
transformer.setOutputProperty(
"{http://xml.apache.org/xslt}indent-amount", "4" );
transformer.transform(
new DOMSource( doc ), new StreamResult( printWriter ) );
}
catch ( Exception e )
{
e.printStackTrace();
}
}
}
- 16
- To class or to methodI have a class
public class CascadeAction {
...
public CascadeAction(JDesktopPane ... ) {
}
...
public void setIgnoreIconified(...) {
...
}
public void actionPerformed(ActionEvent evt) {
...
}
...
}
Instead of having a class, is the proper way to create a method :
public void cascadeFrames(JDesktopPane desktopPane, int layer, boolean
ignoreIconified) {
...
}
I don't think I should place this method in a subclass of JDesktopPane
since doing so will make it impossible for other users to use the
cascade feature if they already have their own custom JDesktopPane.
Please advice me on the proper way.
|
| Author |
Message |
efriedNoSpam

|
Posted: 2005-12-4 14:11:00 |
Top |
java-programmer, A good text editor for JAVA?
In article <email***@***.com>, email***@***.com wrote:
>In article <email***@***.com>,
>Roedy Green <email***@***.com> wrote:
>>On Thu, 1 Dec 2005 14:23:34 -0700, "Monique Y. Mudama"
>><email***@***.com> wrote, quoted or indirectly quoted someone who
>>said :
>>
>>>s/days/years
>>
>>I found EMACs drove me nearly nuts. My editing CUA reflexes were well
>>below conscious control. It was like being given a keyboard with all
>>the keys randomly rearranged. Even the mouse worked a different way.
>>Even its legendary programmability could not make up for that.
>>
>>Even if you do adjust, if you go back to another CUA editor I found
>>the reflexes don't recover. I am "uniligual" as a typist. I can't be
>>proficient on two editors for the same reason I can't rapidly type
>>both QWERTY and DSK. See http://mindprod.com/jgloss/dsk.html
>
>Sing it. I also have had trouble trying to become multilingual with
>regard to editors, though I'm a vim bigot who gets annoyed when she
>has to use .... maybe "CUA editors" is the right term. As you say,
>knowing which keys to use for common editing tasks becomes a reflex
>action, and trying to use something that uses different keys for
>the same tasks is not only irritating but also can seem to mess up
>the reflexes, which is a whole other level of irritation.
>
>However, I had an interesting exchange in comp.editors recently with
>someone who says that he uses lots of tools on lots of platforms and
>claims that *if you practice enough* you can develop the ability
>to switch back and forth seamlessly. But he claims that it takes
>a *lot* of practice. The thread is in comp.editors, subject line
>"GENERAL: Formatting text in Linux?", participants me and a Brian
>Masinick, if anyone wants to find it in the archives. (Sorry about
>not providing a URL or message IDs, but I'm not sure how to do that
>unambiguously.)
>
[snip]
It's all about how you want to use your time. I could use my time learning
lots of different tools and editors or I could find a handful of tools and use
my time to look at new apis/languages or work on open source projects, etc.
Eric
|
| |
|
| |
 |
efriedNoSpam

|
Posted: 2005-12-4 14:11:00 |
Top |
java-programmer >> A good text editor for JAVA?
In article <email***@***.com>, email***@***.com wrote:
>In article <email***@***.com>,
>Roedy Green <email***@***.com> wrote:
>>On Thu, 1 Dec 2005 14:23:34 -0700, "Monique Y. Mudama"
>><email***@***.com> wrote, quoted or indirectly quoted someone who
>>said :
>>
>>>s/days/years
>>
>>I found EMACs drove me nearly nuts. My editing CUA reflexes were well
>>below conscious control. It was like being given a keyboard with all
>>the keys randomly rearranged. Even the mouse worked a different way.
>>Even its legendary programmability could not make up for that.
>>
>>Even if you do adjust, if you go back to another CUA editor I found
>>the reflexes don't recover. I am "uniligual" as a typist. I can't be
>>proficient on two editors for the same reason I can't rapidly type
>>both QWERTY and DSK. See http://mindprod.com/jgloss/dsk.html
>
>Sing it. I also have had trouble trying to become multilingual with
>regard to editors, though I'm a vim bigot who gets annoyed when she
>has to use .... maybe "CUA editors" is the right term. As you say,
>knowing which keys to use for common editing tasks becomes a reflex
>action, and trying to use something that uses different keys for
>the same tasks is not only irritating but also can seem to mess up
>the reflexes, which is a whole other level of irritation.
>
>However, I had an interesting exchange in comp.editors recently with
>someone who says that he uses lots of tools on lots of platforms and
>claims that *if you practice enough* you can develop the ability
>to switch back and forth seamlessly. But he claims that it takes
>a *lot* of practice. The thread is in comp.editors, subject line
>"GENERAL: Formatting text in Linux?", participants me and a Brian
>Masinick, if anyone wants to find it in the archives. (Sorry about
>not providing a URL or message IDs, but I'm not sure how to do that
>unambiguously.)
>
[snip]
It's all about how you want to use your time. I could use my time learning
lots of different tools and editors or I could find a handful of tools and use
my time to look at new apis/languages or work on open source projects, etc.
Eric
|
| |
|
| |
 |
Chris Uppal

|
Posted: 2005-12-4 18:50:00 |
Top |
java-programmer >> A good text editor for JAVA?
email***@***.com wrote:
> I have a colleague who uses vi to write C programs, Eclipse to write
> Java programs, and word-processor-du-jour for prose. He says that he
> finds it fairly easy to keep them straight because he uses the different
> editors for different tasks. (Not sure why he thinks of C programming
> and Java programming as so different .... )
>
> This is, of course, somewhat at odds with what I think of as the
> "traditional Unix" approach of having everything in text files and
> using the same editor for all.
Which brings us full circle and (almost) back on topic for this thread !
Well done ;-)
-- chris
|
| |
|
| |
 |
jussij

|
Posted: 2005-12-5 7:29:00 |
Top |
java-programmer >> A good text editor for JAVA?
The Zeus for Windows IDE has support for Java:
http://www.zeusedit.com/features.html
Note: Zeus is shareware (45 day trial).
It has features like class browsing, syntax highlighting,
smart indent, code folding, project/workspace management,
integrated version control etc.
The Zeus Quick Help feature also works with the Java SDK
help file:
http://www.zeusedit.com/forum/viewtopic.php?t=10
providing a quick and easy way to access the SDK information.
Jussi Jumppanen
Author: Zeus for Windows
|
| |
|
| |
 |
Nigel Wade

|
Posted: 2005-12-5 21:58:00 |
Top |
java-programmer >> A good text editor for JAVA?
Oliver Wong wrote:
>
> "Nigel Wade" <email***@***.com> wrote in message
> news:dmpno0$ojr$email***@***.com...
>>
>> I don't think you'll ever find and IDE which provides a really good text
>> editor.
>> For example, take what is arguably the most popular Java IDE, Eclipse,
>> where
>> are the macro facilities, or the ability to do even basic editing tasks
>> like
>> convert case, or capitilize?
>
> Not that I'm an Eclipse zealot or anything, but...
>
> Presumably you were using Eclipse in it's "Java Perspective" mode, which
> was intented to edit Java source code. In such a context, features like
> "captilize all the characters in the selection" would not be so useful;
> perhaps more useful would be "Rename this class, and make sure every
> reference to this class is updated appropriately" (which Eclipse DOES do).
Comments? Javadocs?
There are times when I want to capitalize or change from lower to upper or vice
versa.
--
Nigel Wade, System Administrator, Space Plasma Physics Group,
University of Leicester, Leicester, LE1 7RH, UK
E-mail : email***@***.com
Phone : +44 (0)116 2523548, Fax : +44 (0)116 2523555
|
| |
|
| |
 |
Oliver Wong

|
Posted: 2005-12-6 0:15:00 |
Top |
java-programmer >> A good text editor for JAVA?
"Nigel Wade" <email***@***.com> wrote in message
news:dn1h0s$6pk$email***@***.com...
> Oliver Wong wrote:
>>
>> Presumably you were using Eclipse in it's "Java Perspective" mode,
>> which
>> was intented to edit Java source code. In such a context, features like
>> "captilize all the characters in the selection" would not be so useful;
>> perhaps more useful would be "Rename this class, and make sure every
>> reference to this class is updated appropriately" (which Eclipse DOES
>> do).
>
> Comments? Javadocs?
>
> There are times when I want to capitalize or change from lower to upper or
> vice
> versa.
Sorry, but this is going to be one big long run-on sentence:
Uusually when I want to change the capitalization in a comment or
JavaDoc, it is only one character that I want changed -- e.g. the first
character of a sentence which was mistakenly not capitalized (perhaps
because I had let go of the shift key too early or something) -- OR it is
that I had not yet broken my habit of capitalizing all the characters in an
abbreviation -- e.g., where KB stands for Knowledge Base and ID stands for
Identification, naming a methid getKBManagerUserID() instead of
getKbManagerUserId(), which requires an understanding of the English
language to recognize word boundaries and so probably could not be done via
a macro.
- Oliver
|
| |
|
| |
 |
Monique Y. Mudama

|
Posted: 2005-12-7 4:08:00 |
Top |
java-programmer >> A good text editor for JAVA?
On 2005-12-03, Roedy Green penned:
> On Sat, 03 Dec 2005 19:34:05 GMT, Roedy Green
><email***@***.com> wrote, quoted or
>indirectly quoted someone who said :
>
>>>I've never encountered any interference between the two (any more
>>>than I encounter interference between the two major modes of vi).
>>
>>My partner is like you.
>
> She is also bilingual in accent. When she talks to me, she uses a
> Canadian accent, and when talking to her mom, a Alabaman one,
> including the unusual southern grammar.
Odd.
I grew up speaking both English and German. I have never been able to
speak English with a German accent, or German with an American accent,
though I can definitely recognize it. I think my mind has mapped the
sounds to the languages, and I can't produce them in the "wrong"
context.
--
monique
Ask smart questions, get good answers:
http://www.catb.org/~esr/faqs/smart-questions.html
|
| |
|
| |
 |
Monique Y. Mudama

|
Posted: 2005-12-7 4:09:00 |
Top |
java-programmer >> A good text editor for JAVA?
On 2005-12-03, email***@***.com penned:
>
> I have a colleague who uses vi to write C programs, Eclipse to write
> Java programs, and word-processor-du-jour for prose. He says that
> he finds it fairly easy to keep them straight because he uses the
> different editors for different tasks. (Not sure why he thinks of C
> programming and Java programming as so different .... )
>
I sure think of them as different! Especially if you really mean C,
not C++.
--
monique
Ask smart questions, get good answers:
http://www.catb.org/~esr/faqs/smart-questions.html
|
| |
|
| |
 |
Monique Y. Mudama

|
Posted: 2005-12-7 5:03:00 |
Top |
java-programmer >> A good text editor for JAVA?
On 2005-12-02, Roedy Green penned:
>
> I got a copy of SlickEdit which worked the same on Windows and
> Linux. I have been using it ever since.
The standard editor at my last job was SlickEdit. I couldn't stand
it. It seemed to love corrupting the tags database, among other
things. But the real reason I abandoned it was that its vi emulation
mode didn't emulate well enough.
--
monique
Ask smart questions, get good answers:
http://www.catb.org/~esr/faqs/smart-questions.html
|
| |
|
| |
 |
Monique Y. Mudama

|
Posted: 2005-12-7 5:05:00 |
Top |
java-programmer >> A good text editor for JAVA?
On 2005-12-02, Oliver Wong penned:
>
> "Nigel Wade" <email***@***.com> wrote in message
> news:dmpno0$ojr$email***@***.com...
>>
>> I don't think you'll ever find and IDE which provides a really good
>> text editor. For example, take what is arguably the most popular
>> Java IDE, Eclipse, where are the macro facilities, or the ability
>> to do even basic editing tasks like convert case, or capitilize?
>
> Not that I'm an Eclipse zealot or anything, but...
>
> Presumably you were using Eclipse in it's "Java Perspective"
> mode, which was intented to edit Java source code. In such a
> context, features like "captilize all the characters in the
> selection" would not be so useful; perhaps more useful would be
> "Rename this class, and make sure every reference to this class
> is updated appropriately" (which Eclipse DOES do).
>
> You're right though that if you want to use Eclipse as a plain
> text editor, there aren't many features or macros provided.
>
> However, there's no technical reason why someone couldn't write
> a plugin that provided all those features, perhaps calling it
> "Text Editing Perspective" or "XEmacs Perspective" if the user
> interface were made particularly XEmacs-like. I'm not sure how
> painful it would be to emulate vi's behaviour (I don't know how
> much abstraction you'd have to break to directly capture
> key-events), but it's probably possible as well.
>
I'm pretty sure there *is* a vi plugin for eclipse. It's not free in
any sense, and I haven't tried it, but maybe it does what you're
describing.
I have been burned by supposedly 'vi compatible' modes so many times
that I am loathe to spend money to try it.
--
monique
Ask smart questions, get good answers:
http://www.catb.org/~esr/faqs/smart-questions.html
|
| |
|
| |
 |
Monique Y. Mudama

|
Posted: 2005-12-7 5:51:00 |
Top |
java-programmer >> A good text editor for JAVA?
On 2005-12-03, zero penned:
> "Monique Y. Mudama" <email***@***.com> wrote in
> news:email***@***.com:
>
>>
>> Yes, learning libraries is important, but I don't think remembering
>> the spelling and capitalization of every method name is. So what?
>> It's important to know that if I want to convert a String to an
>> int, I can use the Integer class. Sure. But is it really so
>> important to remember the exact method name? Why?
>>
>
> I was more trying to say that the newby wouldn't learn that
> capitalization matters in java. And I believe having code
> completion hampers learning libraries. You could just type a
> reference variable, and select a method from the list.
As opposed to opening a browser, loading the javadocs, looking up the
type, and *then* selecting a method from the list, copying and pasting
it.
I agree that the javadoc approach is slower; it's not clear to me that
it really forces any more learning.
I think my difference of opinion stems from my belief that motivated
individuals will learn; unmotivated individuals won't. It's possible
you could claim that Eclipse and other high-powered IDEs can act as a
crutch, allowing individuals to crawl along who might give up if they
were forced to use more basic tools. Of course, you could use the
same argument to support the idea that all programs should be written
in assembler, or maybe machine code.
> Last year I had to work on an old Windows NT machine, and on a Linux
> server installation. Neither was anywhere near strong enough to
> run an IDE like eclipse. It was a good thing I was used to coding
> java with nothing more than textpad and the command line compiler.
I agree that anyone who works with Java should have those skills. I
don't think that means that we should eschew more powerful tools.
--
monique
Ask smart questions, get good answers:
http://www.catb.org/~esr/faqs/smart-questions.html
|
| |
|
| |
 |
Monique Y. Mudama

|
Posted: 2005-12-7 5:53:00 |
Top |
java-programmer >> A good text editor for JAVA?
On 2005-12-02, Jeffrey Schwab penned:
>
> I went back to Vim after the first wrist surgery. I don't plan ever
> to go back. Why people are still writing new editors, rather than
> customizing existing ones, is beyond me.
One of my professors claimed that she never had problems with carpal
tunnel until she started using a mouse.
I personally find that using a mouse hurts my wrist pretty quickly; I
use trackballs whenever possible, and even then try to do most things
by keyboard, with a wrist pad.
--
monique
Ask smart questions, get good answers:
http://www.catb.org/~esr/faqs/smart-questions.html
|
| |
|
| |
 |
Chris Smith

|
Posted: 2005-12-7 6:29:00 |
Top |
java-programmer >> A good text editor for JAVA?
Monique Y. Mudama <email***@***.com> wrote:
> I agree that anyone who works with Java should have those skills. I
> don't think that means that we should eschew more powerful tools.
>
Absolutely!
The self-righteous "do it yourself" answer is too myopic in this case.
Programming isn't typing. It is about doing a lot of things at once,
and typing is among the least important of them. Even if a programmer
has to wait a couple seconds for code completion -- and obviously could
have just typed the identifier name in that time period -- the task of
writing code is going to be far more sustainable if that time can be
used for thinking, resting, relaxing the wrist, or whatever.
--
www.designacourse.com
The Easiest Way To Train Anyone... Anywhere.
Chris Smith - Lead Software Developer/Technical Trainer
MindIQ Corporation
|
| |
|
| |
 |
Monique Y. Mudama

|
Posted: 2005-12-7 7:16:00 |
Top |
java-programmer >> A good text editor for JAVA?
On 2005-12-06, Chris Smith penned:
> Monique Y. Mudama <email***@***.com> wrote:
>> I agree that anyone who works with Java should have those skills.
>> I don't think that means that we should eschew more powerful tools.
>
> Absolutely!
>
> The self-righteous "do it yourself" answer is too myopic in this
> case. Programming isn't typing. It is about doing a lot of things
> at once, and typing is among the least important of them. Even if a
> programmer has to wait a couple seconds for code completion -- and
> obviously could have just typed the identifier name in that time
> period -- the task of writing code is going to be far more
> sustainable if that time can be used for thinking, resting, relaxing
> the wrist, or whatever.
I'll admit that for many years, I avoided Eclipse. Its features were
clunky and slow. I felt the same about every other IDE I tried.
The modern Eclipse is responsive enough that it finally feels like
it's helping my productivity, not hindering it. Mostly.
--
monique
Ask smart questions, get good answers:
http://www.catb.org/~esr/faqs/smart-questions.html
|
| |
|
| |
 |
blmblm

|
Posted: 2005-12-7 18:10:00 |
Top |
java-programmer >> A good text editor for JAVA?
In article <email***@***.com>,
Roedy Green <email***@***.com> wrote:
>On Sat, 3 Dec 2005 17:09:26 -0000, "Chris Uppal"
[ snip ]
>What sort of world could accommodate non-ambidextrous people?
>
>It would allow you to configure your ENTIRE machine for how you wanted
>various low level editing behaviours to work, then EVERY program would
>comply. Similarly menus would use the same word for a function.
vi-style editing in MS Word .... Nah, don't think that's going to
happen. But it's entertaining to think about!
[ snip ]
--
| B. L. Massingill
| ObDisclaimer: I don't speak for my employers; they return the favor.
|
| |
|
| |
 |
blmblm

|
Posted: 2005-12-7 18:11:00 |
Top |
java-programmer >> A good text editor for JAVA?
In article <email***@***.com>,
Roedy Green <email***@***.com> wrote:
>On 3 Dec 2005 16:39:33 GMT, email***@***.com wrote, quoted or
>indirectly quoted someone who said :
>
>>There's someone else in .... comp.text.tex, I think .... who claims
>>to be bilingual in MS Word and emacs, and he sounds moderately clueful
>>about both. But that's two tools, not dozens.
>
>The experiment that needs to be done it to measure X's SPEED at MS
>word and Emacs than challenge him to learn a third editor. Now go back
>and measure his proficiency in MS and Emacs.
>
>The experiment you really want is this: Take 99 people. Train 33 on
>Emacs, 33 on Word and 33 on both. Then measure each person's fastest
>speed on either editor. I conjecture the pure Emacs people should be
>most productive.
>
Either of those would be an interesting experiment to perform.
I wonder whether anyone has done it! It seems like some of those
HCI folks would have done something along these lines ....
>
>I will conjecture that if two programs are sufficiently different, you
>can attain unconscious proficiency in both because conceptually the
>reflexes you develop don't overlap, analogously to playing both the
>piano and trombone. It seems to me that editors have unavoidable
>overlap at the most fundamental level -- insert, delete, replace,
>navigate.
>
--
| B. L. Massingill
| ObDisclaimer: I don't speak for my employers; they return the favor.
|
| |
|
| |
 |
iamfractal

|
Posted: 2005-12-7 19:46:00 |
Top |
java-programmer >> A good text editor for JAVA?
Roedy Green wrote:
> On 3 Dec 2005 16:39:33 GMT, email***@***.com wrote, quoted or
> indirectly quoted someone who said :
>
>
> The experiment you really want is this: Take 99 people. Train 33 on
> Emacs, 33 on Word and 33 on both. Then measure each person's fastest
> speed on either editor. I conjecture the pure Emacs people should be
> most productive.
>
More wild off-topicking, but this thread does seem to foster it ...
Just how much do we think the (I)DE or typing-speed affects
productivity? I know the former at least is task-dependent (if you're
given a huge amount of legacy code the needs every method and class
renamed, then Eclipsers will romp all over Notepadders), but in
general, can it affect much?
I'd guess not. I'd guess any difference attributable to a particular
(I)DE is so small that it sinks below measurable tolerances into the
noise of the (let's face it) astrologically inaccurate project planning
within which we work.
Well, I suppose there are some minimal basics. If you're given a new
(I)DE, and you never learn how to delete, then you're in for some tough
deadlines; but on the whole, I'd say productivity is far more weighted
by requirements-clarity, and programmer and tester experience.
That's probably why, "Use whatever (I)DE you're comfortable with,"
radiates such incontrovertable common sense: it gets you above the
basics; you can delete, save, compile, run.
There. DSCR. I've said it.
.ed
|
| |
|
| |
 |
Chris Uppal

|
Posted: 2005-12-7 19:53:00 |
Top |
java-programmer >> A good text editor for JAVA?
Monique Y. Mudama wrote:
> I personally find that using a mouse hurts my wrist pretty quickly; I
> use trackballs whenever possible, and even then try to do most things
> by keyboard, with a wrist pad.
Are you using (or rather, avoiding) those modern "mice" that actually look more
like pregant rats ? Big bulky things that /force/ you to rest your palm on the
beast's spine ? If so -- and if you are like me -- that might be the problem.
With the old-style (shaped like a bar of soap) mice, I can guide the thing with
my fingers; in particular, making precise movements just by flexing my fingers.
With the new kind, that is impossible, so I have to make fine movements with my
wrist/arm, and that becomes killingly painful very quickly. The "rats" are
supposed to be more ergonomic, but not for me they aren't...
-- chris
|
| |
|
| |
 |
Chris Uppal

|
Posted: 2005-12-7 22:55:00 |
Top |
java-programmer >> A good text editor for JAVA?
email***@***.com wrote:
> Just how much do we think the (I)DE or typing-speed affects
> productivity?
I'd say that a good (or bad) IDE is a lot more than just an editor, and that
it's the other things that significantly affect productivity. If your speed of
typing (with or without help from "Intellisense", etc[*]) is such that it is a
significant bottleneck then I would say that one of the following apply:
a) You are a /very/ slow typist (serious physical disability,
such as having no hands).
b) You are a /very/ fast thinking -- much, much, faster
than anyone I've ever met.
c) You are wasting your time doing writing repetitive code which
can be and should be automated (or otherwise changed to
remove the repetition).
d) You are a very bad programmer, who programs without
thinking even though thinking is required.
BTW, one place where I do think that fast typing (and good editing features)
make a real difference is that it becomes easier to document code
appropriately.
-- chris
[*] Personally, I find auto-completion and similar intrusive popups, to be a
hindrance rather than a help.
|
| |
|
| |
 |
Oliver Wong

|
Posted: 2005-12-7 23:47:00 |
Top |
java-programmer >> A good text editor for JAVA?
"Chris Uppal" <email***@***.com> wrote in message
news:4396f6bd$0$253$email***@***.com...
>
> [*] Personally, I find auto-completion and similar intrusive popups, to be
> a
> hindrance rather than a help.
Maybe in the long term, in that it's may be encouraging memory lost:
I was in the middle of some Java method, and I had type
"someMethodCall( " and then paused, because I knew I wanted to put the local
variable I had declare some moments earlier there, but I couldn't remember
the name of the variable. Well, Eclipse, being what it is, looked up the
method definitions for "someMethodCall" and then found the arguments that
all of its overloaded variants expected. It then looked at all variables
that were visible from the location in the code I was located (local
variables, publicly visible variables, fields from parents, etc.) it then
looked at the type of all these variables, and climb their inheritance tree,
cross-referencing that with the overloaded variants, and seeing which
variables could actually be legal given the type-checking rules.
It then displayed a pop up with my local variable, essentially asking me
"Is this what you're looking for?"
All of this before I had time to send the signals to the muscles that
control my eyes to scroll up and read the variable declaration a few lines
above.
So I find auto-completion helpful, but it concerns me that I can't
remember things that I looked at only a few moments ago.
- Oliver
|
| |
|
| |
 |
Monique Y. Mudama

|
Posted: 2005-12-8 1:50:00 |
Top |
java-programmer >> A good text editor for JAVA?
On 2005-12-07, Oliver Wong penned:
>
> So I find auto-completion helpful, but it concerns me that I
> can't remember things that I looked at only a few moments ago.
Oh, I dunno. There's a hard limit to how many things a given person
can keep in his/her "stack" at a time. You probably were juggling
enough other data that you just didn't have room for that piece.
--
monique
Ask smart questions, get good answers:
http://www.catb.org/~esr/faqs/smart-questions.html
|
| |
|
| |
 |
| |
 |
Index ‹ java-programmer |
- Next
- 1
- How know if a method is part of an interface?I have a class named MyClass implementing an interface named MyInterface.
I have also an instance of java.lang.reflect.Method describing a method
of MyClass (is the parameter of the invoke method in an
java.lang.reflect.InvocationHandler).
I need to know if Method is part of MyInterface or not.
Is there a way other than checking the method name and parameters type?
Thanks,
Andrea
- 2
- Formatting JTextFieldsHi all!
I had this some time ago, but I didn't have the time. What is the best
way to accomplish allowing only certain characters to be entered in a
text field?
I remember having read about something subclassing Document, the text
field model, but it seems a little complicated to me.
I need a textfield where only letters can be entered, possibly a-z and
one field, where only digits are allowed.
Can anyone tell me how to do this, probably providing some short code
snippet?
Thanks for your help!
Karsten
- 3
- Sorting a row of letters, using a blank space, with some added rulesI will have a line consisting of the letters A-E in a random order and
a blank space at the end. So that gives me positions 1-6. Now I want
them sorted to give me the order "ABCDE ", and the sorting would be to
put a letter into the empty space, and sort them that way. That would
be easy enough to code if it wasn't for some necessary rules.
It will not be possible to swap from any position to any position,
which possible moves there are, has to be hardcoded in, like for
example a small array, but since there are maximum 15 possible moves,
that should not be a problem.
For example I could have this starting line-up "BCEAD ". And you could
only move between positions 1 and 2, 1 and 4, 1 and 6, 2 and 3, 2 and
5, 3 and 4, 3 and 6, 4 and 5, 5 and 6.
So since my goal is to minimize the number of moves, in this case the
algorithm would produce the following moves, which is the shortest
solution.
"BCEAD "
"BC ADE"
"B CADE"
" BCADE"
"ABC DE"
"ABCD E"
"ABCDE "
I hope I've made my point clear enough. What I can't figure out is the
algorithm for this, which I hope some of you can help me with. I don't
expect finished Java code, properly explained pseudo code will do :)
Michael
- 4
- Fastest way to pass messages?Our app needs to have a central computer send a message to several other
computers, and then gather a response from each. This has got to happen
hundreds of times per second (not necessarily synchronously). Each
message is just an array of bytes, usually less than 100 bytes on the
way out and less than 8K on the way back.
What's the fastest, most efficient way to do it? RMI? Jini? JMS? REST?
Raw sockets?
I expect that some would say raw sockets, but my guess is that one or
more of the others might be nearly as fast and have other advantages as
well. Any advice is appreciated.
- 5
- [ports-i386@FreeBSD.org: eclipse-langpack-3.0.1_1 pkg-plist errors
--fdj2RfSjLxBAspz7
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
Dear port maintainer,
The following port has an incomplete pkg-plist, or other errors in the
files installed by the port. This may mean that the package is
incomplete or non-functional; at the very least, your port does not
leave the filesystem in the same state it was before the port was
installed. Can you please investigate?
Thanks,
Kris "Ports Janitor" Kennaway
----- Forwarded message from User Ports-i386 <email***@***.com> -----
X-Original-To: email***@***.com
Delivered-To: email***@***.com
Date: Wed, 3 Aug 2005 19:30:48 GMT
From: User Ports-i386 <email***@***.com>
To: email***@***.com, email***@***.com
Subject: eclipse-langpack-3.0.1_1 pkg-plist errors on i386 4
X-Bogosity: Ham, tests=3Dbogofilter, spamicity=3D0.000000, version=3D0.94.14
building eclipse-langpack-3.0.1_1 on gohan24.freebsd.org
in directory /x/tmp/4/chroot/1755
maintained by: email***@***.com
port directory: /usr/ports/java/eclipse-langpack
For the full build log, see
http://pointyhat.freebsd.org/errorlogs/i386-errorlogs/a.4.2005072423/ecli=
pse-langpack-3.0.1_1.log
list of extra files and directories in / (not present before this port was =
installed but present after it was deinstalled)
221118 16 drwxr-xr-x 2 root wheel 512 Aug =
3 19:28 usr/local/eclipse/features/org.eclipse.jdt.source_3.0.1
221395 16 drwxr-xr-x 2 root wheel 512 Aug =
3 19:28 usr/local/eclipse/features/org.eclipse.jdt_3.0.1
221854 16 drwxr-xr-x 2 root wheel 512 Aug =
3 19:28 usr/local/eclipse/features/org.eclipse.pde_3.0.1
221866 16 drwxr-xr-x 2 root wheel 512 Aug =
3 19:28 usr/local/eclipse/features/org.eclipse.platform.source_3.0.1
264734 16 drwxr-xr-x 2 root wheel 512 Aug =
3 19:28 usr/local/eclipse/features/org.eclipse.platform_3.0.1
264759 16 drwxr-xr-x 2 root wheel 512 Aug =
3 19:28 usr/local/eclipse/features/org.eclipse.sdk_3.0.1
----- End forwarded message -----
--fdj2RfSjLxBAspz7
Content-Type: application/pgp-signature
Content-Disposition: inline
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (FreeBSD)
iD8DBQFC8+bGWry0BWjoQKURAr6hAKDplrgfe+PXevyuttOBpZg2+zQS+QCgnSat
J9ldKeYQaqiNCUlEH0qK3go=
=CngA
-----END PGP SIGNATURE-----
--fdj2RfSjLxBAspz7--
- 6
- Applet and new window connection problem.Hi All.
During recent development I encountered a following problem:
My app uses 2 windows - in one - there's an applet that displays some
data structure (loaded from xml file with JTree representation). User
can browse through the hierarchy and than can click on the desired
node. When he/she does it - applet takes some doing and produces a xml
data that should be used by servlet invoked in the second window.
Generally I'm using showDocument(url, target) method to achieve that.
Problem is that with this approach I can ony pass short strings - as
in GET request. What happens is that my xml data can be quite big and
I really need to send them to servlet and display in the
applet-adjacent frame. I was thinking of some workarounds to this but
everything seems to be either not working either to complicated and
difficult to maintain.
Should you have any thougths, I would greatly appreciate.
TK.
- 7
- Jtable header clickable?HI!
I've been trying to find information on how to make the header of a
JTable clickable. I.e I want my users to be able to click the header
and the program do something smart (possibly sorting data, or
whatever)
I only seem to find references to dead-links when I search on deja,
and amazingly google did not seem to help much. Can anyone point me
the general direction on how to do this?
regards
Daniel
- 8
- [OT]Martin Gregorie wrote:
> email***@***.com wrote:
>>
>> In the mainframe days, I'd have said most people's image of a
>> programmer was influenced by those IBM employees in suits -- nerdy,
>> but conservative. When PCs took off, that image changed some,
>> into the current "nerdy, no social skills, poor hygiene, etc."
>> I can believe that young women found the mainframe-programmer
>> image less off-putting than the mad-hacker-PC-programmer image.
>>
> IIRC the "nerdy...." image predates the PC by getting on for 10 years
> and was probably first defined by Richard Stallman and his fellow
> hackers at college.
1966 at the /latest/ at Brown -- but that's in the University world.
In the business world, in the late 60s, programmers still had offices
(perhaps two to an office), and were indistinguishable from other
management-class workers, apart from, perhaps, a greater tendency to
work in shirtsleeves, with the jacket hung up or draped over a chair.
And some of them were women -- typically 30-40, married, with children.
--
John W. Kennedy
"Only an idiot fights a war on two fronts. Only the heir to the throne
of the kingdom of idiots would fight a war on twelve fronts"
-- J. Michael Straczynski. "Babylon 5", "Ceremonies of Light and Dark"
- 9
- Sort objects in a vectorHello
I want to sort objects (implemented Comparable) in a vector. My method is to
use convertTo array function in Vector class then sort this array by using
Array.sort function. then I copy all items in this array into the old vector
(by removing all items in this vector and then uses function "add" function
in Vector class). Do you have any idea about this method..
Thanks
S.Hoa
- 10
- Microsoft Photo EditorCan anyone tell me where I can download a copy of this program for
free? I had it before and sold my old computer, the new one has
Photoshop and I do not like it nearly as well...stuck in time
- 11
- Security for beans in web applicationHi,
I have POJOs acting as API to the application. How can I implement
authorization? I tried
Subject s = Subject.getSubject(AccessController.getContext());
Set<Principal> ps = s.getPrincipals();
// now i can authorize based on name or whatever
but i get a subject only if the method was called with doAs. But it
seems to me that if this will be my requirement, then just anybody will
call the methods with doAs, passing whatever principal they want.
In short, I'm a newbie in this. I tried to read some material, but i
confess this is very confusing to me.
So how do i get the username to authorize in a secure way?
Thank you,
Ittay
- 12
- method always visible by other classThen I have a class called MyDBConn.java, inside this class there's a
method called GetResultFromPazienti():
MyDBConn.java:
==================================
package cc;
import java.sql.*;
public class MyDBConn {
private Connection myConnection;
private java.sql.Statement stmt;
// ...
public ResultSet getResultFromPazienti2(String query) {
ResultSet rs=null;
try{
rs=stmt.executeQuery(query);
}
catch(Exception e){
alerts.showErr(e.getMessage());
}
return rs;
}
// ...
==================================
After this, I have a class called Paziente.java, from this class I
would call method: getResultFromPazienti2(), class is something like
this:
File: Paziente.java
==================================
package cc;
import java.sql.*;
public class Paziente extends javax.swing.JFrame {
private MyDBConn mdbc;
private java.sql.Statement stmt;
// ...
// ...
private void formWindowOpened(java.awt.event.WindowEvent evt)
{
ResultSet rs=mdbc.getResultFromPazienti2("select ... from ...
where ...");
try {
rs.next();
// ...
txtNome.setText(rs.getString("NOME"));
// ...
} catch (SQLException ex) {
ex.printStackTrace();
}
}
}
==================================
At first moment seem that are not problems, infact there's no problem
in compile time, but when I execute project and method
formWindowOpened() is started an "Exception in thread "AWT-
EventQueue-0" java.lang.NullPointerException", where are the
problems???
Thank you to all....
- 13
- Draw controls over custom paintsHi!
I'm trying to drawing under swing controls; actually i draw over all
japplet canvas with repaint method.
public void update (Graphics g)
{
g.fillRect(0,0,300,300);
}
If i declare a simple JTextField with this code:
JTextField field1;
[...]
panel = new JPanel();
field1 = new JTextField( 10 );
panel.add( field1 );
getContentPane().add( "Center", panel );
The textfield is created under the filled rectangle (so i can't see
it!); there's a way to draw the controls on top of the paint methods??
Thanks in advance!
D.Maiorana.
- 14
- 15
- Java soluton for outputting English?Hi, I've generated a program that outputs a series of nodes eg, {A, F, L,
Z). This corresponds to the recommended route along a certain path. i.e.
starting at A go to F then L and arrived at destination Z. I want this to be
generated into English. for eg, I can deleiver to a user a message that
says.........
When at A turn letf for F
Then keep straight for L
fianlly turn left for Z
So there will be a fixed amout of Engkliosh instructions
1- turn left:
2- turn right:
3- go staright:
So basically I need to output a set of directions. In a database I have
stored information about roads and the different nodes on each road, my
problem seems to be deciding how each node and road are related to each
other, in order to instruct for eg' turn left'. To be honest I've racked my
brains trying to come up with a solution but I'm stuck. Can anyone recommend
any ideas?
If you like I can provide more information.
|
|
|