Beispiel #1
0
 def createColorPanel(self, color, pane):
     colorPanel = JPanel()
     colorPanel.setBackground(color)
     colorPanel.addMouseListener(MouseProcessor(self, colorPanel))
     pane.add(colorPanel)
     return colorPanel
Beispiel #2
0
 def createColorPanel(self, color, pane):
     colorPanel = JPanel()
     colorPanel.setBackground(color)
     colorPanel.addMouseListener(MouseProcessor(self, colorPanel))
     pane.add(colorPanel)
     return colorPanel