mirror of https://github.com/zlatinb/muwire
parent
e4ef0035fd
commit
6f0450ec1c
|
@ -22,13 +22,15 @@ class ChatMonitorView {
|
|||
@MVCMember @Nonnull
|
||||
ChatMonitorModel model
|
||||
|
||||
def window
|
||||
JFrame window
|
||||
def roomsTable
|
||||
def mainFrame
|
||||
|
||||
void initUI() {
|
||||
int rowHeight = application.context.getAsInt("row-height")
|
||||
mainFrame = application.windowManager.findWindow("main-frame")
|
||||
|
||||
window = builder.frame (visible : false, locationRelativeTo : null,
|
||||
window = builder.frame (visible : false, locationRelativeTo : mainFrame,
|
||||
defaultCloseOperation : JFrame.DISPOSE_ON_CLOSE,
|
||||
iconImage : builder.imageIcon("/MuWire-48x48.png").image,
|
||||
preferredSize: [800,800]){
|
||||
|
@ -62,6 +64,7 @@ class ChatMonitorView {
|
|||
}
|
||||
})
|
||||
window.pack()
|
||||
window.setLocationRelativeTo(mainFrame)
|
||||
window.setVisible(true)
|
||||
}
|
||||
}
|
|
@ -36,7 +36,7 @@ class CollectionWizardView {
|
|||
@MVCMember @Nonnull
|
||||
CollectionWizardModel model
|
||||
|
||||
def window
|
||||
JFrame window
|
||||
JPanel mainPanel
|
||||
|
||||
def nameTextField
|
||||
|
@ -45,11 +45,13 @@ class CollectionWizardView {
|
|||
def lastFilesTableSortEvent
|
||||
JTree jTree
|
||||
|
||||
def mainFrame
|
||||
|
||||
void initUI() {
|
||||
|
||||
mainFrame = application.windowManager.findWindow("main-frame")
|
||||
int rowHeight = application.context.get("row-height")
|
||||
|
||||
window = builder.frame(visible: false, locationRelativeTo : null,
|
||||
window = builder.frame(visible: false, locationRelativeTo : mainFrame,
|
||||
defaultCloseOperation : JFrame.DISPOSE_ON_CLOSE,
|
||||
iconImage : builder.imageIcon("/MuWire-48x48.png").image,
|
||||
preferredSize: [800,800]){
|
||||
|
@ -163,6 +165,7 @@ class CollectionWizardView {
|
|||
}
|
||||
})
|
||||
window.pack()
|
||||
window.setLocationRelativeTo(mainFrame)
|
||||
window.setVisible(true)
|
||||
}
|
||||
|
||||
|
|
|
@ -47,15 +47,17 @@ class NewMessageView {
|
|||
@MVCMember @Nonnull
|
||||
NewMessageModel model
|
||||
|
||||
def window
|
||||
JFrame window
|
||||
DefaultListModel recipientsModel
|
||||
JList recipientsList
|
||||
JTextField subjectField
|
||||
JTextArea bodyArea
|
||||
JTable attachmentsTable
|
||||
def lastAttachmentsTableSortEvent
|
||||
def mainFrame
|
||||
|
||||
void initUI() {
|
||||
mainFrame = application.windowManager.findWindow("main-frame")
|
||||
int rowHeight = application.context.get("row-height")
|
||||
|
||||
recipientsModel = new DefaultListModel()
|
||||
|
@ -64,7 +66,7 @@ class NewMessageView {
|
|||
}
|
||||
recipientsList = new JList(recipientsModel)
|
||||
|
||||
window = builder.frame(visible : false, locationRelativeTo : null,
|
||||
window = builder.frame(visible : false, locationRelativeTo : mainFrame,
|
||||
defaultCloseOperation : JFrame.DISPOSE_ON_CLOSE,
|
||||
iconImage : builder.imageIcon("/MuWire-48x48.png").image,
|
||||
preferredSize: [800, 800]){
|
||||
|
@ -174,6 +176,7 @@ class NewMessageView {
|
|||
}
|
||||
})
|
||||
window.pack()
|
||||
window.setLocationRelativeTo(mainFrame)
|
||||
window.setVisible(true)
|
||||
}
|
||||
|
||||
|
|
|
@ -28,8 +28,10 @@ class ChatFavoritesView {
|
|||
JFrame window
|
||||
private JTable favoritesTable
|
||||
|
||||
def mainFrame
|
||||
|
||||
void initUI() {
|
||||
def mainFrame = application.windowManager.findWindow("main-frame")
|
||||
mainFrame = application.windowManager.findWindow("main-frame")
|
||||
int rowHeight = application.context.get("row-height")
|
||||
|
||||
window = builder.frame(visible : false, locationRelativeTo: mainFrame,
|
||||
|
@ -89,6 +91,7 @@ class ChatFavoritesView {
|
|||
}
|
||||
})
|
||||
window.pack()
|
||||
window.setLocationRelativeTo(mainFrame)
|
||||
window.setVisible(true)
|
||||
}
|
||||
|
||||
|
|
|
@ -38,8 +38,10 @@ class ResultDetailsFrameView {
|
|||
|
||||
def certificatesGroup, collectionsGroup
|
||||
|
||||
def mainFrame
|
||||
|
||||
void initUI() {
|
||||
def mainFrame = application.windowManager.findWindow("main-frame")
|
||||
mainFrame = application.windowManager.findWindow("main-frame")
|
||||
int rowHeight = application.context.get("row-height")
|
||||
|
||||
int frameHeight = 150
|
||||
|
@ -140,6 +142,7 @@ class ResultDetailsFrameView {
|
|||
}
|
||||
})
|
||||
window.pack()
|
||||
window.setLocationRelativeTo(mainFrame)
|
||||
window.setVisible(true)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue