Jump to content
Sign in to follow this  
caffeine3x

Alert Message Title

Recommended Posts

saper reti nak edit title kat alert message. biasanyer dier tulis Microfost Internet Explorer. kalu bleh nak tukar jadi lain...tu pon kalu buleh la..aku pon tak sure sebenarnyer bleh ker tak..ader sesaper dah penah cuba???

Share this post


Link to post
Share on other sites

hehehhe.....silap pulak...problem ni tak setel lagi..huhuhu... alert message tu mcm kalu kita masuk data salah kat text box ker pastu kuar pop up message "Data yg anda masukkan salah" pastu kita pon tekan butang OK ke aper ker. ha tu la masalah nyer title kat alert message tu Microsoft Internet Explore. kalu bleh nak kuar tulisan lain ikut kehendak aku. pastu nak letak gambar lain ganti gambar tanda seruan atau tanda soal kat default alert message..

Share this post


Link to post
Share on other sites

aku rasa JOptionPane boleh membantu..... :- nih aku ada letak contoh dier:-

import javax.swing.JOptionPane;

public class JOptionPaneTest1 {

public static void main(String[] args) {

String ans;

ans = JOptionPane.showInputDialog(null, "Speed in miles per hour?");

double mph = Double.parseDouble(ans);

double kph = 1.621 * mph;

JOptionPane.showMessageDialog(null, "KPH = " + kph);

System.exit(0);

}

}

aku rasa ok kot. tak pun ko leh rujuk kt cni...:-

1. http://www.apl.jhu.edu/~hall/java/Swing-Tu...Swing-Tutorial- JOptionPane.html

2. http://java.sun.com/j2se/1.4.2/docs/api/ja...OptionPane.html

3. http://leepoint.net/notes-java/30GUI/35con...tionpane-2.html

Share this post


Link to post
Share on other sites

yang caffeine3x maksudkan ni aku rase javascipt la, bukan java.

pape pun, aku tak tau camne nak tuka title utk alert box tu tongue.gif

>_<

Share this post


Link to post
Share on other sites

aku pun rase camtu gak... btul ker kt title tuh tulis microFOST INTERNET EXPLORER???? ... erk.. applet kah?

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...