jinternalframe

pass data from JFrame to JInternalFrame and vice-versa? [closed]

时光毁灭记忆、已成空白 提交于 2020-01-03 04:30:08
问题 Closed . This question needs details or clarity. It is not currently accepting answers. Want to improve this question? Add details and clarify the problem by editing this post. Closed 5 years ago . I have a JFrame, when I click a button on JFrame, it creates a new JInternalFrame having a 'Finalize' button. What I want is that, when I click the Finalize button the JInternalFrame disposes and send some values (data) to that JFrame which created the JInternalFrame. How can I achieve this? any

View JInternalFrames without JDesktopPanes

北城以北 提交于 2019-12-25 04:53:07
问题 As we know JInternalFrame cannot run..we have to set it to a JDesktopPane But I heard from one of my friends that JInternalFrame can run. Is that possible..? Is there any code for main method ...? 回答1: Sure, “JInternalFrame cannot run”; they don’t have legs. But if you claim that they cannot be used without a JDesktopPane , where do you get that “knowledge” from? And why don’t you try for yourself? It takes less than five minutes: import javax.swing.*; public class IFrames { public static

How to pass data between two JInternalFrame?

纵饮孤独 提交于 2019-12-25 02:47:26
问题 i'm making a program, and I have 1 JFrame with JDesktopPane in this frame i open two JInternalFrame and I want to pass data between this two JInternalFrame but with JTextField. I'm just made to pass the data but it doesn't update the JInternalFrame that i want to show. But if i choose to open again it show me the data. Please Help me! THANKS In this JInternalFrame 2 i sent the data to another JInternalFrame 1 private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) { String word =

setting Swing JInternalFrame lnf manually

笑着哭i 提交于 2019-12-25 01:44:08
问题 UIManager.put("InternalFrame.activeTitleBackground", new ColorUIResource(new Color(207,255,247))); UIManager.put("InternalFrame.inactiveTitleBackground", new ColorUIResource(new Color(207,255,247))); JDesktopPane baTabbedPane = new JDesktopPane(); JInternalFrame iframe = new JInternalFrame("Cheapest To Deliver",true,true,true,true); iframe.setSize(400,150); baTabbedPane.add(iframe); why is my Internal Frame's title background not set on startup? I've tried setting it on the overall JFrame

Trying to disable dragging of a JInternalFrame

别来无恙 提交于 2019-12-24 07:44:43
问题 I have been looking around for awhile and can't find a method for disabling dragging a JIntenal Frame. Any help would be appreciaed -TYIA, Roland Please keep in mind this is an applet, import java.awt.*; import java.applet.*; import java.awt.event.*; import javax.swing.*; public class inigui2 extends Applet { public void init() { final JDesktopPane desktop = new JDesktopPane(); desktop.setPreferredSize(new Dimension(640, 480)); this.add(desktop); JInternalFrame fr = new JInternalFrame(

How to manage a JInternalFrame calling another JInternalFrame?

左心房为你撑大大i 提交于 2019-12-23 18:32:00
问题 I have a JDesktopPane with this code. public class Menu extends JFrame implements ActionListener{ /** * Creates new form Portada */ public static JDesktopPane desktop; public JDesktopPane getDesktop() { return desktop; } public Menu() { desktop = new JDesktopPane(); setContentPane(desktop); desktop.setDragMode(JDesktopPane.OUTLINE_DRAG_MODE); initComponents(); } } then i add the new components like this desktop.add(orden); and when i want to call them i use if(e.getSource()==jMenuItem1_1){

JDesktopPane - how to get active frame

空扰寡人 提交于 2019-12-23 07:35:33
问题 How to get active (having focus) frame (JInternalFrame) that is inside JDesktopPane? I need it for my MDI notepad (not that anybody would use that, just a training project). Looking at api, I see only functions to get all JInternalFrames, not active one. 回答1: Use JDekstopPane.getSelectedFrame() method ( From doc: currently active JInternalFrame in this JDesktopPane, or null if no JInternalFrame is currently active. ) or JDesktopPane.getAllFrames() to get list of all JInternalFrames currently

JInternalFrame As Modal

混江龙づ霸主 提交于 2019-12-23 03:22:17
问题 I Have the following code: import java.awt.AWTEvent; import java.awt.ActiveEvent; import java.awt.Component; import java.awt.EventQueue; import java.awt.MenuComponent; import java.awt.event.MouseEvent; import javax.swing.JInternalFrame; import javax.swing.SwingUtilities; public class modalInternalFrame extends JInternalFrame { // indica si aquest es modal o no. boolean modal = false; @Override public void show() { super.show(); if (this.modal) { startModal(); } } @Override public void

is there any way call other JinternalFrame from an JinternalFrame but, in the desktopPane of of main Jframe.

雨燕双飞 提交于 2019-12-22 17:32:11
问题 The "code part 1" below is used for calling UcakListesi(JinternalFrame) from menuItem in MDI application without problem. I would like to call same UcakListesi(JinternalFrame) from another JinternalFrame using same code however, I get error about "desktopPane.add(nw);" line see code part 2. Can't access main jframe desktopPane form JinternalFrame .. is there any way call other JinternalFrame from an JinternalFrame but, in the desktopPane of of main Jframe. sorry for my poor english. Regards

is there any way call other JinternalFrame from an JinternalFrame but, in the desktopPane of of main Jframe.

限于喜欢 提交于 2019-12-22 17:31:29
问题 The "code part 1" below is used for calling UcakListesi(JinternalFrame) from menuItem in MDI application without problem. I would like to call same UcakListesi(JinternalFrame) from another JinternalFrame using same code however, I get error about "desktopPane.add(nw);" line see code part 2. Can't access main jframe desktopPane form JinternalFrame .. is there any way call other JinternalFrame from an JinternalFrame but, in the desktopPane of of main Jframe. sorry for my poor english. Regards