本文整理汇总了Python中javax.swing.BorderFactory.createEtchedBorder方法的典型用法代码示例。如果您正苦于以下问题:Python BorderFactory.createEtchedBorder方法的具体用法?Python BorderFactory.createEtchedBorder怎么用?Python BorderFactory.createEtchedBorder使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类javax.swing.BorderFactory
的用法示例。
在下文中一共展示了BorderFactory.createEtchedBorder方法的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: run
# 需要导入模块: from javax.swing import BorderFactory [as 别名]
# 或者: from javax.swing.BorderFactory import createEtchedBorder [as 别名]
def run(self):
self.size = (200, 600)
self.contentPane.layout = awt.BorderLayout()
line = BorderFactory.createEtchedBorder(EtchedBorder.LOWERED)
Panel1=swing.JPanel(awt.FlowLayout(awt.FlowLayout.CENTER))
Panel1.setBorder(line)
label=swing.JLabel("")
label.setText("Liste des Puits")
Panel1.add(label)
menu = swing.JMenuBar()
Panel1.add(menu)
Panel2=swing.JPanel(awt.FlowLayout(awt.FlowLayout.CENTER))
Panel2.setBorder(line)
self.__displistwell = swing.JList(self.__listwell)
self.__displistwell.setVisibleRowCount(28)
self.__displistwell.setFixedCellWidth(150)
Panel2.add(self.__displistwell)
barre = swing.JScrollPane(self.__displistwell)
Panel2.add(barre)
Panel3=swing.JPanel(awt.FlowLayout(awt.FlowLayout.RIGHT))
Panel3.setBorder(line)
select = swing.JButton("Select", actionPerformed=self.__select)
Panel3.add(select)
close = swing.JButton("Close", size=(100, 70), actionPerformed=self.__close)
Panel3.add(close)
self.contentPane.add(Panel1, awt.BorderLayout.NORTH)
self.contentPane.add(Panel2, awt.BorderLayout.CENTER)
self.contentPane.add(Panel3, awt.BorderLayout.SOUTH)
示例2: run
# 需要导入模块: from javax.swing import BorderFactory [as 别名]
# 或者: from javax.swing.BorderFactory import createEtchedBorder [as 别名]
def run(self):
self.size = (200, 400)
self.contentPane.layout = awt.BorderLayout()
line = BorderFactory.createEtchedBorder(EtchedBorder.LOWERED)
Panel1=swing.JPanel(awt.FlowLayout(awt.FlowLayout.CENTER))
Panel1.setBorder(line)
label=swing.JLabel("")
label.setText("Liste des numeros de boites")
Panel1.add(label)
Panel2=swing.JPanel(awt.FlowLayout(awt.FlowLayout.CENTER))
Panel2.setBorder(line)
self.__displistnumb = swing.JList(self.__listnumb)
Panel2.add(self.__displistnumb)
barre = swing.JScrollPane(self.__displistnumb)
Panel2.add(barre)
Panel3=swing.JPanel(awt.FlowLayout(awt.FlowLayout.RIGHT))
Panel3.setBorder(line)
select = swing.JButton("Select", actionPerformed=self.__select)
Panel3.add(select)
close = swing.JButton("Close", size=(100, 70), actionPerformed=self.__close)
Panel3.add(close)
self.contentPane.add(Panel1, awt.BorderLayout.NORTH)
self.contentPane.add(Panel2, awt.BorderLayout.CENTER)
self.contentPane.add(Panel3, awt.BorderLayout.SOUTH)
示例3: run
# 需要导入模块: from javax.swing import BorderFactory [as 别名]
# 或者: from javax.swing.BorderFactory import createEtchedBorder [as 别名]
def run(self):
self.size = (800, 400)
self.contentPane.layout = awt.BorderLayout()
line = BorderFactory.createEtchedBorder(EtchedBorder.LOWERED)
Panel1=swing.JPanel(awt.FlowLayout(awt.FlowLayout.CENTER))
Panel1.setBorder(line)
label=swing.JLabel("")
label.setText("Liste des Images")
Panel1.add(label)
Panel2=swing.JPanel(awt.FlowLayout(awt.FlowLayout.CENTER))
Panel2.setBorder(line)
listtitles=[imp.getTitle() for imp in self.__listimp]
self.__listimages = swing.JList(listtitles)
self.__listimages.setFixedCellWidth(736)
self.__listimages.setVisibleRowCount(30)
barre = swing.JScrollPane(self.__listimages)
Panel2.add(barre)
Panel3=swing.JPanel(awt.FlowLayout(awt.FlowLayout.RIGHT))
Panel3.setBorder(line)
select = swing.JButton("Show Selected", actionPerformed=self.__select)
Panel3.add(select)
hide = swing.JButton("Hide Selected", size=(100, 70), actionPerformed=self.__hide)
Panel3.add(hide)
closeall = swing.JButton("Close All images", size=(100, 70), actionPerformed=self.__closeall)
Panel3.add(closeall)
self.contentPane.add(Panel1, awt.BorderLayout.NORTH)
self.contentPane.add(Panel2, awt.BorderLayout.CENTER)
self.contentPane.add(Panel3, awt.BorderLayout.SOUTH)
示例4: run
# 需要导入模块: from javax.swing import BorderFactory [as 别名]
# 或者: from javax.swing.BorderFactory import createEtchedBorder [as 别名]
def run(self):
self.size = (200, 300)
self.contentPane.layout = awt.BorderLayout()
line = BorderFactory.createEtchedBorder(EtchedBorder.LOWERED)
Panel1=swing.JPanel(awt.FlowLayout(awt.FlowLayout.CENTER))
Panel1.setBorder(line)
label=swing.JLabel("")
label.setText("Liste des noms de boites")
Panel1.add(label)
Panel2=swing.JPanel(awt.FlowLayout(awt.FlowLayout.CENTER))
Panel2.setBorder(line)
self.__displistnomb = swing.JList(self.__listnomb)
self.__displistnomb.setVisibleRowCount(14)
Panel2.add(self.__displistnomb)
barre = swing.JScrollPane(self.__displistnomb)
Panel2.add(barre)
Panel3=swing.JPanel(awt.FlowLayout(awt.FlowLayout.RIGHT))
Panel3.setBorder(line)
self.contentPane.add(Panel1, awt.BorderLayout.NORTH)
self.contentPane.add(Panel2, awt.BorderLayout.CENTER)
self.contentPane.add(Panel3, awt.BorderLayout.SOUTH)
示例5: run
# 需要导入模块: from javax.swing import BorderFactory [as 别名]
# 或者: from javax.swing.BorderFactory import createEtchedBorder [as 别名]
def run(self):
self.size = (200,300)
self.contentPane.layout = awt.BorderLayout()
line = BorderFactory.createEtchedBorder(EtchedBorder.LOWERED)
Panel1=swing.JPanel(awt.FlowLayout(awt.FlowLayout.CENTER))
Panel1.setBorder(line)
label=swing.JLabel("")
label.setText("Liste des Genes")
Panel1.add(label)
menu = swing.JMenuBar()
Panel1.add(menu)
Panel2=swing.JPanel(awt.FlowLayout(awt.FlowLayout.CENTER))
Panel2.setBorder(line)
self.__displistgenes = swing.JList(self.__listgenes)
self.__displistgenes.setVisibleRowCount(14)
self.__displistgenes.setFixedCellWidth(75)
Panel2.add(self.__displistgenes)
barre = swing.JScrollPane(self.__displistgenes)
Panel2.add(barre)
Panel3=swing.JPanel(awt.FlowLayout(awt.FlowLayout.RIGHT))
Panel3.setBorder(line)
self.contentPane.add(Panel1, awt.BorderLayout.NORTH)
self.contentPane.add(Panel2, awt.BorderLayout.CENTER)
self.contentPane.add(Panel3, awt.BorderLayout.SOUTH)
示例6: run
# 需要导入模块: from javax.swing import BorderFactory [as 别名]
# 或者: from javax.swing.BorderFactory import createEtchedBorder [as 别名]
def run(self):
self.size = (800, 1000)
self.contentPane.layout = awt.BorderLayout()
line = BorderFactory.createEtchedBorder(EtchedBorder.LOWERED)
Panel1=swing.JPanel(awt.FlowLayout(awt.FlowLayout.CENTER))
Panel1.setBorder(line)
Panel2=swing.JPanel(awt.FlowLayout(awt.FlowLayout.CENTER))
Panel2.setBorder(line)
panelistwell = ListeWellBis(self.__dicolistes["Wells"]).getContentPane()
Panel2.add(panelistwell)
panelistgenes = ListeGeneBis(self.__dicolistes["Genes"]).getContentPane()
Panel2.add(panelistgenes)
panelistnumb = ListeNumBBis(self.__dicolistes["Num_Boite"]).getContentPane()
Panel2.add(panelistnumb)
panelistnomb = ListeNomBBis(self.__dicolistes["Nom_Boite"]).getContentPane()
Panel2.add(panelistnomb)
panelistcond = ListeCondBis(self.__dicolistes["Condition"]).getContentPane()
Panel2.add(panelistcond)
panelistim = ListeImageBis(self.__dicolistes["Images"]).getContentPane()
Panel2.add(panelistim)
Panel3=swing.JPanel(awt.FlowLayout(awt.FlowLayout.CENTER))
Panel3.setBorder(line)
Panel4=swing.JPanel(awt.FlowLayout(awt.FlowLayout.CENTER))
Panel4.setBorder(line)
Panel5=swing.JPanel(awt.FlowLayout(awt.FlowLayout.RIGHT))
Panel5.setBorder(line)
close = swing.JButton("Close", size=(100, 70), actionPerformed=self.__close)
Panel5.add(close)
self.contentPane.add(Panel1, awt.BorderLayout.NORTH)
self.contentPane.add(Panel2, awt.BorderLayout.CENTER)
self.contentPane.add(Panel3, awt.BorderLayout.EAST)
self.contentPane.add(Panel4, awt.BorderLayout.WEST)
self.contentPane.add(Panel5, awt.BorderLayout.SOUTH)
示例7: run
# 需要导入模块: from javax.swing import BorderFactory [as 别名]
# 或者: from javax.swing.BorderFactory import createEtchedBorder [as 别名]
def run(self):
self.size = (1000, 400)
self.contentPane.layout = awt.BorderLayout()
line = BorderFactory.createEtchedBorder(EtchedBorder.LOWERED)
Panel1=swing.JPanel(awt.FlowLayout(awt.FlowLayout.LEFT))
Panel1.setBorder(line)
label=swing.JLabel("")
label.setText("Dossier")
Panel1.add(label)
self.__dispDossier = swing.JTextField(preferredSize=(400, 30), horizontalAlignment=swing.SwingConstants.LEFT)
self.__dispDossier.text = self.__selectdir
Panel1.add(self.__dispDossier)
browse = swing.JButton("Browse", actionPerformed=self.__browse)
Panel1.add(browse)
grid = awt.GridLayout()
grid.setRows(3)
grid.setHgap(1)
grid.setVgap(1)
Panel2=swing.JPanel(grid)
Panel2.setBorder(line)
label=swing.JLabel("Nom de la boite : ", horizontalAlignment=swing.SwingConstants.RIGHT)
Panel2.add(label)
self.__dispNomBoite = swing.JTextField(preferredSize=(200, 30), horizontalAlignment=swing.SwingConstants.CENTER)
self.__dispNomBoite.text = "20130227_102727_525"
Panel2.add(self.__dispNomBoite)
label=swing.JLabel("Numero de la boite : ", horizontalAlignment=swing.SwingConstants.RIGHT)
Panel2.add(label)
self.__dispNumBoite = swing.JTextField(preferredSize=(200, 30), horizontalAlignment=swing.SwingConstants.CENTER)
self.__dispNumBoite.text = ""
Panel2.add(self.__dispNumBoite)
label=swing.JLabel("Images :", horizontalAlignment=swing.SwingConstants.RIGHT)
Panel2.add(label)
self.__dispImage = swing.JTextField(preferredSize=(200, 30), horizontalAlignment=swing.SwingConstants.CENTER)
self.__dispImage.text = ""
Panel2.add(self.__dispImage)
label=swing.JLabel("Gene :", horizontalAlignment=swing.SwingConstants.RIGHT)
Panel2.add(label)
self.__dispGene = swing.JTextField(preferredSize=(150, 30), horizontalAlignment=swing.SwingConstants.CENTER)
self.__dispGene.text = ""
Panel2.add(self.__dispGene)
label=swing.JLabel("Well :", horizontalAlignment=swing.SwingConstants.RIGHT)
Panel2.add(label)
self.__dispWell = swing.JTextField(preferredSize=(150, 30), horizontalAlignment=swing.SwingConstants.CENTER)
self.__dispWell.text = ""
Panel2.add(self.__dispWell)
label=swing.JLabel("Condition :", horizontalAlignment=swing.SwingConstants.RIGHT)
Panel2.add(label)
self.__dispCond = swing.JTextField(preferredSize=(50, 30), horizontalAlignment=swing.SwingConstants.CENTER)
self.__dispCond.text = ""
Panel2.add(self.__dispCond)
Panel3=swing.JPanel(awt.FlowLayout(awt.FlowLayout.RIGHT))
Panel3.setBorder(line)
#on ajoute un bouton qui affiche le contenu de tous les wells d'une boite quelque soient les autres filtres, il utilise la calsse Boite
viewWells = swing.JButton("View all Wells", size=(100, 70), actionPerformed=self.__viewWells)
Panel3.add(viewWells)
View = swing.JButton("View Images", size=(100, 70), actionPerformed=self.__View)
Panel3.add(View)
generate = swing.JButton("Generate", size=(100, 70), actionPerformed=self.__generate)
Panel3.add(generate)
close = swing.JButton("Close", size=(100, 70), actionPerformed=self.__close)
Panel3.add(close)
help = swing.JButton("Help", size=(100, 70), actionPerformed=self.__help)
Panel3.add(help)
self.contentPane.add(Panel1, awt.BorderLayout.NORTH)
self.contentPane.add(Panel2, awt.BorderLayout.CENTER)
self.contentPane.add(Panel3, awt.BorderLayout.SOUTH)
示例8: run
# 需要导入模块: from javax.swing import BorderFactory [as 别名]
# 或者: from javax.swing.BorderFactory import createEtchedBorder [as 别名]
def run(self, cells, path) :
self.__cells=cells
cells.sort()
self.__cells.sort()
self.__path=path
if len(cells) <= 6 :
cols=len(cells)
rows=1
else :
cols=6
rows=int(len(cells)/6)+1
#print "cols", cols, "rows", rows
self.setFont(awt.Font("Courrier", 1, 10))
#self.size=(max(200*cols, 1100), max(70*rows, 300))
self.size=(max(150*cols, 800), max(50*rows, 250))
line = BorderFactory.createEtchedBorder(EtchedBorder.LOWERED)
self.contentPane.layout = awt.BorderLayout()
self.__display = swing.JTextField(preferredSize=(400, 30), horizontalAlignment=swing.SwingConstants.LEFT)
self.__setDisplay()
northpanel=swing.JPanel(awt.FlowLayout(awt.FlowLayout.LEFT))
northpanel.setBorder(line)
#northpanel.add(self.__display, awt.BorderLayout.NORTH)
northpanel.add(self.__display)
selectall = swing.JButton("select ALL", size=(100, 70), actionPerformed=self.__selectall)
#northpanel.add(selectall, awt.BorderLayout.WEST)
northpanel.add(selectall)
selectnone = swing.JButton("select NONE", size=(100, 70), actionPerformed=self.__selectnone)
#northpanel.add(selectnone, awt.BorderLayout.EAST)
northpanel.add(selectnone)
mem = swing.JButton("Memorize", size=(100, 70), actionPerformed= self.__memorize)
northpanel.add(mem)
recall = swing.JButton("Recall", size=(100, 70), actionPerformed=self.__recall)
northpanel.add(recall)
southpanel=swing.JPanel(awt.FlowLayout(awt.FlowLayout.RIGHT))
southpanel.setBorder(line)
self.__label=swing.JLabel("validate selection with ok")
southpanel.add(self.__label)
ok = swing.JButton("ok", size=(100, 70), actionPerformed=self.__ok)
southpanel.add(ok)
close = swing.JButton("close", size=(100, 70), actionPerformed=self.__close)
southpanel.add(close)
westpanel=swing.JPanel(awt.FlowLayout(awt.FlowLayout.CENTER), preferredSize=(150, 200))
westpanel.setBorder(line)
show = swing.JButton("show overlay", size=(100, 70), actionPerformed=self.__show)
westpanel.add(show)
hide = swing.JButton("hide overlay", size=(100, 70), actionPerformed=self.__hide)
westpanel.add(hide)
allframes = swing.JButton("show all", size=(100, 70), actionPerformed=self.__showall)
westpanel.add(allframes)
oneframe = swing.JButton("show one frame", size=(100, 70), actionPerformed=self.__showone)
westpanel.add(oneframe)
reset = swing.JButton("reset", size=(100, 70), actionPerformed=self.__reset)
westpanel.add(reset)
title = BorderFactory.createTitledBorder("Edit Cells")
title.setTitleJustification(TitledBorder.CENTER)
eastpanel = swing.JPanel(awt.FlowLayout(awt.FlowLayout.CENTER), preferredSize=(130, 200))
eastpanel.setBorder(title)
split = swing.JButton("split", size=(100, 70), actionPerformed=self.__split)
eastpanel.add(split)
grid = awt.GridLayout()
grid.setRows(rows)
checkpanel=swing.JPanel(grid)
checkpanel.setFont(awt.Font("Courrier", 1, 10))
self.__boxes=[swing.JCheckBox(actionPerformed=self.__boxaction) for i in range(len(cells))]
for b in self.__boxes : b.setFont(awt.Font("Courrier", 1, 10))
#self.__mem=[True for i in range(len(cells))]
for i in range(len(self.__boxes)) :
self.__dictBox[cells[i]]=(cells[i], self.__boxes[i])
for i in range(len(self.__boxes)) :
self.__boxes[i].setText(str(cells[i]))
self.__boxes[i].setSelected(True)
checkpanel.add(self.__boxes[i])
for i in range(rows*cols-len(self.__boxes)) : checkpanel.add(awt.Label(""))
self.contentPane.add(northpanel, awt.BorderLayout.NORTH)
self.contentPane.add(checkpanel, awt.BorderLayout.CENTER)
self.contentPane.add(westpanel, awt.BorderLayout.WEST)
self.contentPane.add(eastpanel, awt.BorderLayout.EAST)
self.contentPane.add(southpanel, awt.BorderLayout.SOUTH)
self.contentPane.setFont(awt.Font("Courrier", 1, 10))
self.__rm = RoiManager.getInstance()
if (self.__rm==None): self.__rm = RoiManager()
self.__rm.runCommand("reset")
listfilescells=[]
listfilescells.extend(glob.glob(path+"*.zip"))
#.........这里部分代码省略.........
示例9: run
# 需要导入模块: from javax.swing import BorderFactory [as 别名]
# 或者: from javax.swing.BorderFactory import createEtchedBorder [as 别名]
def run(self) :
self.size=(1100, 400)
self.contentPane.layout = awt.BorderLayout()
self.__display = swing.JTextField(preferredSize=(400, 30), horizontalAlignment=swing.SwingConstants.LEFT)
self.__setDisplay()
line = BorderFactory.createEtchedBorder(EtchedBorder.LOWERED)
northpanel1=swing.JPanel(awt.FlowLayout(awt.FlowLayout.LEFT))
northpanel1.setBorder(line)
northpanel1.add(self.__display)
new = swing.JButton("New", size=(100, 70), actionPerformed=self.__new)
northpanel1.add(new)
add = swing.JButton("Add", size=(100, 70), actionPerformed=self.__add)
northpanel1.add(add)
roiman = swing.JButton("Add Roi manager", size=(100, 70), actionPerformed= self.__addroi)
northpanel1.add(roiman)
end = swing.JButton("End", size=(100, 70), actionPerformed= self.__end)
northpanel1.add(end)
#grid = awt.GridLayout()
#grid.setRows(2)
#northpanel=swing.JPanel(grid)
#northpanel.add(northpanel1)
#northpanel2=swing.JPanel(awt.FlowLayout(awt.FlowLayout.LEFT))
grid0 = awt.GridLayout()
grid0.setRows(6)
northpanel2=swing.JPanel(grid0)
northpanel2.setBorder(line)
label=swing.JLabel("Label2")
label.setText("Line width ?")
northpanel2.add(label)
self.__display2 = swing.JTextField(preferredSize=(50, 30), horizontalAlignment=swing.SwingConstants.LEFT)
self.__display2.text = "11"
northpanel2.add(self.__display2)
label=swing.JLabel("Label3")
label.setText("Noise for peaks ?")
northpanel2.add(label)
self.__display3 = swing.JTextField(preferredSize=(50, 30), horizontalAlignment=swing.SwingConstants.LEFT)
self.__display3.text = "100"
northpanel2.add(self.__display3)
label=swing.JLabel("Label4")
label.setText("Fluo threshold ?")
northpanel2.add(label)
self.__display4 = swing.JTextField(preferredSize=(50, 30), horizontalAlignment=swing.SwingConstants.LEFT)
self.__display4.text = "170"
northpanel2.add(self.__display4)
#northpanel3=swing.JPanel(awt.FlowLayout(awt.FlowLayout.LEFT))
#northpanel3.setBorder(line)
label=swing.JLabel("Label5")
label.setText("Min of length ?")
northpanel2.add(label)
self.__display5 = swing.JTextField(preferredSize=(50, 30), horizontalAlignment=swing.SwingConstants.LEFT)
self.__display5.text = "50"
northpanel2.add(self.__display5)
label=swing.JLabel("Label6")
label.setText("Max of length ?")
northpanel2.add(label)
self.__display6 = swing.JTextField(preferredSize=(50, 30), horizontalAlignment=swing.SwingConstants.LEFT)
self.__display6.text = "500"
northpanel2.add(self.__display6)
dia = swing.JButton("DIA", size=(100, 70), actionPerformed= self.__dia)
northpanel2.add(dia)
fluo = swing.JButton("FLUO", size=(100, 70), actionPerformed= self.__fluo)
northpanel2.add(fluo)
southpanel=swing.JPanel(awt.FlowLayout(awt.FlowLayout.RIGHT))
southpanel.setBorder(line)
help = swing.JButton("Help", size=(100, 70), actionPerformed=self.__help)
self.__label=swing.JLabel("Label")
southpanel.add(self.__label)
close = swing.JButton("Close", size=(100, 70), actionPerformed=self.__close)
southpanel.add(help)
southpanel.add(close)
grid = awt.GridLayout()
grid.setRows(4)
checkpanel=swing.JPanel(grid)
checkpanel.setBorder(line)
self.__box0=swing.JCheckBox(actionPerformed=self.__boxaction0)
self.__box0.setText("Skip failed ROIs")
self.__box0.setSelected(False)
self.__box1=swing.JCheckBox(actionPerformed=self.__boxaction1)
self.__box1.setText("Mosaic")
self.__box1.setSelected(True)
#.........这里部分代码省略.........