Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

对GUI的修改意见 #2

Open
ChristinaLJC opened this issue Nov 26, 2021 · 7 comments
Open

对GUI的修改意见 #2

ChristinaLJC opened this issue Nov 26, 2021 · 7 comments
Assignees

Comments

@ChristinaLJC
Copy link
Collaborator

因为还不知道有哪些功能,所以GUI暂时就先设计成这样

@CutieDeng CutieDeng self-assigned this Nov 26, 2021
@CutieDeng
Copy link
Owner

已经收到你的更新,我遇到了如下问题:

  1. corretto-1.8 疑似没有提供 JAVAFX 的支持。我无法运行你提供的代码文件。

下面是一些建议:

  • 图片等不可变(immutable)资源建议在 res 文件夹中创建新的文件夹保存。
  • res 负责描述小型的资源,纳入 git 管理中,大型文件(如:数据库文件)我们将不纳入 git 中管理。

@ChristinaLJC
Copy link
Collaborator Author

对建议的回复:
最开始使用的图片确实是放在与src同级的res目录下方的,但是在程序中,图标icon的new Image("/picture/icon1.png")的默认路径是从src开始的,若将图片放在res下,将找不到路径。可能这个设置图标的路径也有别的写法,但我不太会,如果你知道如何修改,可以给我举个例子?

@CutieDeng
Copy link
Owner

通过 .. 描述可以获取上级目录的信息。

@ChristinaLJC
Copy link
Collaborator Author

在网上搜了搜,似乎要这样写new Image("file:"+System.getProperty("user.dir")+"/res/picture/icon1.png"),目前已经可以执行了。
原因是原来网络图像文件前面加“http:”,而本地文件则要加“file:”

@ChristinaLJC
Copy link
Collaborator Author

现在GUI有两个问题:
1.点击表或者graph后,弹出窗口,仍然不支持全屏模式,我试了很久,没解决
2.在创建默认的表和graph时,表和graph的编号是连续的,也就是table1,graph2,graph3,table4......是否需要改为table1,graph1,graph2,table2这样的?

@CutieDeng
Copy link
Owner

现在GUI有两个问题: 1.点击表或者graph后,弹出窗口,仍然不支持全屏模式,我试了很久,没解决 2.在创建默认的表和graph时,表和graph的编号是连续的,也就是table1,graph2,graph3,table4......是否需要改为table1,graph1,graph2,table2这样的?

已经了解这两个问题,这是建议的解决方案:

  1. 考虑更换弹出窗口的方式,或者参考其他人(例如 IDEA)的实现方式。
  2. 创建一个特殊的编码递增管理器,让它负责相关的系数维护。例如,传入参数 'graph', 它自动生成 graph01 标签名的功能。注意:它不应当只能创建 graph, table 前缀的标签页名,应该支持任何(非数字结尾)的标签前缀数字维护。

@ChristinaLJC
Copy link
Collaborator Author

问题一仍然解决不了,问题二已解决

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants