Most of our features and services are available only to members, so we encourage you to login or register a new account. Registration is free, fast and simple. You only need to provide a valid email. Being a member you'll gain access to all member forums and features, post a message to ask question or provide answer, and share or find resources related to mobile phones, tablets, computers, game consoles, and multimedia.
All that and more, so what are you waiting for, click the register button and join us now! Ito ang website na ginawa ng pinoy para sa pinoy!
w0w galing ng thread na ito,..
mag post ako d2 pag balik na ako sa skwela..
java yung lecture namin ..wla ako naintindihan,,
nagchu tchutor din ba kayo ng java>>?? ehehhe
para nman gumaling ako pag may ibingay yung prof. namin masagot ko agaD
pwede po ba?? kahit basics lng yung "java.out.prinln"
>>yup, STI-Pagadian ako, grad na 2 years nga lang,,, fun lang talaga ako sa programming... yung knowledge indi 100% makukuha sa skul..w0w galing mo toL... iDoL
sa STI po ba kayo nag araL?? ako din eh sa sti nag aral ngayon 1st yr pa lang
>>search mo sa google sir... di bale, may TCLite ako kaso nasa haus, office kasi ako nagnet...,, week end lang ako sa hauz ng parents ko po..,,, married na kasi, sa office lang may computer....HEllo po.
Nag sisimula pa lng po ako sa c programming. san po kaya ako pwede mag download ng copy ng turbo c...? para po makapag practice sana. thanks
>> maaasahan nyo po sir na asap ang sagot as long as kuha ko yong problem mo... online ako from mondays to friday 8:00am-5:00pm pag wala mga students ko ginagawa ko yung mga problem gaya nung ibang thread taz naisipan ko gumawa ng sariling thread para isang thread lang papasukan ko in terms of programming.... welcome sir!hm.. w8 lang po ha... kc medyo meron din ako hnd maintindihan sa programming namin eh... ka2inis... meron kc ung iba kahit na intindihin mo eh mahirap tlaga intindihin... kea otor... patulong nlang po ako kung meron man akong maipapatulong sau... asap po ba ang sagot d2.. tnx po...................
>>yup, im using DevC++ now, nag DL talaga ako kasi kadalasan sa mga C++ programming ngayon gumagamit ng DEV,,, ewan ko lang sa STI kasi TCLite kase at Borlan kadalasan pag C programming....gumagamit ka rin ba ng dev c++?? kung oo patulong din minsan ah!
mga master help naman po sa assignment ko sa Java program
kelangan k po kc pgsamhin ung dalawang program in 1...Kelngan po kc ung Sa menu ng JFrame pag click mo dun sa menu item(ex. Save) eh may lalabas na another frame pero ung may label , textfield and button naman po.....un lng po....sana mka help kyo need ko lng po tlga....tnx in advance
dispose(); \\ ito yung code to hide your recent frame
new newFrame(); \\ codes to call another frame
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
public class ServerLogin extends JFrame implements ActionListener{
JTextField user = new JTextField(10);
JPasswordField pass = new JPasswordField(10);
JLabel luser = new JLabel("Username:");
JLabel lpass = new JLabel("Password:");
JButton login = new JButton("Login");
JButton cancel = new JButton("Cancel");
public ServerLogin(){
super("Login");
setResizable(false);
Container container = getContentPane();
container.setLayout(new GridLayout(3,2,5,5));
container.add(luser);
container.add(user);
user.addActionListener(this);
container.add(lpass);
container.add(pass);
pass.addActionListener(this);
container.add(login);
login.addActionListener(this);
container.add(cancel);
cancel.addActionListener(this);
pack();
setVisible(true);
}
public void actionPerformed(ActionEvent event){
String usr = "ferlou";
String pss = "password";
if(event.getSource()==cancel){
dispose();
}
if(event.getSource()==login){
// if(usr == user.getText() ){
// if(pss == pass.getText() ){
dispose();
new ServerMonitor();
// }
// else{
System.out.print("Wrong Password");
// }
// }
// else{
System.out.print("User not Registerd " + user.getText() + " " + usr);
// }
}
}
public static void main(String[] arg){
new ServerLogin();
}
}
>> ito yung unang lalabas na frame taz pag perform nya nung dispose(); eh macoclose yung ServerLogin.java taz sa code na
new ServerMonitor(); ay lalabas yung ServerMonitor.java na may mga codes na rin at isang Java file rin....
ahh.. okie d.i.t. mAn akong course toL, heheh 2 yrs jApun..
pLano bya unta ko mubalhin ug dcet kay ang programming pede ra man sa balay tun-an..
..
san ka nagskul pre?? lapit lang ata kasi nagbisaya ka...,,, baka taga pagadian ka rin kababayan! hehe
taga iligan ko toL,, sti ilgan
wow tnx po...need ko tlaga to...nxt week na pass namin...cge po try ko to sa bahay,nsa com. shop kxe aq ngaun....sana po gumana....slamat po....sabihin ko tom kng tama oh hnd....TC
@OP
May question ako. Sa Java, ano bang pinagkaiba ng hide at dispose? At pano ko ito magagawa through JButtons? Kasi sa ngayon, nagagawa ko lang siya sa setDefaultCloseOperation(); na method. E kaso sa X button lang naman yun nag-aapply at hindi sa JButton.
At ano rin pala ang IDE na gamit niyo sa pag-gawa ng Java apps?
TIA
uu nga pala, yung dispose(); ay ma terminate yung recent frame na nakarun,,, maaaply mo sa JButton yung dispose na code..,,, sample pag may JButton ka na gamit mo para mag exit, simply lagyan mu ng code na dispose(); yung event ng JButton mo po,,, just take a look nung code ko na ServerLogin.java sa previous page ng thread na to po