`
文章列表
JFreeChart是sourceforge 一个Java开源项目,是一个优秀的Java图表生成插件,它提供了在Java应用程序, Servlet和Jsp下生成各种图片格式的图表,包括柱形图,饼形图,线图,时序图等. JFreeChart依赖于另外一个项目: JCommon JFreeChart项目免费,但 ...
实现文本区文本自动显示到最后一行: JTextArea jta = new JTextArea(5,10); jta .selectAll(); jta .setCaretPosition(textPane.getSelectedText().length()); jta .requestFocus(); 下面是一个参考示例: import java.awt.*; import java.awt.event.*; import javax.swing.*; public class Demo extends JFrame { JTextPane textPane = new ...
import javax.swing.*; import javax.swing.border.Border; import java.awt.*; import java.awt.event.ActionListener; import java.awt.event.ActionEvent; import java.math.BigDecimal; import java.math.RoundingMode; import java.util.HashMap; /** * 我的计算器。MyCalculator 继承于 JFrame,是计算器的界面 */ public class MyC ...
package com.mengya.test.jfreechart; import java.awt.Font; import javax.swing.JPanel; import org.jfree.chart.ChartFactory; import org.jfree.chart.ChartPanel; import org.jfree.chart.JFreeChart; import org.jfree.chart.axis.CategoryAxis; import org.jfree.chart.plot.CategoryPlot; import org.jfree.chart ...
package com.yyh.jfreechart; import java.awt.Color; import java.awt.Font; import java.io.File; import java.io.FileOutputStream; import java.text.DecimalFormat; import java.text.NumberFormat; import org.jfree.chart.ChartFactory; import org.jfree.chart.ChartUtilities; import org.jfree.chart.JFreeChart ...
JFreeChart是开放源代码站点SourceForge.net上的一个JAVA项目,它主要用来生成各种各样的图表,这些图表包括:饼图、柱状图(普 通柱状图以及堆栈柱状图)、线图、区域图、分布图、混合图、甘特图以及一些仪表盘等等。这些不同式样的图表基本上可以满足目前的要求。该公司的主要产品有如下: 1、JFreeReport:报表解决工具 2、JFreeChart:Java图形解决方案(Application/Applet/Servlet/Jsp) 3、JCommon:JFreeReport和JFreeChart的公共类库 4、JFreeDesigner:JFreeReport ...
Eclipse plugin插件安装 Eclipse 是一个开放源代码的、基于 Java 的可扩展开发平台。就其本身而言,它只是一个框架和一组服务,用于通过插件组件构建开发环境。幸运的是,Eclipse 附带了一个标准的插件集,包括 Java 开发工具(Java Development Tools,JDT)。 目前正在做一个项目,采用eclipse作为开发工具,我用eclipse3.1.0的版本,感觉还不错,界面比较友好! eclipse提供了很多的插件,你可以到google上搜索一下,非常多,对于你得到了插件之后,如何进行插件(plugin)的安装呢? 以下说明我安装eclipse ...
package capture.selector; import java.awt.Image; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.awt.image.BufferedImage; import java.io.BufferedReader; import java.io.BufferedWriter; import java.io.File; import java.io.FileInputStream; import java.io.FileNotFoun ...
//鼠标单击事件无论什么时候都监听,即使按钮已经不能用了,事件依然走; //一般事件,在设置按钮不可用后就不在走了 例子很能说明问题: package eeeee; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.awt.event.MouseAdapter; import java.awt.event.MouseEvent; import javax.swing.JButton; import javax.swing.JFrame; import javax. ...
CpFrame.java ,CaptureScreenhh.java和icon.png CpFrame.java package captuhhhhh; import java.awt.Rectangle; import java.awt.Robot; import java.awt.Toolkit; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.awt.image.BufferedImage; import java.io.BufferedReader; imp ...
package chart; import java.awt.Font; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import javax.swing.JButton; import javax.swing.JFrame; import javax.swing.JLabel; import javax.swing.JPanel; import javax.swing.JScrollPane; import javax.swing.JTextField; import javax.swin ...
sitinspring原创,转载请注明作者及出处. JTable是Swing编程中很常用的控件,这里总结了一些常用方法以备查阅.欢迎补充,转载请注明作者与出处. 一.创建表格控件的各种方式: 1) 调用无参构造函数. JTable table = new JTable(); 2) 以表头和表数据创建表格. Object[][] cellData = {{"row1-col1", "row1-col2"},{"row2-col1", "row2-col2"}}; String[] columnName ...
void *memset(void *s,int c,size_t n) 总的作用:将已开辟内存空间 s 的首 n 个字节的值设为值 c。 这个函数通常用于清空所指长度的的内存。。。。 下面的例子是让所指的内存长度置为你想要的值 memset() 函数常用于内存空间初始化。如: char str[100]; memset(str,0,100); memset()的深刻内涵:用来对一段内存空间全部设置为某个字符,一般用在对定义的字符串进行初始化为‘ ’或‘/0’;例:char a[100];memset(a, '/0', sizeof(a)); memcpy用来做内存拷贝,你可以拿 ...
此函数功能为:把输入的字符串转换成数字。函数原型:unsigned long strtoul( const char *nptr, char endptr, int base ) 参数一 字符串的起始地址。参数二 返回字符串有效数字的结尾地址。如 123456ff789 则返回数字6的地址。参数三 转化基数。例:将十进制转化为二进制 #include <iostream> using namespace std; int main(int argc ,char* argv[]) { char* erjinzhi="1111"; char* p; int shij ...
还是英文来的的更加直接些。 Copy block of memory Copies the values of num bytes from the location pointed by source directly to the memory block pointed by destination. The underlying type of the objects pointed by both the source and destination pointers are irrelevant for this function; The result is a binar ...
Global site tag (gtag.js) - Google Analytics