KEIL软件程序里出现红色代表什么意思?

KEIL软件程序里出现红色代表什么意思?,第1张

KEIL软件编码界面里,红色的部分表示是一个语句标号

语句标号指出代码中的皮链一个特定位置,用于goto语句跳转目标。

示例如下:

main(void)

{

loop:  /*声明一个语句标局羡号*/

    printf("output a new line\n")

  燃腊孙  goto loop; /*下面跳转到语句标号loop处继续执行*/

}

求高手解答,我明明设置的3.jpg,但是显示却是1.jpg 怎么回事呢?代码如下

import java.awt.Graphics

import java.awt.Image

import javax.swing.ImageIcon

import javax.swing.JFrame

import javax.swing.JPanel

//写窗体记得这个一头三尾的结构

public class MainFrame extends JFrame {

BackPanel bgpan1 = new BackPanel()

JPanel pan = null

public MainFrame() {

this.setSize(786, 600)// 宽消核纯400px,高400px

Image image = new ImageIcon("img/2.gif").getImage()

this.setIconImage(image)

//设置标题栏上的图片为image

pan = (JPanel) this.getContentPane()

bgpan1.setLayout(null)

pan.add(bgpan1)

this.setTitle("停车场管理系统")

this.setResizable(false)//窗体大小不可改变

this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE)

//当窗体为退出和关闭状态拿咐的时候,程序也退出

this.setLocationRelativeTo( null)

//窗体位置相对于屏幕居中对齐

this.setVisible(true)// 设置窗体可观氏桐


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

原文地址: https://www.outofmemory.cn/yw/8182059.html

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

发表评论

登录后才能评论

评论列表(0条)

保存