must be replaced with a new one.Gg = Bi. getgraphics ();// The paint brush is white by default.GG. setcolor (mycolor );// To prevent a messy image from being opened, process it.This. xbegin = 100;This. ybegin = 0;This. xend = 0;This. yend = 0;This. repaint ();}Catch (exception ex){Ex. printstacktrace ();}}}Else if (E. getsource () = This. butsave) // save{Int I = jfc. showsavedialog (this. F );If (I = jfilechooser. approve_option){Try{// Save the image// Parameter Buffer location of the image t
JS The following example shows the use of JavaScript to change the applet state and invoke the method in the applet in JavaScript.
One, the applet source code (TMIN_JS2.JAVA)
Import
Import Java.awt.Graphics;
Import java.awt.Event;
LiveConnect for JavaScript
Not used ... (IT ' s more simple)
public class Tmin_js2 e
IPreparations before the first example:1. there must be a Java compiler, which can be SUN's JDK compiler, Microsoft's VJ ++, or a compiler developed by some other companies, but it is best to choose VJ ++, because it is now the best Java compiler.
2. A text compiling software, which is available on general machines, can be used in notepad. If it is VJ ++, you can skip this step. If it is JDK, you 'd bet
[Document Introduction] display text is the most basic function in Java. It is very simple to support text display.Display text is the most basic function in Java. It supports text display in a very simple way. You only need to use the drawString () function in Graphics. Let's look at the simplest example of ghq:
// Ghq. javaImport java. awt .*;Import
Using Java to control the operation of an application (take NetEase cloud Music as an example), the steps are as follows1, the establishment of BAT file is Start.bat (control program Operation) and Kill.bat (control program end);The Start.bat content is as follows, the function is to run the Program:cmd/c start f:\\00 NetEase Cloud Music \\CloudMusic\\cloudmusic.exeexitDepending on the situation, you can rewrite the installation path for your Applicat
Usually we will browse some Web page content in the browser, when we see the wonderful article information will also be copied and pasted form to save, but there are users in the Copy page content prompts "Cannot copy" problem, this gives us to collect web content to bring trouble, in fact, we can through Win7 64-bit Browser Internet zone disables Java applet script to solve the problem of Web page content
JAVA card application development is not hard ( 2 ) first JAVA Program creation
InEclipseAfter the environment is configured, you can startJavaCard application development. First create a newJava card project. Follow the prompts to enter the project name "testproject", package name "testpackage", and Applet Class Name "testclass ".
CreateJavaC
Title: Imitate the Javaapparguments.java instance, write a program that accepts multiple numbers from the command line, and then outputs the sum.1. Design IdeasThe parameters you enter are strings, and you want to make them into numbers before you add them. Because you do not know how many parameters to enter, enter n for the For loop. Finally, the sum of these numbers is entered and the final sum is obtained.2. Program FlowchartDefine the number of a
Operation Result:650) this.width=650; "src=" http://img.blog.csdn.net/20150724144448636 "alt=" here write a picture describing "title=" "/>650) this.width=650; "src=" http://img.blog.csdn.net/20150724144516764 "alt=" here write a picture describing "title=" "/>This article is from the "Sanghaidan blog column" blog, please be sure to keep this source http://10602803.blog.51cto.com/10592803/1683073Add button
1 Public classJAVA2 {3 Public Static voidMain (string[] args)4 {5System.out.println ("----------------------");6System.out.println ("| | I want to learn | |);7System.out.println ("| | Java language | |);8System.out.println ("----------------------");9 }Ten}A simple Java applet that outputs multiple linesPublic class
Applets are small programs that run in a browser, and Java is also popular in the world from applets. By writing this applet, we can learn the following knowledge:
1. Applet and the main interface in JApplet
2. Image loading and Mediatracker use
3. Use of threads and direct communication with multiple threads
4. Use of the Thread.Join () method
5. Use of vol
In Linux, Firefox uses Java Applet and many release versions will automatically handle this issue, but I like to use another Firefox, because it is very convenient to download and decompress Firefox, in Linux, JDK or JRE must be installed before Firefox uses the applet. the Firefox 3.6 series will no longer support the Java
Today, I am going to try out the VPN provided by the company. The last step has encountered a tangled problem.
The prompt is displayed in chrome.
Since the installation of Java 7 will make Java 6 unavailable, use Java 6.
However, on the java6 download page, the system prompts that Apple's Java has been inte
Recently, the 2.0 EDEP of the PBoC was reconstructed, and dozens of details were changed according to customer's needs.The object-oriented understanding is somewhat deepened during the change process.For example, to avoid two class interdependencies, you can use a interface center as a decoupling.Due to the limited space in the card, resource shortage, in the design should be careful to avoid the inheritance hierarchy too deep.Personal feelings, due to limited resources, are unlikely to be used
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.