📄 accountclient$saveevent.java
字号:
// Decompiled by Jad v1.5.7g. Copyright 2000 Pavel Kouznetsov.
// Jad home page: http://www.geocities.com/SiliconValley/Bridge/8617/jad.html
// Decompiler options: packimports(3) fieldsfirst ansi
// Source File Name: AccountClient.java
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.io.PrintStream;
import javax.naming.InitialContext;
import javax.rmi.PortableRemoteObject;
import javax.swing.JLabel;
import javax.swing.JTextField;
class saveEvent
implements ActionListener
{
public void actionPerformed(ActionEvent actionevent)
{
AccountClient.id = tid.getText();
AccountClient.date = tdate.getText();
AccountClient.vc = tvc.getText();
AccountClient.check = tcheck.getText();
AccountClient.amount = tamount.getText();
AccountClient.damount = Double.parseDouble(AccountClient.amount);
try
{
InitialContext initialcontext = new InitialContext();
Object obj = initialcontext.lookup("myAccount");
AccountHome accounthome = (AccountHome)PortableRemoteObject.narrow(obj, AccountClient.class$AccountHome != null ? AccountClient.class$AccountHome : (AccountClient.class$AccountHome = AccountClient.class$("AccountHome")));
Account account = accounthome.create(AccountClient.id, AccountClient.date, AccountClient.vc, AccountClient.check, AccountClient.damount);
result.setText("Account created");
}
catch(Exception exception)
{
System.out.println(exception);
}
}
saveEvent()
{
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -