Manuel Paco

Ranch Hand
+ Follow
since Sep 23, 2001
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by Manuel Paco

Thanks a lot.
21 years ago
It does not work.
File does not get renamed.
21 years ago
File does not get renamed.
21 years ago
Help please,
What is wrong with that?
File oldFile = new File( "C:/", "A.jpeg");
File newFile = new File( "C:/", "B.jpeg");
boolean success = false;
success = oldFile.renameTo( newFile );
21 years ago
Thank you very much.
21 years ago
And How do convert them to Vector/
21 years ago
Help please
How do I get 2 arrays
String[][] stringArray1
String[][] stringArray2
into one array?
21 years ago
Help please.
I would like my JFrame to be automatically closed when it looses focus and is minimized.
How could I accomplish that?
22 years ago
sql
Help please.
I have just two values Yes/No.

What is faster approach?
SELECT * FROM table WHERE smoker = 'No'
or
SELECT * FROM table WHERE smoker LIKE 'N%'
Thank you.
Thanks for help
22 years ago
Thanks.
I think it is impossible what I would like.
MyClass myClass = New MyClass();
myClass - reference name
22 years ago
Help please
Component[] components = getComponents();
How Can I get a reference name for any object stored in "components" array?
components[i].getName() does not work
22 years ago
Path is OK. Still does not work.
22 years ago
Help please.
When I run the following code I get
javax.mail.MessagingException: IOException while sending message;
nested exception is:
javax.activation.UnsupportedDataTypeException: no object DCH for MIME type text/plain
code
public class SendEmail
{
protected void sendEmailMethod() throws IOException
{
String from = "[email protected]";
String to = "[email protected], [email protected]";
String subject = "JAVASendMailexample";
String message = "Mymessage";
try{
MailSending( from, to, subject, message );
}
catch(UnknownHostException uhe){System.out.println(uhe);}
catch(MessagingException me){System.out.println(me);}
}
public void MailSending(String from, String to, String subject, String message) throws MessagingException, IOException
{
String smtpHost="smtp.netzero.net";
// Get system properties
Properties properties=System.getProperties();
// Setup mail server
properties.put("mail.smtp.host", smtpHost);
// Get session
Session session=Session.getInstance(properties,null);
MimeMessage mimeMessage=new MimeMessage(session);
mimeMessage.setFrom(new InternetAddress(from));
InternetAddress[] tos = InternetAddress.parse((String)(to));
mimeMessage.setRecipients(Message.RecipientType.TO,tos);
mimeMessage.setSubject(subject);
mimeMessage.setContent(message, "text/plain");
Transport transport=session.getTransport("smtp");
String user = "[email protected]";
String password = "manuel";
transport.connect( smtpHost, user, password );

transport.sendMessage(mimeMessage, mimeMessage.getAllRecipients());
transport.close();
}
}//end SendEmail
22 years ago
Help please.
I run Windows 2000 and Win XP. I would like to use Java mail.
I use Netzero IP.
What do I need in order to send and receive mail in my java app.
22 years ago