Search the web
Sign In
New User? Sign Up
Java_Official · Java SE . EE . ME . AJAX . Web services
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Want to share photos of your group with the world? Add a group photo to Flickr.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Messages 1 - 7329 of 32236   Newest  |  < Newer  |  Older >  |  Oldest
Messages: Show Message Summaries   (Group by Topic) Sort by Date v  
#7329 From: howdy1753
Date: Thu Feb 7, 2002 8:42 pm
Subject: INPUT AND OUTPUT PROGRAM
howdy1753
Send Email Send Email
 
I am trying to create a program that accept
charracter from keyboard and print the result<br>such
variables as: Quizes = .30, homework = .20,<br>cummulative
= .30, midterm = .20<br>I want to write this
program to accept input(marks) for each variable and
multiply it by the corresponding constant. Then sum up the
total scores<br><br>Can someone help out? <br>thank you
in advance

#7328 From: mcconnell_stephen
Date: Tue Feb 5, 2002 3:23 pm
Subject: Re: how do i get the icon in place of th
mcconnell_stephen
Send Email Send Email
 
The first thing you have to do is load an
image....<br><br>There are all kinds of ways to do this. I do this in a
java Application like this....<br><br><br>Toolkit kit
= Toolkit.getDefaultToolkit();<br>Image image =
kit.getImage(url);<br>Image image = kit.getImage(filename);<br><br>Next,
there is a method in the JFrame or awt Frame<br>class
(which should be the base class for your applications'
frame) called <br><br>setIconImage(image);<br><br>Use
that and it should set your Icon in the upper left
corner... It will also be use for the icon when you
minumize it....<br><br>Stephen
McConnell<br><a href=http://www.crosslogic.com
target=new>http://www.crosslogic.com</a>

#7327 From: njzeng
Date: Tue Feb 5, 2002 2:51 am
Subject: Re: start: applet not initialized
njzeng
Send Email Send Email
 
Is the class HelloWorld extended from class Applet?Or ,have you override the
method ini(),and start() method from class Applet?<br>Can you give you program
's code?

#7326 From: mcconnell_stephen
Date: Mon Feb 4, 2002 11:18 pm
Subject: Re: Totally off-topic
mcconnell_stephen
Send Email Send Email
 
I do get asked that a lot. I am not that guy or,
unfortunately even a long lost cousin...<br><br>However, I have
read his books (several years ago); and use them for
reference; and tounge and cheek waive his books around when
I'm trying to get a point across "SEE WHAT I
WROTE!"... Doesn't work.... rats...<br><br>Thanks for asking
anyway.<br><br>Steve

#7325 From: EricZann
Date: Mon Feb 4, 2002 7:17 pm
Subject: Totally off-topic
EricZann
Send Email Send Email
 
This is for Stephen McConnell. Excuse my
curiosity, but are you _the_ Steve McConnell (author of
'Code Complete' and 'Rapid Application
Development')?<br><br>(And if not, are you tired of getting asked that??!)

#7324 From: cat_horgan
Date: Mon Feb 4, 2002 5:40 pm
Subject: Servlets with WML
cat_horgan
Send Email Send Email
 
just wonderin if any one has compeleted any work
with a java servlets and WML / WAP<br>Im lookin for
tips, hints, tricks or any websites which you found
helpful on this topic<br><br>Thanking you in
advance<br><br>Caz

#7323 From: soichih
Date: Mon Feb 4, 2002 5:50 am
Subject: start: applet not initialized
soichih
Send Email Send Email
 
I have just downloaded the j2sdk from sun's web
site and I successfully compiled HelloWorld.java into
HelloWorld.class. And I created run.html with simple &lt;apple&gt;
tag to run the HelloWorld.class.<br><br>Now, when I
run the run.html with appletviewer, it doesn't do
anything but displaying "Start: applet not initialized"
message. I tried couple of other demo codes from sun's web
site but any of those code doesn't do anything but the
problem I described above.<br><br>What I am supposed to
do? What can I do to get it started?<br><br><br>I use
redhat linux 7.2 with latest j2sdk (1.4) <br><br>Thank
you.

#7322 From: iceman330009
Date: Mon Feb 4, 2002 3:21 am
Subject: irc chat
iceman330009
Send Email Send Email
 
I NEED TO KNOW HOW TO SET A PROGRAM NAMED EIRC im not to sure on how to set it
up and what i need if u could help me id most appreciate it thanks

#7321 From: mcconnell_stephen
Date: Sun Feb 3, 2002 7:53 pm
Subject: Re: Java VS Cobol
mcconnell_stephen
Send Email Send Email
 
Not being predjudiced at ALL, I think Java can be
used for ANYTHING.<br><br>However, if you want the
truth, you can and should use Java for anything for
which you:<br><br>1) have to run things across several
different platforms (mainframes, pc's, workstations).<br>2)
may want to port to another platform (from a PC to a
mainframe --- yes java works on just about any mainframe
from AS/400, to OS/390... I think someone may have
even ported a JVM to a Cray).<br>3) You are not doing
A LOT of number crunching.<br><br>I think I can
speak with some credibility, because I once was a COBOL
programmer and truely enjoyed COBOL.<br><br>But I REALLY
LOVE Java!<br><br>I have used Java to handle large
amounts of data efficiently. It is a MAJOR language in
processing B2B applications, because of the XML Application
Program Interfaces available and the EJB stuff and even
the CORBA API's available.<br><br>It is a MAJOR
language in developing Web applications using Servlets,
JSPs or XML/XSLT.<br><br>By developing a multi tiered
Object Oriented application, you can use it to model
your business rules totally divorced from how you have
your database or your User Interface set up. (This is
our company's specialty).<br><br>With SWING, you can
create Window's applications which run on Windows,
Linux, any XWindows, OS2, Mac's etc... anything that has
a GUI interface.<br><br>I've developed Server Side
applications which run on an AS/400 (which if anyone has
developed on that machine, you know it's almost totally
"green screen".<br><br>Although I have not developed any
Scientific applications (I did in C++), I've seen some
developed in Java. AND I HAVE done some 3D modeling in Java
which worked out really well... The Java 3D API is
really fun to work with...<br><br>I see alot of stuff on
C# which is supposed to be a Java Like language
which runs on Windows .NET, but NOWHERE have I seen a
language as Powerful and as Flexible as Java.<br><br>Am I
a little predjudiced... Maybe just a tad... But
Justifiably so...<br><br>Stephen
McConnell<br><a href=http://www.crosslogic.com
target=new>http://www.crosslogic.com</a>

#7320 From: mwaqqas
Date: Sun Feb 3, 2002 5:55 pm
Subject: how do i get the icon in place of the c
mwaqqas
Send Email Send Email
 
how can i get my icon on the top left side of the application?

#7319 From: njzeng
Date: Sun Feb 3, 2002 1:02 pm
Subject: Get IP address by its name.
njzeng
Send Email Send Email
 
I would like to share my exprience.<br>I find at
java.net.InetAddress ,class InetAddress has a method called
getByname(); so we can get the Ip address by its host
name.<br>For example ,InetAddress
address=InetAddress.getByname("localhost").<br>and the value of address is
"127.0.0.1".<br>i hope ,i
did not bother you.<br>njzeng

#7318 From: njzeng
Date: Sun Feb 3, 2002 12:58 pm
Subject: Re: connecting to a database
njzeng
Send Email Send Email
 
I got some information ,when i using command
regedit ,you know to edit my window's registry,<br>i open
the HKEY_LOCAL_MACHINE\Software\odbc,<br>there is
some information about you question,but i don;t know a
lot about this registry.<br>Hope can help you.

#7317 From: c_beginner2001
Date: Sun Feb 3, 2002 10:13 am
Subject: connecting to a database
c_beginner2001
Send Email Send Email
 
Hi everyone. I am new to databases and am
attempting to create a database<br>using Jbuilder 5 and MS
Access 2000.<br><br>I know that to be able to create a
database connection you must first setup<br>the database
using the ODBC Datasources through the control panel.
Is there<br>any way to setup the database through
the source code rather than using the<br>control
panel.and if so how would I do it for as table named
"members"<br><br>Thanks everyone

#7316 From: mhberry20002000
Date: Sun Feb 3, 2002 6:07 am
Subject: Attn Engineers
mhberry20002000
Send Email Send Email
 
Any engineers out there who could tell me what college classes were most helpful
Ii would be most appreciative... Thanks!

#7315 From: ooomadhatterooo
Date: Sat Feb 2, 2002 10:35 am
Subject: Re: Sorting array alphabetically
ooomadhatterooo
Send Email Send Email
 
Thanks! It works now, and I expect that was all that was meant...

#7314 From: epenak
Date: Fri Feb 1, 2002 10:28 pm
Subject: Re: Voice Chat Code
epenak
Send Email Send Email
 
Here is an outline of how another student group
approached the same
problem:<br><a
href=http://saltwater.cecs.missouri.edu/~shi/cecs383.prj/g08/report.htm
target=new>http://saltwater.cecs.missouri.edu/~shi/cecs383.prj/g08/report.htm</a\
><br><br>You can find LOTS of java voice chat by doing a
google search on those keywords.<br><br>epenak

#7313 From: x_mac2002
Date: Fri Feb 1, 2002 9:44 pm
Subject: Re: Sorting array alphabetically
x_mac2002
Send Email Send Email
 
You don't have to search on the 1st letter, then
search those again on the 2nd letter. Use the
compareTo() method of the String class in your search
algorithm. This compares two Strings and will allow you to
put them in order.

#7312 From: ooomadhatterooo
Date: Fri Feb 1, 2002 9:33 pm
Subject: Re: Sorting array alphabetically
ooomadhatterooo
Send Email Send Email
 
I've got so far as making an array of "person"
objects, and I've done a bubble sort on it, using the
numerical value of the first char of the surname. That's a
start. <br><br>The only thing I can think of to do now,
would be to count up all the names starting with "A"
etc, then sort those on the second char. And so on.
With a string that's 15 chars long (with initials at
the end), that method seems to be rediculously
complicated. Could I be missing anything simpler...?

#7311 From: extrapeee
Date: Fri Feb 1, 2002 8:27 pm
Subject: Java VS Cobol
extrapeee
Send Email Send Email
 
I am new to Java. Can Java be as efficient as
Cobol in processing huge amounts of data? Why or why
not? Can Java be ran on a mainframe? What type of
development is Java best used for? Web design, business
applications, video games, scientific programs, Windows
programming??

#7310 From: r_ghaffaripour
Date: Fri Feb 1, 2002 3:33 pm
Subject: Voice Chat Code
r_ghaffaripour
Send Email Send Email
 
Hi all,<br>I have to develop a lan or internet based voice chat program in
java.<br>Any tutorial,book,article,source code would be helpful for me.thanx

#7309 From: mcconnell_stephen
Date: Thu Jan 31, 2002 11:40 pm
Subject: Re: Modelling software
mcconnell_stephen
Send Email Send Email
 
There are as many modeling languages as there are
stars in the sky.<br><br>However, UML is pretty much
standard as a modeling LANGUAGE. It can model databases
(E/R diagrams) and Class and Object relational
diagrams and can be used to describe the Use Cases (part
of the requirements gathering process) It has
Sequence, Collaboration, State and Process diagrams....
which have to do with modeling the flow.<br><br>A good
book to get is Wrox Press Instant UML.. This is for
starters.<br><br>Tools are out there from "free" tools like ArgoUML to
HUMONGOUS tools like Rational Rose. You get the features
you pay for.<br><br>ArgoUML provides Class Diagrams
and several others, but does not provide Sequence
Diagrams and several others for heavy duty development. It
also doesn't provide code generation (at least last
time I looked) or reverse engineering (the ability to
take Java code and generate UML diagrams).<br><br>Both
Together J and Rational Rose are high end tools that
"cost" and provide everything you would ever want in a
UML tool. <br><br>Together Control Center 5.5 can
even be used as a complete development
package.<br><br>I've used both Rational Rose and Together Control
Center and feel that Together Control Center is by far
the superior product. It's easier to use, more
intuitive, has a smoother interface. But that's personal
preference.<br><br>But to make a long story short UML is the stuff to
use.<br><br>Stephen McConnell<br><a href=http://www.crosslogic.com
target=new>http://www.crosslogic.com</a>

#7308 From: mgranich
Date: Thu Jan 31, 2002 7:29 pm
Subject: Re: Modelling software
mgranich
Send Email Send Email
 
I like TogetherSoft. It has UML tools, case
tools, E-R diagramming tools and others. It has a neat
feature of generating your class code automatically when
you create a new class in your UML diagram. It also
generates Java Doc and allows you to use any editor you
want. I use it with Textpad. You can even download a
trial version at
:<br><br><a href=http://www.togethersoft.com/
target=new>http://www.togethersoft.com/</a><br><br>MAG

#7307 From: cnik70
Date: Thu Jan 31, 2002 6:18 pm
Subject: Applets: jars with jars
cnik70
Send Email Send Email
 
I am writing an applet, and it's files (class and
jar files that it uses) are all packed into 1 jar
file named simply theApplet.jar<br><br>in the
mainifest it has<br><br>Main-class: runner<br><br>and
overall the main jar file that I have created contains
the manifest, 3 class files and a jar file which 1 of
the 3 classes uses.<br><br>my current html was
<br><br>&lt;applet code="runner"
archive="theApplet.jar"&gt;&lt;/applet&gt;<br><br>yet this appears to not
initiate since it cannot find
the jar file within the jar file.<br><br>How do I
"fix" this situation?<br><br>-Cnik

#7306 From: c_beginner2001
Date: Wed Jan 30, 2002 9:57 pm
Subject: Modelling software
c_beginner2001
Send Email Send Email
 
Hi everyone. I'm trying to create a java database
programm but would firstly like to model the
application.<br><br>I was considering using UML but was wondering if
there are any similar modelling languages available so
that I may compare them to see which is the best for
me to use.<br><br>Thanks everyone

#7305 From: ooomadhatterooo
Date: Wed Jan 30, 2002 8:57 pm
Subject: Re: Sorting array alphabetically
ooomadhatterooo
Send Email Send Email
 
I did discover Arrays.sort() earlier, but now I'm
trying to figure out how to do it manually, using some
kind of sorting algorithm. (I confess it's for an
assignment...)<br><br>I suppose you'd have to compare chars numerically,
but wouldn't that get terribly complicated to get a
whole word into alphabetical order, not to mention
initials?! <br><br>Also, I need to include other data in the
output. I guess you'd have to make a person object. Would
you have to sort the whole object, but only on the
name and initial fields? Is this possible?

#7304 From: epenak
Date: Wed Jan 30, 2002 7:12 pm
Subject: Re: Compile all packages
epenak
Send Email Send Email
 
There are severals ways to approach
this.<br><br>First, several of the IDE's use a project approach and
allow you to rebuild an entire project from within the
IDE.<br><br>Second, I'd consider Ant, a java based build tool
available at <a href=http://jakarta.apache.org/ant/
target=new>http://jakarta.apache.org/ant/</a><br>This tool
can be run from the command line and requires some
setup but is very flexible. If you are setting up build
environments and you need to be able to move it from the test
to production areas and don't want to have to recode
everything, this is your choice. It has a learning curve on
it but is well worth the
effort.<br><br>hth,<br>epenak

#7303 From: javajen22f
Date: Wed Jan 30, 2002 6:43 pm
Subject: Compile all packages
javajen22f
Send Email Send Email
 
Hi guys! I need help...<br><br>I'd like to be
able to be in a root directory and execute a 'javac
*.java' type statement that will compile everything in
this directory as well as packaged files located in
all subdirectories beneath this one without
necessarily knowing all the package names.<br>Can anyone tell
me how to do this? You think a compiler would
include a -s flag or something. Even a batch file script
that recursively finds all subdirectories which I
could then call javac on individually within the script
or anything. I don't really care how it's done, just
so I can do it from a DOS command line prompt
without knowing the subdirectory names in advance.<br>If
anyone could help me out, I would be so eternally
grateful! ;)<br><br>Thanks a million!<br>Jennifer

#7302 From: njzeng
Date: Wed Jan 30, 2002 4:32 pm
Subject: Re: jdbc not working in applet
njzeng
Send Email Send Email
 
can you in detail?<br>thanks

#7301 From: njzeng
Date: Wed Jan 30, 2002 4:30 pm
Subject: Re: JBuilder4
njzeng
Send Email Send Email
 
i agree with you .As a beginer,use a notepad,as i do .Acutally ,i use
editplus,which also can edit html efficiently.<br><br><br>pool english
<br>njzeng

#7300 From: njzeng
Date: Wed Jan 30, 2002 4:22 pm
Subject: Re: quick question -I got another idea
njzeng
Send Email Send Email
 
Actually ,there is a difference between the
result we have seen and the actually java presentation
in inner.<br>Sorry for my pool english .i will
express my idea in following example.<br>public class
test{<br>public static void main(String args[]){<br>double
x=-0.39999999999999997 ;<br>System.out.println("sin=
"+Math.sin(x));<br>x=-0.4;<br>System.out.println("sin
="+Math.sin(x));<br>}<br>}<br>and the result
is:<br>sin= -0.38941834230865047<br>sin
=-0.3894183423086505<br>so maybe java know exactly what you want to do .

Messages 1 - 7329 of 32236   Newest  |  < Newer  |  Older >  |  Oldest
Advanced
Add to My Yahoo!      XML What's This?

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help