- Cyclone-Engine-Source-Code This file includes the headers and sources codes of the Cyclode Physics Engine from the great ebook "Game Physics Engine Development" by Ian Millington
- auxiliary-network :构建了多信息感 辅f】JJ的网络遥操作机器人系统
- Intent_TestAction2 android下intent的使用方法
- windows-CustomScrollbar 利用windows消息控制
- jackson-all-1.9.9.jar spring mvc使用注解返回json数据时java jsonjar包(java sdssdfsdsafsdfsdfsdf)
- 193_Advanced_GDI_Programming_C_sharp CSharp advanced topics
文件名称:GourmetCoffeeGUI
-
所属分类:
- 标签属性:
- 上传时间:2012-11-16
-
文件大小:3.77kb
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
This Work graded 100
class SaveSalesListener implements ActionListener {
/**
* Saves the sales informations in a file.
*
* @param event the event object.
*/
public void actionPerformed(ActionEvent event) {
if (sales.getNumberOfOrders() == 0) {
statusTextArea.setText("No order has been sold.")
}
else {
fileChooser.setFileSelectionMode(JFileChooser.FILES_ONLY)
int result = fileChooser.showSaveDialog(null)
if (result != JFileChooser.APPROVE_OPTION) {
statusTextArea.setText("The sales information has " +
"not been saved.")
}
else {
File file = fileChooser.getSelectedFile()
try {
PrintWriter output = new PrintWriter(
new FileWriter(file))
output.print(salesFormatter.formatSales(sales))
output.close()
}
catch (IOException ioe) {
statusTextArea.setText("Error: Problem with I/O.") -This Work graded 100
class SaveSalesListener implements ActionListener {
/**
* Saves the sales informations in a file.
*
* @param event the event object.
*/
public void actionPerformed(ActionEvent event) {
if (sales.getNumberOfOrders() == 0) {
statusTextArea.setText("No order has been sold.")
}
else {
fileChooser.setFileSelectionMode(JFileChooser.FILES_ONLY)
int result = fileChooser.showSaveDialog(null)
if (result != JFileChooser.APPROVE_OPTION) {
statusTextArea.setText("The sales information has " +
"not been saved.")
}
else {
File file = fileChooser.getSelectedFile()
try {
PrintWriter output = new PrintWriter(
new FileWriter(file))
output.print(salesFormatter.formatSales(sales))
output.close()
}
catch (IOException ioe) {
statusTextArea.setText("Error: Problem with I/O.")
class SaveSalesListener implements ActionListener {
/**
* Saves the sales informations in a file.
*
* @param event the event object.
*/
public void actionPerformed(ActionEvent event) {
if (sales.getNumberOfOrders() == 0) {
statusTextArea.setText("No order has been sold.")
}
else {
fileChooser.setFileSelectionMode(JFileChooser.FILES_ONLY)
int result = fileChooser.showSaveDialog(null)
if (result != JFileChooser.APPROVE_OPTION) {
statusTextArea.setText("The sales information has " +
"not been saved.")
}
else {
File file = fileChooser.getSelectedFile()
try {
PrintWriter output = new PrintWriter(
new FileWriter(file))
output.print(salesFormatter.formatSales(sales))
output.close()
}
catch (IOException ioe) {
statusTextArea.setText("Error: Problem with I/O.") -This Work graded 100
class SaveSalesListener implements ActionListener {
/**
* Saves the sales informations in a file.
*
* @param event the event object.
*/
public void actionPerformed(ActionEvent event) {
if (sales.getNumberOfOrders() == 0) {
statusTextArea.setText("No order has been sold.")
}
else {
fileChooser.setFileSelectionMode(JFileChooser.FILES_ONLY)
int result = fileChooser.showSaveDialog(null)
if (result != JFileChooser.APPROVE_OPTION) {
statusTextArea.setText("The sales information has " +
"not been saved.")
}
else {
File file = fileChooser.getSelectedFile()
try {
PrintWriter output = new PrintWriter(
new FileWriter(file))
output.print(salesFormatter.formatSales(sales))
output.close()
}
catch (IOException ioe) {
statusTextArea.setText("Error: Problem with I/O.")
(系统自动生成,下载前可以参看下载内容)
下载文件列表
GourmetCoffeeGUI.java
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.