如何使 Java 窗体中的属性更改在将项目导出为 Zip 文件时显示。

huangapple 未分类评论43阅读模式
英文:

how to make changes in properties in java frame appear when you export project to zip file

问题

我用 JavaFrame 制作了一个 Java 项目,并且我修改了对象的属性(例如,为一个按钮更改了字体颜色和字体格式),而且我还通过设计工具为标签添加了图片,而不是通过源代码。但问题是,当我将项目导出给我的老师时,界面的设计消失了,而且图片也不存在。我确保将这些图片放在了项目的一个文件夹中,并将项目导出为压缩文件。是否有一种方法可以使这些变更在源代码中显示出来?而不仅仅是在我的电脑上显示?

英文:

I made a project in java by javaFrame and I modified the properties of the objects(like font color and font format for a button for example) and I also added images not by code source instead I did it by design tool for a label. but the problem is that when I export the project to my teacher it was without design and the images do not exist. not that I put the images in a folder in the project and I exported the project as zip file.
is there is a method to make the changes appear in source code? not only in my lap?

huangapple
  • 本文由 发表于 2020年4月4日 05:50:02
  • 转载请务必保留本文链接:https://java.coder-hub.com/61020938.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定