Python javax.swing.JTabbedPane() Examples
The following are 6
code examples of javax.swing.JTabbedPane().
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
javax.swing
, or try the search function
.
Example #1
Source File: BurpExtension.py From lightbulb-framework with MIT License | 6 votes |
def createLibraryTabs(self): self._libraryTabs = JTabbedPane() self.LearningViewer = JTabbedPane() self.DifferentialViewer = JTabbedPane() self._libraryTabs.addTab("Learning", self.LearningViewer) self._libraryTabs.addTab( "Differential Learning", self.DifferentialViewer) TreesViewer = LibraryTable( self, model=LibraryTableModel( self._db, "Tree")) ScrollTreesViewer = JScrollPane(TreesViewer) TreesViewer.redrawTable() self._libraryTabs.addTab("Tree", ScrollTreesViewer) self._callbacks.customizeUiComponent(self._libraryTabs) return self.LearningViewer, self.DifferentialViewer, TreesViewer
Example #2
Source File: BurpExtension.py From lightbulb-framework with MIT License | 6 votes |
def createSettingsTabs(self): settignsTabs = JTabbedPane() self.ServerViewer = SettingsTable( self, model=SettingsTableModel( self._db, "Browser")) ScrollServerViewer = JScrollPane(self.ServerViewer) self.ServerViewer.redrawTable() self.MysqlViewer = SettingsTable( self, model=SettingsTableModel( self._db, "MySQL")) ScrollMysqlViewer = JScrollPane(self.MysqlViewer) self.MysqlViewer.redrawTable() self.LearningViewer = SettingsTable( self, model=SettingsTableModel( self._db, "Learning")) ScrollLearningViewer = JScrollPane(self.LearningViewer) self.LearningViewer.redrawTable() settignsTabs.addTab("Web Browser", ScrollServerViewer) settignsTabs.addTab("MySQL Client", ScrollMysqlViewer) settignsTabs.addTab("Learning", ScrollLearningViewer) self._callbacks.customizeUiComponent(settignsTabs) # TODO: consider adding the results when clicking the tab (lazy # instantiation) since it can get slow return settignsTabs
Example #3
Source File: payloadview.py From inql with Apache License 2.0 | 6 votes |
def __init__(self, payload=None, texteditor_factory=None, editable=True): self._idx = 0 self._texteditor_factory = texteditor_factory self._textareas = {} self._widgets = {} self._listener = None self.this = JTabbedPane() self.this.setUI(SneakTabbedPaneUI(self.this)) if payload: self.refresh(payload) self.editable = editable self.set_editable(editable)
Example #4
Source File: BurpExtension.py From lightbulb-framework with MIT License | 5 votes |
def createLibrarySubTabs(self, jtabbedpane, subcategory): SeedsViewer = JTabbedPane() TestsViewer = JTabbedPane() # if subcategory == 1: jtabbedpane.addTab("Seeds", SeedsViewer) # if subcategory == 2: jtabbedpane.addTab("Tests", TestsViewer) self._callbacks.customizeUiComponent(jtabbedpane) return SeedsViewer, TestsViewer
Example #5
Source File: models.py From lightbulb-framework with MIT License | 5 votes |
def createRequestTabs(self, requestResponse): requestTabs = JTabbedPane() requestViewer = self._extender._callbacks.createMessageEditor( self._extender, False) responseViewer = self._extender._callbacks.createMessageEditor( self._extender, False) requestTabs.addTab("Request", requestViewer.getComponent()) requestTabs.addTab("Response", responseViewer.getComponent()) self._extender._callbacks.customizeUiComponent(requestTabs) requestViewer.setMessage(requestResponse.getRequest(), True) if requestResponse.getResponse(): responseViewer.setMessage(requestResponse.getResponse(), False) requestTabs.setSelectedIndex(1) return requestTabs
Example #6
Source File: TomcatBrute.py From TomcatBrute with The Unlicense | 5 votes |
def _initTab(self, callbacks): ''' Initial Burp Tab View ''' self._toolkitTab = swing.JTabbedPane() self._toolkitTab.addTab('Tomcat Fs Login', self._tomcatMainPanel) callbacks.customizeUiComponent(self._toolkitTab) callbacks.addSuiteTab(self) # -------------------------------------------------