Перенос.

This commit is contained in:
2023-09-17 22:13:42 +03:00
parent dd2e0ca7e0
commit 629d8b8477
1239 changed files with 61161 additions and 1 deletions

View File

@@ -0,0 +1,38 @@
package Visual_DVM_2021.UI.Main;
import Visual_DVM_2021.Passes.PassCode_2021;
import Visual_DVM_2021.UI.Interface.CommentInterface;
import javax.swing.*;
public class CommentTabs implements CommentInterface {
private JPanel comment;
private JTabbedPane tabs;
private JPanel editorPanel;
private JPanel additionPanel;
public CommentTabs() {
tabs.setTabComponentAt(0, new TabToolBar("Комментарий", PassCode_2021.SaveBugReportComment) {
@Override
public void leftMouseAction() {
tabs.setSelectedIndex(0);
}
});
tabs.setTabComponentAt(1, new TabToolBar("Дополнение", PassCode_2021.AppendBugReportComment) {
@Override
public void leftMouseAction() {
tabs.setSelectedIndex(1);
}
});
}
@Override
public void setEditorScroll(JScrollPane scroll_in) {
editorPanel.add(scroll_in);
}
@Override
public void setAdditionScroll(JScrollPane scroll_in) {
additionPanel.add(scroll_in);
}
@Override
public JPanel getContent() {
return comment;
}
}