Activating & deactivating a window.

Here beelow, I have written the code.
Asper the code, I have created window1, that has a button "ok",clicking "ok", window2 appears.window2 has a "close" button.
So, the no. of times, I click the button "ok", the same no. of instances of window2 appears.But, I want after clicking the button "ok" in window1 then window1 should be deactivated,and after clicking window2's "close" button, then window1 should be activated again.It means,only once the window2 becomes visible, then after clicking the "close", if I again click the "ok", the same action should be held.
If anybody has idea about this, please write me the updated version of the code given bellow.
Regards.
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
public class window1 extends JFrame
     JButton b;
     window1()
          Container con=getContentPane();
          addWindowListener(new WindowAdapter(){
               public void windowClosing(WindowEvent e)
                    System.exit(0);
          JPanel p1=new JPanel();
          b=new JButton("ok");
          b.addActionListener(new ActionListener(){
               public void actionPerformed(ActionEvent e)
                    if(e.getSource()==b)
                         new window2();
          p1.add(b);
          con.add(p1,BorderLayout.SOUTH);
          setSize(200,150);
          setVisible(true);
     public static void main(String arg[])
          window1 obj=new window1();
class window2 extends JFrame
     JButton b2;
     window2()
          Container con=getContentPane();
          JPanel p2=new JPanel();
          b2=new JButton("close");
          b2.addActionListener(new ActionListener(){
               public void actionPerformed(ActionEvent e){
                    if(e.getSource()==b2)
                         dispose();
          p2.add(b2);
          con.add(p2, BorderLayout.SOUTH);
          setSize(200,150);     
          setVisible(true);
          

A.
Keep the instance of the Window1 as global to the class.
e.g.
private window1 myWindow;
B.
In the constructor assign to the instance.
public window1 () {
myWindow = this;
C.
On click of "ok" set
myWindow.setVisible(false);
or
myWindow.setEnabled(false);
D.
In your window2's close button call the myWindow.setVisible (true) or myWindow.setEnabled (true)
I assume you have both the windows declared in one file.
Chintan

Similar Messages

  • Help for activating & deactivating a window.

    Here beelow, I have written the code.
    Asper the code, I have created window1, that has a button "ok",clicking "ok", window2 appears.window2 has a "close" button.
    So, the no. of times, I click the button "ok", the same no. of instances of window2 appears.But, I want after clicking the button "ok" in window1, window1 should be deactivated,and after clicking window2's "close" button, then window1 should be activated again.It means,only one instance of window2 should be visible,clicking the "ok" button.
    If anybody has idea about this, please write me the updated version of the code given bellow.
    Regards.
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    public class window1 extends JFrame
    JButton b;
    window1()
    Container con=getContentPane();
    addWindowListener(new WindowAdapter(){
    public void windowClosing(WindowEvent e)
    System.exit(0);
    JPanel p1=new JPanel();
    b=new JButton("ok");
    b.addActionListener(new ActionListener(){
    public void actionPerformed(ActionEvent e)
    if(e.getSource()==b)
    new window2();
    p1.add(b);
    con.add(p1,BorderLayout.SOUTH);
    setSize(200,150);
    setVisible(true);
    public static void main(String arg[])
    window1 obj=new window1();
    class window2 extends JFrame
    JButton b2;
    window2()
    Container con=getContentPane();
    JPanel p2=new JPanel();
    b2=new JButton("close");
    b2.addActionListener(new ActionListener(){
    public void actionPerformed(ActionEvent e){
    if(e.getSource()==b2)
    dispose();
    p2.add(b2);
    con.add(p2, BorderLayout.SOUTH);
    setSize(200,150);
    setVisible(true);

    A.
    Keep the instance of the Window1 as global to the class.
    e.g.
    private window1 myWindow;
    B.
    In the constructor assign to the instance.
    public window1 () {
    myWindow = this;
    C.
    On click of "ok" set
    myWindow.setVisible(false);
    or
    myWindow.setEnabled(false);
    D.
    In your window2's close button call the myWindow.setVisible (true) or myWindow.setEnabled (true)
    I assume you have both the windows declared in one file.
    Chintan

  • Office 2013 pro plus activation fail on windows 8

    hi guys
    I have issue about getting Office 2013 pro plus activation fail on windows 8 via KMS server.
    When I test using KMS server via nslookup -type=srv _vlmcs._tcp all looks good with corporate KMS server.
    Activation fine with windows 7 environment
    Any idea
    This topic first appeared in the Spiceworks Community

    Hi
    We recommend you download it from the website and extract it again to make sure your source install is complete.
    Run setup.exe as administrator then try the install.
    If the issue persists, refer to the article on General troubleshooting for installing Office 2013 and Office 365:
    http://support.microsoft.com/kb/2822317
    Regards
    Tylor Wang
    TechNet Community Support
    We
    are trying to better understand customer views on social support experience, so your participation in this
    interview project would be greatly appreciated if you have time.
    Thanks for helping make community forums a great place.

  • No "activity" in Safari windows

    Hi,
    I've been reading on how to download video's form youtube with my macbook using safari like I did with realplayer in Windows. All over the web, I'm reading about using the activity function in window when playing a video. I don't seem to have it.
    Does anyone have any suggestions. I've pasted the options open to me here;

    I have not tested these myself, but give them a try:
    There is the Free  iTube Grabber which can capture almost any audio and/or video stream (it says here) but only works with Intel Macs.
    http://itube-grabber.en.softonic.com/mac
    Firefox Download Helper is also supposed to work, you have to be logged into YouTube first.
    There is also iTubeX which allows you to download videos (Flash, HTML5 and others), .mp3 and .swf files from almost every website as easily as possible:
    http://www.macupdate.com/info.php/id/27604/itubex

  • Urgent: Configuring LDAP or Active Directory on Windows XP

    I tried authenticating user against infromation stored in Database tables dont know whats the problem its not working, I followed all the required steps for that but not succeed. So I decided to validate the user against LDAP or Active directory. Can anyone tell me how to configure LDAP or Active Directory in Windows XP.
    Please help me out as only one day remained for to submit my project, everything is done except the login page.
    And I dont think I may get even grade C if there is no security for the application. Please help me out in configuring Active Directory or LDAP and ASAP please.

    Yea I agree with you the custom table is easiest way then AD but I was working on the problem from almost a week now and I don't have much time to sort out things with that anymore.
    Help me in configuring AD on Windows XP Professional with SP2, as I'm running out of time.
    the below link is the detailed steps I followed for Custom Authentication:
    Urgent: Custom Database Authentication
    Please help me out for Configuring AD.

  • Can old Macromedia versions still be activated/deactivated?  Problems connecting to server.

    Can old Macromedia versions still be activated/deactivated?
    I am trying to deactivate StudioMX 2004 on one computer and activate on another, but the server does not respond.
    Thanks.

    http://helpx.adobe.com/x-productkb/policy-pricing/macromedia-legacy-activation-error.html

  • Step by step process to create domain name and active directory in windows 7 64 bit

    Step by step process to create domain and active directory in windows 7 64 bit
    I work in an organization
    I want to create a domain name SBBYDP and make it server for other computers
    I want that, all users’ have a personal account while they use any computer from this organization, even they use any computer from this network they use their own account to login to network.
    And this may be in Active directory option.
    I installed windows 7 professional edition 64 bit
    Can any person help me? Step by step process, I always thanks full all of you

    Hi,
    You must use the Windows Server platform system for the AD service, you can refer the following KB first:
    Active Directory
    http://technet.microsoft.com/en-us/library/bb742424.aspx
    AD DS Deployment Guide
    http://technet.microsoft.com/zh-cn/library/cc753963(v=ws.10).aspx
    Hope this helps.
    We
    are trying to better understand customer views on social support experience, so your participation in this
    interview project would be greatly appreciated if you have time.
    Thanks for helping make community forums a great place.

  • Active X for Windows 7

    I have been trying to install Active X on my computer but I can't seem to find the place to download this on my computer. I open up the Control Panel on my computer, and I open the Flash Player folder, and open the advanced tab and it tells me that  the Flash  Plug in Version is; 11.9.900.170 and the Active X Version is not installed. I wish I could either figure it out or have someone please help me out.
                                                                                             Ernie Sharron

    I though I ASKED? I got a A+ Certified Tech. to install ActiveX for me.
    E.S.
    Date: Sat, 21 Dec 2013 22:09:13 -0800
    From: [email protected]
    To: [email protected]
    Subject: Active X for Windows 7
        Re: Active X for Windows 7
        created by Sean_Wilson in Adobe Shockwave Player - View the full discussion
    Ask on a forum for the Flash Player
         Please note that the Adobe Forums do not accept email attachments. If you want to embed a screen image in your message please visit the thread in the forum to embed the image at http://forums.adobe.com/message/5950877#5950877
         Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: http://forums.adobe.com/message/5950877#5950877
         To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/5950877#5950877. In the Actions box on the right, click the Stop Email Notifications link.
               Start a new discussion in Adobe Shockwave Player at Adobe Community
      For more information about maintaining your forum email notifications please go to http://forums.adobe.com/thread/416458?tstart=0.

  • Help needed in activating and deactivating a window

    In my GUI, I have created a window, that is having one textfield, one label and 2 buttons named "Enabled" & "Disabled" .
    MY requirement is: After execution of the window when I will click "Disabled" button, the window should be deactivated, even I can't type in the textfield and then clicking the " Enabled" button the window should be activated, then I can access the textfield.
    Here bellow,I have written the code for visibility of the window, but I haven't written code for the action to be performed by the 2 buttons.
    Can anyof you please write me the updated code satisfying my requirement, sothat I'll proceed further.
    Regards.
    MY CODE:
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    class Test7 extends JFrame
         public Test7()
              Container con=getContentPane();
              addWindowListener(new WindowAdapter(){
                   public void windowClosing(WindowEvent e)
                        System.exit(0);
              JPanel p1=new JPanel();
              p1.setBackground(Color.white);
              JPanel p2=new JPanel();
              JPanel p3=new JPanel();
              JTextField txt=new JTextField(10);
              JLabel l=new JLabel("hello world");;
              JButton b1=new JButton("Enable");
              b1.addFocusListener(new FocusAdapter(){
                   public void focusGained(FocusEvent evt)
              System.out.println("gained");
         // The component gained the focus
              JButton b2=new JButton("Disable");
              b2.addFocusListener(new FocusAdapter(){
                   public void focusLost(FocusEvent evt)
              System.out.println("lost");
         // The component lost the focus
              p1.add(txt);
              p2.add(l);
              p3.add(b1);
              p3.add(b2);
              con.add(p1,"North");
              con.add(p2,"Center");
              con.add(p3,"South");
              setSize(300,200);
              show();
         public static void main(String arg[])
              new Test7();

    try modifying code for the button listeners
    JButton b1=new JButton("Enable");
    b1.addActionListener(new ActionListener(){
    public void actionPerformed(ActionEvent evt)
    System.out.println("gained");
    // The component gained the focus
    txt.setEnabled(true);
    JButton b2=new JButton("Disable");
    b2.addActionListener(new ActionListener(){
    public void actionPerformed(ActionEvent evt)
    System.out.println("lost");
    txt.setEnabled(false);
    // The component lost the focus
    Hope this helps

  • Photoshop is not affected by installation or activation/deactivation of fonts. What am I missing?

    I want to use HelveticaNeue Light in a psd file. I have tried activating it in Suitcase Fusion 4 and installing it under Windows (Windows 7 Ultimate). I have restarted Photoshop several times and I deleted C:\Users\username\AppData\Local\Adobe\TypeSupport as a possible solution. I have no idea what the problem could be.
    I even tried searching for fonts that are appearing in the list to see what's the difference compared to other fonts, but I didn't get smarter. I also deleted the preferences.
    It just won't appear in the list. I am sure it is a working font because I am using it daily in InDesign.
    I know of only 2 ways how Photoshop should be able to see fonts: Installing into the Windows fonts folder or Fonts management software. As far as I know it doesn't have a Fonts folder, like let's say Indesign. But still when deactivating all fonts in Suitcase and checking the Windows fonts folder, I saw that there are fonts in the Photoshop fonts list that are not in the systems folder nor activated in Suitcase. So I guess I am missing something here.
    I would appreciate any input.
    I am using Photoshop CS5
    Suitcase Fusion 4
    Windows 7 Ultimate

    Do you have the Suitcase Fusion Auto-Activation Plugin for Photoshop?
    Nancy O.

  • Photoshop is not affected by installation or activation/deactivation of fonts.

    I want to use HelveticaNeue Light in a psd file. I have tried activating it in Suitcase Fusion 4 and installing it under Windows (Windows 7 Ultimate). I have restarted Photoshop several times and I deleted C:\Users\username\AppData\Local\Adobe\TypeSupport as a possible solution. I have no idea what the problem could be.
    I even tried searching for fonts that are appearing in the list to see what's the difference compared to other fonts, but I didn't get smarter. I also deleted the preferences.
    It just won't appear in the list. I am sure it is a working font because I am using it daily in InDesign.
    I know of only 2 ways how Photoshop should be able to see fonts: Installing into the Windows fonts folder or Fonts management software. As far as I know it doesn't have a Fonts folder, like let's say Indesign. But still when deactivating all fonts in Suitcase and checking the Windows fonts folder, I saw that there are fonts in the Photoshop fonts list that are not in the systems folder nor activated in Suitcase. So I guess I am missing something here.
    I would appreciate any input.
    I am using Photoshop CS5
    Suitcase Fusion 4
    Windows 7 Ultimate

    Do you have the Suitcase Fusion Auto-Activation Plugin for Photoshop?
    Nancy O.

  • Has Adobe stopped activating/deactivating PSE7?

    I have been using PSE7 on Windows 7 for years and never had a problem. Recently, I installed a new Windows 7 system drive and attempted to install my trusty PSE7. Prior to installing the new system drive, I ensured that all my software with activations were deactivated, but there was no option under the PSE7 Help menu for deactivation. (Ironically, there is a deactivation on a non-activated install but it is obviously grayed out and it wasn't in my original, activated PSE7 help menu.)
    PSE7 installed correctly to my new Windows 7 (same Windows version and install disk I was using with PSE7 previously), but when I got to the activation screen, it just showed a red "X". After logging into Adobe and confirming my activation code, I contacted Adobe Support and was told that PSE7 was never tested on Windows 7 so they couldn't give any support, and that they could not even look up my activations in their computer to see if they were still 'active'. They did tell me that PSE7 was suppose to be automatically deactivated when it was uninstalled.
    So, I did the following:
    Restored a backup copy of my old Windows 7 and perfectly working PSE7 system (I'd already re-purposed the old drive)
    Uninstalled PSE7 (as I remembered, there is no "Deactivate" in my working PSE7)
    Re-installed Windows 7, updated it and installed PSE7, but PSE7 still wouldn't accept the activation
    Re-formatted and re-installed Windows 7 but did not run Windows update in case it was a recent update the broke activation
    Installed PSE7 but failed to get past the activation screen again
    As I installed a fresh copy of Windows 7 and attempted PSE7 activation before I ran Windows update, the conditions were nearly identical to my original Windows 7 system when I successfully installed PSE7 all those years ago. If it installed and accepted activation in my original system but not in my last test, it leads me to think that Adobe is no longer releasing the activations for PSE7.
    Anyone have any idea if Adobe is still releasing the activations or activating new installs for software they don't support anymore? I'm only assuming they don't support any PSE7, not just on the unsupported Windows 7, as they can't look up my activations for it. Seems strange that their support staff would not have access a older product's activations for troubleshooting, provided that they still have a server managing those activations?
    Thanks

    Ah ha, there is life on my thread. Maybe I should have ignored posting etiquette and bumped the thread a few times to get it back on the main page before throwing in the towel. Thanks, Michel.
    MichelBParis wrote:
    As another user like you, I have still old versions of Elements installed on my computer together with PSE13. I have version 6 active. Versions 4,5 and 10 I can reinstall if needed to help solve other users problems.The registration/activation of PSE versions has changed and I can find the registration keys and downloads for the versions 10 and newer. For my PSE6 and older versions, all I need is the original CD and original key. Those keys are linked specifically to the original CD. There is no activation servers for those.
    Too bad, you have almost every version except 7. I purchased a download version and confirmed the S/N on my purchased software page, so I assume it is correct. Unfortunately, each and every time I get to the the activation screen, on multiple PSE installs and Windows 7 installs in various states of update, it spits out the dreaded red "X".
    ... pause for thought...
    However, your comment about the original CD got me thinking, so just in case my originally downloaded install file was corrupted, I re-downloaded a copy of PSE7 from my account on Adobe, and it was a completely different installer! Gone was the S/N input page with a bunch of boxes to input the numbers in groups of 4 and there was simply a single input box that you can cut-and-paste the whole S/N into (you don't know how many times I retyped my S/N, 4 digits at a time, to make sure I didn't make a typo).
    Even better than the S/N new input box is that it accepted my S/N without a hiccup! No red "X", or anything. PSE7 is installed and life is good again! Yay!
    I kept my old install of PSE7 updated, but I never thought of the possibility of an updated installer. Possibly Adobe has changed how it expects the S/N to be transmitted, thus creating a different installer than my original one. Below the S/N input boxes on the old but not the new installer, there was a trial option that I also tried and failed to activate after install, but most software that have both options generally accept both options. Too bad the Adobe tech didn't know there were different versions of the installer, but not being supported any more, I guess I was lucky he tried.

  • ThinkVantage Active Protection for Windows XP, Vista, and 7 missing from driver matrix

    Recently, while checking the Software link: http://support.lenovo.com/ca/en/documents/ht037696
    I noticed:
    Active Protection System
    Like an airbag's sensor, it can detect sudden changes in motion and temporarily stop the hard drive to help protect your valuable data from some crashes that could occur due to everyday notebook accidents.
    Windows 8 (32-bit), 7 (32-bit), Vista (32-bit), XP, 2000
    12 Mar 2014
    v1.79.0.3
    Windows 8 (64-bit), 7 (64-bit), Vista (64-bit)
    09 Mar 2014
    v1.79.0.3
    If you try to follow the links to the ThinkVantage Active Protection System, you are presented with a document labeled: ThinkVantage Active Protection System for Windows 8 (32-bit) - Laptop or a document labeled: ThinkVantage Active Protection System for Windows 8.1 (64-bit) – Notebook
    No reference to Windows XP, VISTA or Windows 7 in the current version of the documents, yet the text file pointed to by the download links states that this driver still supports all the older ThinkPads and is applicable to Windows 7 and VISTA. The text file does say that Windows XP support has been withdrawn with this release, and that XP users should use the previous version. It does not, however, provide a link to any document or mechanism where an XP user can obtain the previous driver.
    So, is the document correct, or is the text file correct?
    Where is the current driver for VISTA and Windows 7?
    When I went to the support sites to see the supporting documents there, I discovered that the ThinkVantage Active Protection entries were gone from the R61, R500 and T500 driver matrices. The only reference I could find to the ThinkVantage Active Protection System was in the above mentioned SOFTWARE link.
    ThinkPad R61 8932-CTO T8300 2.40 Ghz 3GB RAM Win XP
    ThinkPad R500 2714-CTO P8600 2.40 Ghz 3GB RAM Win XP; Two ThinkPad R500's 2714-CTO T9600 2.80 Ghz 4GB RAM Win 7
    ThinkPad T500 2241-DB9 T9600 2.80 Ghz 4GB RAM Win 7
    ThinkCenter A63 5237-CTO 3GB Ram Win XP; A21m and a pair of 380XD's

    Still no change to the driver matrices.  ThinkVantage Active Protection is still missing. There has been a change in the web site, as follows:
    Active Protection System
    Like an airbag's sensor, it can detect sudden changes in motion and temporarily stop the hard drive to help protect your valuable data from some crashes that could occur due to everyday notebook accidents.
    Windows 8.1 (32-bit)
    27 Jan 2015
    v1.80.3.0
    Windows 8.1 (64-bit)
    27 Jan 2015
    v1.80.3.0
    Windows 8 (32-bit)
    27 Jan 2015
    v1.80.3.0
    Windows 8 (64-bit)
    27 Jan 2015
    v1.80.3.0
    Windows 7 (32-bit)
    27 Jan 2015
    v1.80.3.0
    Windows 7 (64-bit)
    27 Jan 2015
    v1.80.3.0
    Windows Vista (32-bit)
    27 Jan 2015
    v1.80.3.0
    Windows Vista (64-bit)
    27 Jan 2015
    v1.80.3.0
    So now there are numerous separate entries, but none of them claim to support any 'legacy' machines. Most of the above entries point to the same driver (at present).  The puzzling aspect to all this is that if you read the text documents that accompany most of the above driver packages, you will note that the text document claims that the driver supports quite a number of legacy machines. That information just never made it to the web page.
    So do I manually update a driver because the text document says it is applicable to my legacy R500, or 'believe' the web page which states that only some current models are supported, but not the R500, T500 or R61.   
    Very inconsistant and highly unprofessional.
    ThinkPad R61 8932-CTO T8300 2.40 Ghz 3GB RAM Win XP
    ThinkPad R500 2714-CTO P8600 2.40 Ghz 3GB RAM Win XP; Two ThinkPad R500's 2714-CTO T9600 2.80 Ghz 4GB RAM Win 7
    ThinkPad T500 2241-DB9 T9600 2.80 Ghz 4GB RAM Win 7
    ThinkCenter A63 5237-CTO 3GB Ram Win XP; A21m and a pair of 380XD's

  • Back end activities for Activation & Deactivation of Aggregates

    Hi ,
    Could any body help me to understand the back-end activites performed at the time of activation and deactivation of aggregates.
    Is filling of Agreegate is same as Roll up?
    What is the diffrence between de-activation and deletion of Aggregate?
    Thanks.
    Santanu

    Hi Bose,
    Activation:
    In order to use an aggregate in the first place, it must be defined activated and filled.When you activate it, the required tables are created in the database from theaggregate definition. Technically speaking, an aggregate is actually a separate BasicCube with its own fact table and dimension tables. Dimension tables that agree with the InfoCube are used together. Upon creation, every aggregate is given a six-digit number that starts with the figure1. The table names that make up the logical object that is the aggregate are then derived in a similar manner, as are the table names of an InfoCube. For example, if the aggregate has the technical name 100001, the fact tables are called: /BIC/E100001 and /BIC/F100001. Its dimensions, which are not the same as those in the InfoCube,have the table names /BIC/D100001P, /BIC/D100001T and so on.
    Rollup:
    New data packets / requests that are loaded into the InfoCube cannot be used at first for reporting if there are aggregates that are already filled. The new packets must first be written to the aggregates by a so-called “roll-up”. In other words, data that has been recently loaded into an InfoCube is not visible for reporting, from the InfoCube or aggregates, until an aggregate roll-up takes place. During this process you can continue to report using the data that existed prior to the recent data load. The new data is only displayed by queries that are executed after a successful roll-up.
    Go for the below link for more information.
    http://sapbibw2010.blogspot.in/2010/10/aggregates.html
    Naresh

  • Terminator - Prompt if a process is active before closing window

    HI. As the title says: I want to get a prompt in Terminator (a terminal emulator) if I accidentally try to close its window while a process is active inside it. Eg.: If I have vim open inside terminator, and I carelessly press the window manager's close button, I want a prompt asking for confirmation.
    Now there was a sane default by which it automatically showed such a prompt, but I (quite stupidly) told it to never prompt me again. Later I wanted it back. But I couldn't find where or how I could change that preference. I have tried going through its "Preferences" gui and also searched its default config file:
    ~/.config/terminator/config
    but I have had no luck. I have also checked DConf Editor by searching for 'term', 'terminal' and 'terminator'. Again no luck.
    I was hoping someone here could tell me how I could fix it. Currently I have resorted to running a screen session, so that I don't lose my work. But I hope I can get that prompt back.
    Thank you.
    Last edited by richcocoa (2013-10-14 08:29:31)

    It's possible to obtain this prompt when trying to close multiple tabs / terminals / windows. I've made some modifications to my /usr/share/terminator/terminatorlib/container.py based on the Launchpad version. The construct_confirm_close function makes it possible:
    def construct_confirm_close(self, window, reqtype):
    """Create a confirmation dialog for closing things"""
    # skip this dialog if applicable
    if self.config['suppress_multiple_term_dialog']:
    return gtk.RESPONSE_ACCEPT
    dialog = gtk.Dialog(_('Close?'), window, gtk.DIALOG_MODAL)
    dialog.set_has_separator(False)
    dialog.set_resizable(False)
    dialog.add_button(gtk.STOCK_CANCEL, gtk.RESPONSE_REJECT)
    c_all = dialog.add_button(gtk.STOCK_CLOSE, gtk.RESPONSE_ACCEPT)
    c_all.get_children()[0].get_children()[0].get_children()[1].set_label(
    _('Close _Terminals'))
    primary = gtk.Label(_('<big><b>Close multiple terminals?</b></big>'))
    primary.set_use_markup(True)
    primary.set_alignment(0, 0.5)
    secondary = gtk.Label(_('This %s has several terminals open. Closing \
    the %s will also close all terminals within it.') % (reqtype, reqtype))
    secondary.set_line_wrap(True)
    labels = gtk.VBox()
    labels.pack_start(primary, False, False, 6)
    labels.pack_start(secondary, False, False, 6)
    image = gtk.image_new_from_stock(gtk.STOCK_DIALOG_WARNING,
    gtk.ICON_SIZE_DIALOG)
    image.set_alignment(0.5, 0)
    box = gtk.HBox()
    box.pack_start(image, False, False, 6)
    box.pack_start(labels, False, False, 6)
    dialog.vbox.pack_start(box, False, False, 12)
    checkbox = gtk.CheckButton(_("Do not show this message next time"))
    dialog.vbox.pack_end(checkbox)
    dialog.show_all()
    result = dialog.run()
    # set configuration
    self.config.base.reload()
    self.config['suppress_multiple_term_dialog'] = checkbox.get_active()
    self.config.save()
    dialog.destroy()
    return(result)
    Paired with suppress_multiple_term_dialog in your ~/.config/terminator/config:
    [global_config]
    suppress_multiple_term_dialog = False
    Most I could find at this time in the morning.

Maybe you are looking for

  • Abap+java stack for Portal 7.0 and MI - User Data Source

    The SAP pre-requisites for Portal and MI (Mobile Infrastructure) 7.0 is an ABAP and Java Stack. If you install an AS ABAP + Java, the UME is automatically set up to use the ABAP user management of the same AS installation. What does this mean? The us

  • Opening a .doc file in Pages results in Untitled document?

    Hi all! I've reinstalled iWork '06, along with the rest of my OS, and I've noticed something strange: if I set Pages as default to open .doc files, every time I double-click on a .doc file, Pages opens it in an Untitled document. Of course, when it c

  • Post with Clearing: BAPI for clearing open items

    Hi, I'm looking for a way to use the logic of transaction F-30 (Post with Clearing) in an external application. I want to clear open items. Is there a BAPI or something else for it? While debugging transaction F-30 I found the function module POST_DO

  • SQL update

    Here's my code: <cfquery name="setNote" datasource="#DS#" dbtype="ODBC" username="#DSUsername#" password="#DSPassword#" > update Notes set note = 'test' where noteid = 1 </cfquery> Seems simple enough, but I get this: [Macromedia][SequeLink JDBC Driv

  • Combine one subscription with another one to the s...

    Hi, this support site is a mess so I try to get an answer here and see what help I can get I have a subscription to unlimited to landlines in Sweden, but I also want a subscription to be able to call people in Sweden who only have a mobile phone. But