- 浏览: 121837 次
- 性别:
- 来自: 武汉
文章分类
最新评论
<script>function StorePage(){d=document;t=d.selection?(d.selection.type!='None'?d.selection.createRange().text:''):(d.getSelection?d.getSelection():'');void(keyit=window.open('http://www.365key.com/storeit.aspx?t='+escape(d.title)+'&u='+escape(d.location.href)+'&c='+escape(t),'keyit','scrollbars=no,width=475,height=575,left=75,top=20,status=no,resizable=yes'));keyit.focus();}</script>
This example creates a frame and draws an oval within the frame.
//导入awt和swing包,用于创建图形界面
import java.awt.*;
import javax.swing.*;
class BasicDraw extends JComponent {
public void paint(Graphics g) {
//创建一个Graphics2D对象
Graphics2D g2d = (Graphics2D)g;
//画椭圆
g2d.drawOval(0, 0, getSize().width-1,
getSize().height-1);
}
public static void main(String[] args) {
//创建主窗口
JFrame frame = new JFrame();
//添加一个匿名BasicDraw对象
frame.getContentPane().add(new BasicDraw());
int frameWidth = 300;
int frameHeight = 300;
frame.setSize(frameWidth, frameHeight);
frame.setVisible(true);
}
}
发表评论
-
解决struts开发中文乱码
2008-04-25 21:35 757<script>function StorePag ... -
swt-designer配置开发环境
2008-05-02 14:23 824<script>function StorePag ... -
Accessible抽象类的实现
2009-05-19 23:36 710<script>function StorePag ... -
Setting an Accessible Name for an Image Button
2009-05-20 23:52 601<script>function StorePag ... -
Setting a Description for Image Icons
2009-05-21 22:46 689<script>function StorePag ... -
Setting a Mnemomic for Buttons:为按钮设置助记符
2009-05-23 00:10 788<script>function StorePag ... -
Associating a Label with a Component:将标签与组件关联
2009-05-24 00:02 779<script>function StorePag ... -
The Quintessential Applet
2009-05-25 23:31 544<script>function StorePag ... -
Getting an Applet Parameter:获得一个applet参数
2009-05-27 00:24 756<script>function StorePag ... -
Making the Browser Visit a URL:让浏览器访问一个applet URL
2009-05-27 22:18 931<script>function StorePag ... -
Drawing Basic Shapes:画基本图形
2009-06-03 23:23 734<script>function StorePag ... -
Filling Basic Shapes:填充基本图形
2009-06-05 00:18 739<script>function StorePag ... -
Loading an Image:加载一幅图像
2009-06-05 23:56 622<script>function StorePag ... -
Drawing an Image:画一幅图
2009-06-07 00:56 747<script>function StorePag ... -
Drawing Simple Text:画简单的文本
2009-06-09 01:20 762<script>function StorePag ... -
Drawing Rotated Text:画旋转字
2009-06-10 00:48 794//Draw string rotated clockwise ... -
recruitbusiness_info.php源代码分析
2009-06-10 23:31 775<link href="css/sty ... -
Getting the Dimensions of Text:获取文本的长和宽
2009-06-11 00:32 647// From within the paint() m ... -
Drawing Anti-Aliased Text and Graphics:绘制反锯齿文字和图形
2009-06-12 00:44 884// Text only g2d.setRenderi ... -
Drawing with Alpha:使用alpha通道来绘图
2009-06-13 00:17 838drawGraphic1(g2d); // Set a ...
相关推荐
《The Quintessential PIC Microcontroller (Computer Communications and Networks)》一书深入探讨了PIC微控制器的基础、软件编程以及与外部世界的交互。以下是对该书部分关键知识点的详细解析: ### 数字表示...
Quintessential Media Player 5.0 简体中文汉化包 1.下载后将文件内Plugins文件夹解压至QMP安装目录内覆盖; 2.打开QMP,在Preferences→User Interface→Language内选择简体中文,保存即可。 本汉化包由[少昊]制作...
Write algorithms and program in the new field of quantum computing. This book covers major topics such as the physical components of a quantum computer: qubits, entanglement, logic gates, circuits, ...
支持大部分主流音乐格式,包括MP3、CD Audio、Ogg Vorbis、WAV、VQF、MP+、Windows Media和流音乐SHOUTcast等,不过有些格式需要另外安装播放插件。
In this program we are going to know how the server determines whether the password entered by the user is correct or not. This whole process is controlled on the server side. Multiple forms in jsp ...
This book is a quintessential material painstakingly compiled to help you master Tips and tricks of Excel VBA programming for effective strategies. It aids your professionalism and bails you out of ...
jQuery UI is the quintessential framework for creating professional user interfaces. While jQuery core lays the foundation for interaction with the DOM and handling events, jQuery UI fills in the user...
You will learn about Bokeh bindings for exploratory data analysis and quintessential machine learning with algorithms with Spark ML library. You'll get a sufficient understanding of Spark streaming, ...
Learn about the most important concepts surrounding web development as the mystic powers of jQuery are explained, allowing you to forgo this seemingly quintessential library in your software projects...
Winamp,Windows Media Player,Foobar2000,Apple iTunes,RealPlayer,Quintessential Player,Musicmatch Jukebox,MediaMonkey,The KMPlayer,JetAudio,Yahoo! Music Engine,Media Jukebox,BSPlayer 1、...
iscover how to program quintessential machine learning algorithms using Spark ML library. Work through steps to scale your machine learning models and deploy them into a standalone cluster, EC2, YARN...
Learn about the most important concepts surrounding web development as the mystic powers of jQuery are explained, allowing you to forgo this seemingly quintessential library in your software projects...
Matrix Chain Multiplication is perhaps the quintessential example of dynamic programming. The problem can be stated as follows: given a chain <A1, A2,..., An> of n matrices, where for i = 1, 2,....
Winamp、Windows媒体播放器、Foobar2000、Apple iTunes、RealPlayer、VLC Media Player、Songbird、Quintessential Player、Musicmatch Jukebox、MediaMonkey、KMPlayer、JetAudio、Yahoo! Music Engine、J. River ...
Quintessential Player 的几个有用的插件。 献给我们 Quintessential Player 的所有粉丝。
马尔可夫钢琴具有马尔可夫链/模型的连贯而合理的钢琴音乐生成基于@jsvine的绝对惊人的markovify软件包:也请检查类似的PLA项目: 您可以使用Quintessential Viterbi为Markov生成的乐曲生成漂亮的伴奏,如下面的漂亮...