Python java.awt.GridBagLayout() Examples
The following are 4
code examples of java.awt.GridBagLayout().
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example.
You may also want to check out all available functions/classes of the module
java.awt
, or try the search function
.
![](https://www.programcreek.com/common/static/images/search.png)
Example #1
Source File: SpyDir.py From SpyDir with MIT License | 5 votes |
def p_build_ui(self, event): """ Adds a list of checkboxes, one for each loaded plugin to the Selct plugins window """ if not self.loaded_p_list: self.update_scroll("[!!] No plugins loaded!") return scroll_pane = JScrollPane() scroll_pane.setPreferredSize(Dimension(200, 250)) check_frame = JPanel(GridBagLayout()) constraints = GridBagConstraints() constraints.fill = GridBagConstraints.HORIZONTAL constraints.gridy = 0 constraints.anchor = GridBagConstraints.FIRST_LINE_START for plug in self.loaded_p_list: check_frame.add(JCheckBox(plug.get_name(), plug.enabled, actionPerformed=self.update_box), constraints) constraints.gridy += 1 vport = JViewport() vport.setView(check_frame) scroll_pane.setViewport(vport) self.window.contentPane.add(scroll_pane) self.window.pack() self.window.setVisible(True)
Example #2
Source File: __init__.py From medicare-demo with Apache License 2.0 | 5 votes |
def __init__(self, frame, **defaults): self.frame = frame self.gridbag = awt.GridBagLayout() self.defaults = defaults frame.setLayout(self.gridbag)
Example #3
Source File: __init__.py From CTFCrackTools-V2 with GNU General Public License v3.0 | 5 votes |
def __init__(self, frame, **defaults): self.frame = frame self.gridbag = awt.GridBagLayout() self.defaults = defaults frame.setLayout(self.gridbag)
Example #4
Source File: __init__.py From CTFCrackTools with GNU General Public License v3.0 | 5 votes |
def __init__(self, frame, **defaults): self.frame = frame self.gridbag = awt.GridBagLayout() self.defaults = defaults frame.setLayout(self.gridbag)