 |
 |
Index ‹ java-programmer
|
- Previous
- 5
- Another reason why everyone should killfile Joe AttardiJoe Attardi tries to start a pure attack thread:
> http://groups-beta.google.com/group/comp.text.tex/browse_thread/thread/814dca01faf56429/80585d528a53dd21
>
> The name is different ("Mark Mephinasony") but it's the same Google
> Groups account. He mentions a problem he's having with some software,
> then someone suggests he files a bug with their bug tracker. Watch how
> quickly Twisted/Mark/whoever quickly turns it into a vicious argument.
Well, well, what have we here? Did you really think I wouldn't be
paying attention for something like this? Of course it's stooping
pretty low to create a whole new thread to attack someone (and
attacking them directly in the subject line, of course), even if it's
also bloody predictable.
Go play in traffic.
- 7
- JToolbar and XP look and feelDoes anybody know how to make buttons placed on the JToolbar to have XP type
border? I noticed that if I place a button on the JPanel I have button with
XP type, round conners border. If I place button on the toolbar there is no
XP border at all.
Alex
- 7
- OMG SPAM IT AGAIN AGAIN!!!!!!! abuse@telus.comemail***@***.com wrote:
>
> http://
email***@***.com
--
Service to my country? Been there, Done that, and I've got my DD214 to
prove it.
Member of DAV #85.
Michael A. Terrell
Central Florida
- 8
- FOUND IT !!!
I needed to add mail.jar and activation.jar. :D
Works fine now.
- 9
- Need help with JTabledPaneHello all
I have JTabledPane in my application. In it I have some tabs with titles
"Tab 1", "Tab 2" and "Tab 3". I want to have the color of the title "Tab 3"
is red (so it is easy to recognize). Is it possible?. Could you please
help..
I tried to use add a red label for the title's tab but it does not work.
Thank you
- 12
- DocBook Editor ComponentHi,
I am developing an application, which I want to distribute under GPL.
I am looking for a swing component, which will be able to edit docbook
documents in the way jeditorpane does it with HTML files.
Does anyone know anything, which would help me (so that I will not have
to write the component from scratch)?
I also thought about customizing Swing's editor pane. Can I modify the
HTMLEditorKit class so it's capable to handle Docbook files? Could I
then distribute this modified code under GPL or am I facing a conflict
with a kind of Sun license?
Martin Kyselak
- 12
- Help: Calling System.exit(0) inside finallyHello everyone,
I am trying to release windowing resource after a try-catch and found
that calling System.exit(0) inside finally may hide the an uncaught
exception. See example below.
What is the *right way* to use finally in this case?
--lc
PS.
(1) Problem with putting System.exit(0) at the end is that the JFrame is not
properly released when an uncaught exception (e.g. divide by zero) is
generated.
(2) Now if I move System.exit(0) inside finally clause, then JFrame is
released OK but the uncaught exception is not even reported!
import javax.swing.*;
public class FinallyTest extends JFrame {
FinallyTest(String title) {
super(title);
JLabel l = new JLabel("Calculates Quotient of 2 Numbers....");
getContentPane().add(l);
setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
setSize(400,100);
setVisible(true);
}
public static void main( String args[] )
{
String s1, s2;
int number1, number2, quotient;
JFrame f = new FinallyTest("Test Finally Clause");
try {
s1 = JOptionPane.showInputDialog( "Enter integer numerator" );
s2 = JOptionPane.showInputDialog( "Enter integer denominator" );
number1 = Integer.parseInt( s1 );
number2 = Integer.parseInt( s2 );
quotient = number1 / number2;
JOptionPane.showMessageDialog(null, "The quotient is " + quotient,
"Results", JOptionPane.PLAIN_MESSAGE );
}
catch (NumberFormatException e) {
JOptionPane.showMessageDialog(null, "Invalid data! Bye!", "Invalid
data", JOptionPane.ERROR_MESSAGE);
}
/*
catch (ArithmeticException e) {
JOptionPane.showMessageDialog(null, "Exception: " + e + "! Bye!",
"Arithmetic Exception", JOptionPane.ERROR_MESSAGE);
}
*/
finally{
// System.exit(0);
}
System.exit(0); // Should do this in the finally clause???
}
}
- 12
- data for specific dayI need to collect data for every day in year (choosing 1 option within 3)
for specific number of persons. What is the simpliest way for from a
component side of problem. I was thinking about putting drop down menu in a
table, but maybe it will be too complicated for me (and preety long table),
so if you have better solution for my web application?
- 12
- How do I slow down my network?This may be a bit off-topic, but still:
I'm working with a Java client/server app.
In my test setup the client and server are connected via the 100 MBit
LAN, so bandwidth is virtually unlimited.
I want to test it in a more realistic setup, where the bandwidth is
only, say, 56 kbit/sec.
Is there a simple way to temporarily limit the bandwidth for test
purposes?
I have thought of putting a delay between every IP packet, on the
trasmitting or the receiving side, but in Java I don't have access to
individual packets, so I can't figure out where to insert the delay.
Maybe the solution should be made on a lower layer, like the ethernet.
Chris
- 12
- Please,HELP ME!!Safe to all.. I have had an urgent need of sapre in that manner I can
create a message of mistake in the case in which a JTextField
contains numbers! I do not know if I have explained, in practice I want
ke in this Jtext alone characters are contained and not
numbers!!! how I do?
- 14
- NervousText vs NetBeans 4.1Hello,
I'm trying to learn how to create custom property editors for own javabeans.
I'm using sun's tutorial from webpage
http://java.sun.com/developer/onlineTraining/Beans/Beans4/nervous07.html
Everything is going well, i'm able to add this bean as new component
toNetBeans
by Palette Manager, i'm able to add this new component to jFrame,
but when I'm trying to change "text" property in properties editor,
NetBeans adds in initComponents() line:
nervousText071.setText(???);
Does anybody know what is the reason of malfunction? Is it my fault?
this is the property editor class:
package sun.beanbox.beans;
import java.beans.*;
public class NervousText07TextPropertyEditor
extends PropertyEditorSupport {
public String[] getTags() {
String values[] = {
"Nervous Text",
"Anxious Text",
"Funny Text",
"Wobbly Text"};
return values;
}
}
The rest of sources is on that webpage.
Many thanks in advance,
superchumbo
- 15
- deploy of servlet problemI am newbie to servlet and I am trying some simple example of servlet in
which I have written
1) a html form to get data saved in webapps/myplace/
2) a servlet which is to return the data got from the request.get of the
html form.
I have deployed the tomcat server, put the compiled servlet class in the
WEB-INF/classes and also make the web.xml file.
However, when I load the page to the servlet from the html form, and click
submit from the form which is supposed to link to the servlet, it returns
404 error which said it cannot load the page.
I would like to know what I have missed that lead to such problem.
Thousands Thanks
- 15
- Audio problem with JMF 2_1_1e Linux Performance packHi,
Okay, here's the deal. I have JMF 2_1_1e installed on two boxes -
Windows performance pack on a Windows XP box, and Linux Performance
Pack on a linux redhat fedora core 1 box. I am using Java2 SDK 1.4.2
on both boxes. I have a Logitech QuickCam 3000 Pro (USB)which has a
builtin microphone. I plug the quickcam into the Windows box, fire up
jmstudio and viola, I get video and audio. Wonderful. I plug the
quickcam into the Linux box, fire up jmstudio and viola, I get video.
Under "File->Preferences-Capture Devices" I ask it to detect the
capture devices and it gives me "v4l:Logitech QuickCam Pro 3000:0" for
the video capture device and "JavaSound audio capture" for the audio
capture device. When I try to use tha audio capture device, jmstudio
gives me an error message, e.g.: "Unable to handle format: LINEAR,
22050.0 Hz, 16-bit, Stereo, LittleEndian, Signed". It will give me the
same "Unable to handle format: <fill in format here>" error regardless
of what format I choose. The microphone is detected by the O/S
properly (no errors) and all the proper modules load automatically,
but JMF just can't seem to find it.
Thoughts? suggestions?
John
- 16
- Date calculationsJust a shor question concerning date calculations.
I want to take the current date, like Date currentDate = new Date(); then
subtract x number of days from it.
What I was thinking of doing was extracting the days, months and year from
currentDate and then make a method to subtract x from days if x is more
than the day in the month then I will have to rework it into the months and
possibly the year.
I was hoping there was an easier and better way of doing this.
Thanks
Murph
- 16
- Macintosh JTable cellBordersDoes anyone know how to make a JTable display with grid lines under the
Macintosh LnF?
I understand it has something to do with the following, but so far have
had no luck with it.
UIManager.getDefaults().put( "TableHeader.cellBorder", LineBorder );
Mike Sampson
|
| Author |
Message |
bhoy1888

|
Posted: 2006-2-23 22:29:00 |
Top |
java-programmer, java 3d
does anyone know where i could get the java 3d code to build the game
asteroids need it very badly willing to pay good money for a full working
java 3d code.
|
| |
|
| |
 |
Brian Matzon

|
Posted: 2006-2-24 0:19:00 |
Top |
java-programmer >> java 3d
bhoy1888 wrote:
> does anyone know where i could get the java 3d code to build the game
> asteroids need it very badly willing to pay good money for a full working
> java 3d code.
if you can accept LWJGL code instead, there is a version here:
http://www.cokeandcode.com/asteroidstutorial
|
| |
|
| |
 |
folding

|
Posted: 2006-3-17 12:59:00 |
Top |
java-programmer >> java 3d
hi there....
i am doing my work using Java 3D
could anyone help me how to limit the view of the user inside a
box/cylinder?
cos now the user can move freely to anywhere he/she wants including
outside of the cylinder
thanks
|
| |
|
| |
 |
folding

|
Posted: 2006-3-17 13:00:00 |
Top |
java-programmer >> java 3d
hi there....
i am doing my work using Java 3D
could anyone help me how to limit the view of the user inside a
box/cylinder?
cos now the user can move freely to anywhere he/she wants including
outside of the cylinder
thanks
|
| |
|
| |
 |
folding

|
Posted: 2006-3-17 13:01:00 |
Top |
java-programmer >> java 3d
hi there....
i am doing my work using Java 3D
could anyone help me how to limit the view of the user inside a
box/cylinder?
cos now the user can move freely to anywhere he/she wants including
outside of the cylinder
thanks
|
| |
|
| |
 |
Thomas Weidenfeller

|
Posted: 2006-3-17 19:36:00 |
Top |
java-programmer >> java 3d
folding wrote:
> hi there....
> i am doing my work using Java 3D
> could anyone help me how to limit the view of the user inside a
> box/cylinder?
> cos now the user can move freely to anywhere he/she wants including
> outside of the cylinder
> thanks
>
You might want to try the comp.lang.java.3d newsgroup.
/Thomas
--
The comp.lang.java.gui FAQ:
ftp://ftp.cs.uu.nl/pub/NEWS.ANSWERS/computer-lang/java/gui/faq
http://www.uni-giessen.de/faq/archiv/computer-lang.java.gui.faq/
|
| |
|
| |
 |
folding

|
Posted: 2006-3-20 18:33:00 |
Top |
java-programmer >> java 3d
could u be more specific pls
i dont quite understand
|
| |
|
| |
 |
Oliver Wong

|
Posted: 2006-3-21 6:12:00 |
Top |
java-programmer >> java 3d
"folding" <email***@***.com> wrote in message
news:email***@***.com...
> could u be more specific pls
> i dont quite understand
>
You're posting in a newsgroup called "comp.lang.java.help". Thomas is
telling you that you should instead post in a newsgroup called
"comp.lang.java.3d", since there will probably be more people who actually
know something about Java3D in that group.
- Oliver
|
| |
|
| |
 |
| |
 |
Index ‹ java-programmer |
- Next
- 1
- 2
- Open Source JSF RAD?Can anybody help me to find an Open Source JSF RAD similar to Visual
Stutio for ASP.NET?
- 3
- regular expression and german umlautsHi,
I would like to use a regular expression like "\\w+" to extract the
values "red" "green" and "blue" from the expression "red;green;blue".
That works fine just until a german umlaut like "? is in the
expression.
Is there a possibility to make the java.util.regex.Matcher work
properly with german umlauts? I read something about encoding in the
documentation - perhaps I did not try out the right option...
Thanks in advance.
Bjoern.
- 4
- [DVD-RW UDF]Is there a package for UDF?Hi,
I've learned that when it comes to burning a DVD RW with data, one can
go ISO or UDF.
As Oracle DBA, I'd like to write the archived files sequentially on a
dvd using UDF (I think ISO can't do that?)
Unfortunately, in the Java World, UDF means "user defined function", so
the Google search is not adequate.
Is there a Java Package that provides i/o functions for reading/writing
according to UDF format?
If anyone has an idea, please let me know.
***********************************************
Beatles quote of the day:
Well you can indicate anything you see..
***********************************************
.
- 5
- java.lang.NoSuchMethodError: org.jdom.Element: method getParent()Lorg/jdom/ElementHi,
I have a question re. JDOM 1.0 (http://www.jdom.org) ... specifically
relating to the getParent method used from the Element object.
JDOM 1.0 release dated 9th September 2004 (http://www.jdom.org/dist/binary/)
The JavaDoc for JDOM 1.0 (http://www.jdom.org/docs/apidocs/index.html)
indicates that the org.jdom.Element class is a subclass of org.jdom.Content
and that the getParent method is inherited from org.jdom.Content.
I checked the getParent method, which is indeed a method of
org.jdom.Content.
Any idea why calling...
Element testParent = (Element)testElement.getParent();
... (where testElement is an Element object) might throw a
java.lang.NoSuchMethodError exception(?)...
Exception in thread "main" java.lang.NoSuchMethodError: org.jdom.Element:
method getParent()Lorg/jdom/Element; not found
Cheers,
Paul
Aside: please advise if there is a more appropriate group to post - thanks
- 6
- Escape ASCII characters
Hello, does anyone have the URL for the listing of escape sequences in
Java when using ASCII? I'm thinking if "\\s" for whitespace etc. I'm
trying to find the rest for line feed, return etc. I know it's on
java.sun.com but I've lost it somewhere.
Cheers
--
Jeffrey Spoon
- 7
- Tools for mobile phone application developmentHello,
first of all let me apologize if this is an off-topic post on this group. It
looked like the best choice from the groups I could find on my news server.
I want to develop a very simple java application for my mobile phone. The
problem is that I never worked with any kind of Java before so I feel a bit
lost when I try to find some useful information. I'm more than familiar with
derivations of C and object oriented paradigm (I work with it every day) so
I hope a simple Java application won't be a problem. What troubles is that I
don't know what tools to use. Please recommend some useful tools for
developing mobile Java application. Thank you...
Grga
- 8
- JMS reception in normal Java app?Hi all,
A new facet to my system design is starting to come up in my mind. See
my other thread, "Right use for JTA transactions?", for background
info. Some other services, like mailing lists, would be on physically
separate servers from the main webapp. The webapp would issue
management messages (like create new mailing list foo, etc) via JMS.
I was wondering if anyone's got any ideas on implementing JMS message
consuming in a "normal" Java application, which would run in a normal
JVM outside of any J2EE/Servlet container? In essence, I want these
service managers to be as lightweight as possible. I don't want to have
to run JBoss on each of the other servers just to run something like
Message Driven Beans.
Ideas? Thanks!
--Scott
- 9
- clarify few things in javain applet, "jFrame" cannot be added into applet right? ( I tried it out ,
cannot work; so i'm using jPanel)
in applet/application , there are 3 way program start to flow :: 1. void
init()
2. void start()
3. create function inside constructor of class.
Please verify and comments. thank you
- 10
- java byte stream and excel issueHi there
I have hit a strange problem..
I have a java servlet using a servlet output stream to push files from a
content managment system out to the users browsers when they click on a
hyperlink to the file.
It works fine for Word, txt, pdf etc. files but when an excel document is
the target of the link and there are spaces in the name of the excel file or
folder path specified in the link (replaced by %20 in the browser of course)
then excel complains that the file could not be found but still opens it.
I have played with the different settings in Excel regarding opening in a
web browser, the File Type association in windows etc. and nothing works.
I have seen posts of people getting similar type errors when excel files
have spaces in the name but nothing that involves sending it to a browser via
an output stream.
Has anyone seen this before or know of a way to work around excel's behavior?
One note - removing all the spaces from all folders and excel files is not
an option. Unfortunately.
Thanks
Paul
- 11
- static final variable and serializationI have a design that has a collection of serializable objects which
contain several static final variables. I am wondering what will
happen with these if I were to output the collection to a file. I am
just learning Java but have several years of embedded experience with
C. In C I would have had these variables #defined in a header and not
written them to the file.
Thanks for any insight
- 12
- JDWP error with libthr (-p6)email***@***.com wrote:
> Hi,
>
> whenever I try to use Java (JPDA) debugging with jdk14-p6 with libthr, I
> get:
>
> FATAL ERROR in native method: JDWP "util.c" (Jan 24 2004), line 1194:
> Unexpected error, error code = 51 (JVMDI_ERROR_NOT_MONITOR_OWNER)
>
> I think this has been reported before and was attributed to gdb being
> incompatible with libthr, but I am most sure gdb is out of the loop
> here.
> Note I am not debugging the JVM (with gdb), I'm debugging a Java
> application using another Java application (Eclipse) as the debugger.
>
> The problem is easy to reproduce. Just take your favorite hello-world
> java program, set a breakpoint on some line, and start the (Eclipse)
> debugger on it. You will get the above error if you run with libthr but
>
> all will be well if you run with libc_r.
1.4.2p5 was linked against libc_r, 1.4.2p6 was linked against libkse.
Are you sure you are not mixing threading subsystems? Do you use a
global mapping from libc_r and/or libkse to libthr?
--
Panagiotis Astithas
Electrical & Computer Engineer, PhD
Network Management Center
National Technical University of Athens, Greece
_______________________________________________
email***@***.com mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-java
To unsubscribe, send any mail to "email***@***.com"
- 13
- Problem with Struts 1.1 and select boxHi,
I have a problem with this java code:
I want populate a select box with Jakarta Struts 1.1
<%
String multipleValues[] =
{ "Multiple 0", "Multiple 1", "Multiple 2", "Multiple 3", "Multiple 4",
"Multiple 5", "Multiple 6", "Multiple 7", "Multiple 8", "Multiple 9" };
pageContext.setAttribute("multipleValues", multipleValues);
%>
<html:select property="multipleSelect" size="10" multiple="true">
<html:options name="multipleValues" labelName="multipleValues"/>
</html:select>
Can you help me?
Ciao,
Carlo
- 14
- IDE Recommendationi use java sdk - straight download from java.com site
and Windows.
i'd like to use an ide that uses the sdk that i downloaded
(and preferably easy way to point to a new sdk on
release).
what's recommended?
thanks - free is always good
- 15
- Write Great Computer ProgramOur 90 % percent work based on our mind.
all the successful person of this world won from mind. You can be
Albert Eynsteen, Pablo Picso, Henri Ford . your have the same power
they were had, you can awake to your mind through meditation.
You can write extraordinary program or software codes from cool
technique.
http:\\oorga.tripod.com
You can discover new values,new worlds, new power through meditation.
We can solve our every problem through meditation, however it is
amazing or laughful in listening but this is ture.
as we know our brain works only 5% . so think if you use 50% of our
mind you can imagine what you can do. This is not a joke.
success is based on our work and working style. This is important how
we complete our porgrame more effectivly.
How just visit to this website
http:\\oorga.tripod.com
|
|
|