与目标虚拟机断开连接,地址:'127.0.0.1:60359',传输:'socket'
进程结束,退出代码为130(被信号2:SIGINT中断)
我哪里错了?我能做什么?Intellij的更新没有改变任何事情。
package suggests.deleteCorrectItem;
import javax.swing.*;
import java.awt.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.util.ArrayList;
public class Main extends JFrame{
public ArrayList<Integer> alInteger = new ArrayList<Integer>();
public ArrayList<ContPanel> alContPanel = new ArrayList<ContPanel>();
public JPanel mainPanel = new JPanel();
public int widthFrame = 700;
public int heightFrame = 120;
public Dimension dimensionFrame = new Dimension(widthFrame, heightFrame);
public JScrollPane jScrollPane;
public JButton jButtonDeleteAll = new JButton();
public DeleteListener deleteListener = new DeleteListener();
public ContPanel contPanel;
public static void main(String[] args){
Main myMain = new Main();
}
public Main(){
frameInitialization();
setBackground(Color.BLUE);
mainPanel.setBackground(Color.red);
initObjects();
buildLayout();
setVisible(true);
}
public void frameInitialization(){
this.setTitle("fenêtre de test");
this.setSize(dimensionFrame);
this.setResizable(true);
this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
addScrollPaneFrame();
}
public void addScrollPaneFrame(){
jScrollPane = new JScrollPane(mainPanel);
jScrollPane.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_NEVER);
jScrollPane.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED);
add(jScrollPane);
}
public void initObjects(){
for ( int i = 0; i< 15;i++){
alInteger.add(i);
contPanel = new ContPanel(alInteger.get(i));
contPanel.setBackground(Color.green);
alContPanel.add(contPanel);
}
jButtonDeleteAll.addActionListener(deleteListener);
}
public void buildLayout(){
mainPanel.setLayout(new BoxLayout(mainPanel, BoxLayout.PAGE_AXIS));
jScrollPane.add(mainPanel);
fillOfContPanel();
setContentPane(jScrollPane);
}
public void fillOfContPanel(){
for (int i = 0; i< alInteger.size(); i++){
mainPanel.add(alContPanel.get(i));
}
}
class ContPanel extends JPanel{
public Integer integ;
public JLabel jLabel = new JLabel();
public JCheckBox jCheckBox = new JCheckBox();
public ContPanel(Integer integ){
setBackground(Color.BLACK);
this.integ = integ;
jLabel.setText(this.integ.toString());
add(jLabel);
add(jCheckBox);
}
}
class DeleteListener implements ActionListener {
@Override
public void actionPerformed(ActionEvent actionEvent) {
mainPanel = new JPanel();
for(int i = alContPanel.size()-1; i>= 0 ; i--){
if(alContPanel.get(i).jCheckBox.isSelected()){
alInteger.remove(i);
alContPanel.remove(i);
}
}
}
}
}
我已经发现了问题。项目命令。我找回了agressive的颜色
如果它能帮助某人
我改变了很多东西...
package suggests.deleteCorrectItem;
import javax.swing.*;
import java.awt.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.util.ArrayList;
public class Main extends JFrame{
/**
This little project shows the display of elements from an arrayList
with a dedicated checkbox for each of them to select them. The user the items to remove and
clicks the jButton.
The selected items disappear.
*/
public ArrayList<Integer> alInteger = new ArrayList<Integer>();
public ArrayList<ContPanel> alContPanel = new ArrayList<ContPanel>();
public JPanel mainPanel = new JPanel();
public int widthFrame = 700;
public int heightFrame = 600;
public Dimension dimensionFrame = new Dimension(widthFrame, heightFrame);
public JScrollPane jScrollPane;
public JButton jButtonDeleteAll = new JButton("Delete all selected items");
public DeleteListener deleteListener = new DeleteListener();
public ContPanel contPanel;
public static void main(String[] args){
Main myMain = new Main();
}
public Main(){
frameInitialization();
initObjects();
buildLayout();
setVisible(true);
}
public void frameInitialization(){
this.setTitle("fenêtre de test");
this.setSize(dimensionFrame);
this.setResizable(true);
this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
}
public void addScrollPaneFrame(){
jScrollPane = new JScrollPane(mainPanel);
jScrollPane.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_NEVER);
jScrollPane.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED);
add(jScrollPane);
}
public void initObjects(){
for ( int i = 0; i< 15;i++){
alInteger.add(i);
contPanel = new ContPanel(alInteger.get(i));
alContPanel.add(contPanel);
}
jButtonDeleteAll.addActionListener(deleteListener);
}
public void buildLayout(){
mainPanel.setLayout(new BoxLayout(mainPanel, BoxLayout.PAGE_AXIS));
addScrollPaneFrame();
displayComponents();
}
public void refreshMainPanel(){
clearMainPanel();
displayComponents();
}
public void displayComponents() {
fillOfContPanel();
mainPanel.add(jButtonDeleteAll);
setContentPane(jScrollPane);
}
public void clearMainPanel(){
mainPanel.removeAll();
}
public void fillOfContPanel(){
for (int i = 0; i< alInteger.size(); i++){
mainPanel.add(alContPanel.get(i));
}
}
class ContPanel extends JPanel{
/**
this class represents the item for a specific element of
an arrayList with a dedicated checkbox.
*/
public Integer integ;
public JLabel jLabel = new JLabel();
public JCheckBox jCheckBox = new JCheckBox();
public ContPanel(Integer integ){
this.integ = integ;
jLabel.setText(this.integ.toString());
add(jLabel);
add(jCheckBox);
}
}
class DeleteListener implements ActionListener, Runnable {
/**
*
* @param actionEvent
this class allows to remove the selected items
and display the mainPanel after deletion.
*/
@Override
public void actionPerformed(ActionEvent actionEvent) {
run();
}
@Override
public void run() {
for(int i = alContPanel.size()-1; i>= 0 ; i--){
if(alContPanel.get(i).jCheckBox.isSelected()){
alInteger.remove(i);
alContPanel.remove(i);
}
refreshMainPanel();
}
}
}
}
问题内容: 我正在运行一个python脚本,它曾经可以运行(现在甚至可以在我的另一台笔记本电脑上运行),但是在我当前的计算机上却不行-我只收到错误代码: 我没有得到任何其他结果-甚至从文件开头的“打印”命令也没有得到。 我还没有找到特定的东西。我重新安装了python(2.7.9),pygame(1.9.1)甚至pycharm(首先尝试4.5,现在使用5.0-相同的结果) 有人知道该错误代码意味着
本文向大家介绍IDEA进程已结束,退出代码-1073741819 (0xC0000005)的bug,包括了IDEA进程已结束,退出代码-1073741819 (0xC0000005)的bug的使用技巧和注意事项,需要的朋友参考一下 由于昨天要写的文章没有写完,于是今天早上我四点半就“自然醒”了,心里面有事,睡觉也不安稳。洗漱完毕后,我打开电脑,正襟危坐,摆出一副要干架的态势,不能再拖了。 要写的文
问题内容: 我正在尝试执行Python脚本,但出现以下错误: 我在Linux Mint 18.1 Serena OS上使用python 3.5.2 谁能告诉我为什么会这样,我该如何解决? 问题答案: SIGSEGV信号指示“分段违反”或“分段错误”。或多或少,这等同于对该过程中未映射的内存地址的读取或写入。 这表明程序中存在错误。在Python程序中,这可能是解释程序中的错误,也可能是所使用的扩展
我使用数据帧合并3次以获得我想要的结果 当我尝试做第三个合并选项时,我得到以下错误; 过程结束,退出代码137(被信号9:SIGKILL中断) 我如何克服这个问题?
当我在PyCharm中手动停止脚本时,进程以退出代码137结束。但是我没有停止剧本。还有出口代码137。有什么问题? Python版本是3.6,在运行xgboost.train()方法时进程完成。