如何在java中删除文本和图像 [英] How to remove text and image in java

查看:63
本文介绍了如何在java中删除文本和图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好。

我想在java中制作简单的游戏并使用: -

1)text(NEXT,50,50); ---写文字和

2)image(Popups.jpg,50,50); ---插入图像



但我用什么代码删除它以便我可以插入新的文本和图像。

Hello everyone.
I want to make simple game in java and i use:-
1) text("NEXT", 50,50); --- to write text and
2) image("Popups.jpg", 50, 50); --- to insert an image

But what code do i use to remove it so that i can insert new text and image.

推荐答案

你在哪里放置组件?



通常一个人将它们放在某种面板上 - 可以重新粉刷/刷新提供新状态。



请改进问题并发布一些实际代码。
Where did you place the Components?

Normally one does place them on some kind of Panels - which can be repainted / refreshed and present a new status.

Please "improve question" and post a bit of your actual code.


这篇关于如何在java中删除文本和图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆