文件名称:11
-
所属分类:
- 标签属性:
- 上传时间:2013-10-30
-
文件大小:1.12kb
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
整数多种进制形式相互转换,指定一种整数类型,以一种进制形式输入一个整数,将其及负数分别转换成其他进制形式显示-import java.awt.*
import java.awt.event.*
import javax.swing.*
import javax.swing.event.CaretListener
import javax.swing.event.CaretEvent
public class NumJFrame extends JFrame implements ActionListener
{
private JTextField text_ten,text_str1,text_two,text_str2,text_four,text_str3,text_eight,text_str4,text_sixth,text_str5
private MessageJDialog jdialog
private JButton button_ten,button_two,button_four,button_eight,button_sixth
public NumJFrame()
{
super("int整数多种进制相互转换")
this.setBounds(300,240,400,200)
this.setResizable(false)
this.setBackground(java.awt.Color.lightGray)
this.setDefaultCloseOperation(EXIT_ON_CLOSE)
this.getContentPane().setLayout(new GridLayout(4,3))
button_ten=new JButton("十进制")
button_ten.addActionListener(this)
text_ten.setHorizontalAlignment(JTextField.LEFT)
this.getContentPane().add(text_ten)
text_str1=new JTextField(50)
text_str1.setHorizontalAlignment(JTextField.LEFT)
text_str1.s
import java.awt.event.*
import javax.swing.*
import javax.swing.event.CaretListener
import javax.swing.event.CaretEvent
public class NumJFrame extends JFrame implements ActionListener
{
private JTextField text_ten,text_str1,text_two,text_str2,text_four,text_str3,text_eight,text_str4,text_sixth,text_str5
private MessageJDialog jdialog
private JButton button_ten,button_two,button_four,button_eight,button_sixth
public NumJFrame()
{
super("int整数多种进制相互转换")
this.setBounds(300,240,400,200)
this.setResizable(false)
this.setBackground(java.awt.Color.lightGray)
this.setDefaultCloseOperation(EXIT_ON_CLOSE)
this.getContentPane().setLayout(new GridLayout(4,3))
button_ten=new JButton("十进制")
button_ten.addActionListener(this)
text_ten.setHorizontalAlignment(JTextField.LEFT)
this.getContentPane().add(text_ten)
text_str1=new JTextField(50)
text_str1.setHorizontalAlignment(JTextField.LEFT)
text_str1.s
(系统自动生成,下载前可以参看下载内容)
下载文件列表
11.txt
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.