为什么佳明235安装了小程序single sun field后特别费电

为什么佳明235安装了小程序single sun field后特别费电,第1张

解决耗电太快的办法:

一手机使用时间过长,电池也没有那么耐用了。更换电池。

二后台开启听APP太多了,可以用腾讯手机管家的小火箭进行清理加速,关闭暂时不使用的后台程序

三启用腾讯手机管家的省电管理功能进行电源管理。

四不使用网络的时候,关闭WIFI连接,以及数据连接。

五白天的时候屏幕的亮度不要调到最亮,这样也可以节省电量。

import javaappletApplet;

import javaawtButton;

import javaawtColor;

import javaawtGraphics;

import javaawtTextField;

import javaawteventActionEvent;

public class Nicki extends Applet{

private static final long serialVersionUID = 1L;

private Button ok;

private int num=32;

private int resu=0;

private boolean isRig=false;

private TextField iPut;

public Nicki(){

thissetLayout(null);

ok=new Button("OK");

oksetActionCommand(getName());

oksetBounds(150, 150, 40, 20);

iPut=new TextField();

thisadd(iPut);

iPutsetBounds(100, 150, 40, 20);

thisadd(ok);

okaddActionListener(new ButtonAction(this));

}

public void paint(Graphics g){

gsetColor(Colorwhite);

gfillRect(0, 0, thisgetWidth(), thisgetHeight());

gsetColor(ColorBLACK);

gdrawString("Please guess a number ", 10, 20);

gdrawString("between 1 and 100", 10, 40);

if(isRig==false&&resu!=0){

if(resu>num){

gdrawString(""+resu+" is too big !", 10, 100);

}else if(resu<num){

gdrawString(resu+"is too small !", 10, 100);

}

}else if(isRig==true){

gsetColor(ColorGREEN);

gdrawString("Yes,"+resu+" is the right number", 10, 80);

gdrawString("Your are great! ", 10, 100);

gsetColor(Colorred);

gdrawString(resu+"!", 70, 120);

}

iPutsetText("");

gdrawString("Input the number:", 0, 150);

}

public void ButtonActionPerformed(ActionEvent e){

if(egetActionCommand()equals("panel0")){

resu=IntegerparseInt(iPutgetText());

if(num==resu){

isRig=true;

}else{

isRig=false;

}

repaint();

}

}

}

class ButtonAction implements javaawteventActionListener{

Nicki su;

public ButtonAction(Nicki bun){

thissu=bun;

}

public void actionPerformed(ActionEvent e) {

suButtonActionPerformed(e);

}

}

import javaapplet;

import javaawt;

import javaawtevent;

public class SmallApplet extends Applet implements ActionListener

{

Label lb1,lb2;

Button btn1,btn2;

TextField tf1;

TextArea ta1;

public void init()

{

lb1=new Label("请在文本框中输入内容!");

lb2=new Label("文本区显示的内容为:");

btn1=new Button("提交");

btn2=new Button("退出");

tf1=new TextField(20);

ta1=new TextArea();

add(lb1);

add(tf1);

add(lb2);

add(ta1);

add(btn1);

add(btn2);

setLayout(new FlowLayout());

setSize(600,400);

setVisible(true);

btn1addActionListener(this);

btn2addActionListener(this);

}

public void actionPerformed(ActionEvent e)

{

if(egetSource()==btn1)

{

ta1setText(tf1getText());

}

if(egetSource()==btn2)

{

Systemexit(0);

}

}

}

以上就是关于为什么佳明235安装了小程序single sun field后特别费电全部的内容,包括:为什么佳明235安装了小程序single sun field后特别费电、求一个java applet小程序的源代码、编写一个Java Applet小程序---请帮个忙,谢谢等相关内容解答,如果想了解更多相关内容,可以关注我们,你们的支持是我们更新的动力!

欢迎分享,转载请注明来源:内存溢出

原文地址: https://outofmemory.cn/zz/9880979.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2023-05-03
下一篇 2023-05-03

发表评论

登录后才能评论

评论列表(0条)

保存