What class does setVisible() come from?

What class does the setVisible() come from?
and
Where do find the method to disable the ability to resize a window?
Thanks

These answers and more from you friendly local API...
http://java.sun.com/j2se/1.4.1/docs/api/

Similar Messages

  • When you order a iPod from the online store what packaging does it come in?

    When you order a iPod from the online store what packaging does it come in? Does the iPod box come in a box? A bag of some sort? Is there any extra protection? Because I've seen on TV the video of those sorting plants, and they treat those packages like there trying to break whats inside.

    Hi! I just received my new 80gb iPod today and it came in an iPod box, and it's very secure in the package. I had no problems with the way Apple packages the iPods.
    I'd hope if your ipod came broken Apple would either exchange or refund the item.
    Cheers.
    s

  • Hi, I have a Power Book G4 Tiger 10.4.11 and my problem concerns iTunes 9.2.1(5). I have changed my Apple ID and password recently. Since that, I am told when I try to buy something in iTunes Store that my "session has expired". Where does this come from?

    Hi, I have a Power Book G4 Tiger 10.4.11 and my problem concerns iTunes 9.2.1(5). I have changed my Apple ID and password recently. Since that, I am told, only when I try to buy something in iTunes Store, that my "session has expired". Where does this come from? What should I do to solve this problem ? I would greatly appreciate your help. Thank you in advance.

    Hi, I am khonthaï. I solved the problem thanks to JHdeVilliers's post on 4 Dec. 2011: I removed all cookies in Safari and it worked immediately !!!

  • To what class does this method belong?

    If one sees in the documentation something like
    - (retType *) text1:(Type1 *)aType1 text2:(Type2 *)aType2;
    then to what class does this method belong? I do not see in the Objective-C documentation any way that one can tell without the 'context' in which the method is declared or defined. This makes reading the documentation very difficult (for me). What you see is not what you get. There is stuff missing.
    In my world there is no difficulty in determining the class to which a method belongs. It is stated explicitly in the method name. For example:
    PROCEDURE (self: MyClass) methodName (arg1: Type1; arg2: Type2);
    and one sees that 'methodName' belongs to 'MyClass'.
    In Objective-C how does one know the class to which a method belongs? Is it only determined by context, that is, by the fact that it is within the @implementation section or that it is within the @interface section? If that is the case then I would think that in documentation one should always be required to assert something like:
    <<MyClass>> -(retType *) text1:(Type1 *)aType1 ...
    -Doug Danforth

    PeeJay2,
    I think I now have the distinctions needed but still have a question about what you said. But first here is my current understanding. A "method" is by definition bound to *at least* one class whereas a "message" need not be bound to any class. Hence one can send any message to any class and it will either be handled or ignored. A message looks like a method signature (and maybe one but is not constrained to be one).
    The difference between C++ and Objective-C is that in C++ method calls are not messages sent to a receiver. They are just calls of the method for the dynamically bound object. That method must be syntactically correct at compile time whereas messages need not be syntactically correct for any receiver. At least that is my current understanding.
    Now my question. You state that "casting the receiver of a message will in no way alter the flow of the code". I attempted to test this with a simple program but ran into a problem (see my new posting "Multiple classes in one file?").
    Assume the following
    @class Child : Parent
    Child *child = [[Child alloc] init];
    Parent *parent = [[Parent alloc] init];
    Parent *bar;
    bar = child;
    [bar doSomething]; // (C) call to child's doSomething method?
    [(Parent *)bar doSomething]; // (P) call to parent's doSomething method?
    You comment seems to say that both case (C) and (P) give the same result. If they do then which result is it the parent's or the child's method (assuming that the child has indeed reimplemented the parent's method)? Have I understood you correctly?
    -Doug Danforth

  • There is a bunch of music in my library under "purchased" that I did not purchase. where does this come from?

    there is a bunch of music in my library under "purchased" that I did not purchase. where does this come from?

    It is possible you accidently added these songs to it. Even though the Purchased playlist is kind of a smart playlist you can still drag and drop songs from your library into it.

  • Where does data come from? SCOM?

    I'm just trying to get my head around how data is transferred from servers into Ops Insights with SCOM.
    We have 300+ servers in SCOM.  What information is read from SCOM and utilised in Ops Insights? and what information is gathered from servers when needed?  
    Is this just the alert management and configuration assessment that comes from SCOM?
    If I add in logs, such as Application or Security, - are these transferred to SCOM temporarily (or permanently) , and then forwarded to Ops Insights?
    Hope that makes sense? :)
    Cheers
    Darren

    Alert Management is only synced from the management server to the cloud.
    For all other scenario, in SCOM, the data is coming directly from the agents, is NOT stored permanently onprem in any of the databases, but ONLY sent to the cloud. In most cases, data is sent from the agents to the management server first, and then
    to the cloud.
    In some upcoming high-volume intelligence packs, in order not to affect the MS queues, agents will send their data directly to the cloud entirely bypassing the Management Servers. The MS is still used to distribute the configuration down to agents (those
    are 'normal' management packs with a bunch of collection rules, with a special write action...).
    I also advise you watch the TechEd Europe presentation by Joseph Chan that goes into some of this
    http://channel9.msdn.com/Events/TechEd/Europe/2014/CDP-B343
    Our troubleshooting blog post goes in various details about how the communication happens and to which destinations (albeit it is not written as a lecture, but more of a troubleshooting guide)
    http://blogs.technet.com/b/momteam/archive/2014/05/29/advisor-error-3000-unable-to-register-to-the-advisor-service-amp-onboarding-troubleshooting-steps.aspx
    Also read the FAQ on the portal
    https://go.microsoft.com/fwlink/?LinkId=517580
    HTH,

  • Where does it comes from?

    Does anyones knows who is really responsible for rendering a classical java GUI-Object, like JButton or Button? Is the Os responsible, or is Java itself?
    And something last. I intanciate a JButton in the simplest case and i add an ActionListener to respond to each of my clicks. When i press the button an actionEvent is thrown according theory, but where does it really comes from? (Is the Os responsible for that, or it is implemented by java to works with this way). Ending: to resume: the event is a JavaActionEvent, or an OSActionEvent interpreted by VM applicable?

    Does anyones knows who is really responsible for
    rendering a classical java GUI-Object, like JButton
    or Button? Is the Os responsible, or is Java
    itself?There are two parts to the answer
    1. Who renders the GUI object?
    The answer to this is that the UIThread of Java is a thread within the java process that does the rendering
    2. Where does the code for this rendering reside?
    The answer here is that for the original AWT components like Button & Checkbox, these objects had peers which were native objects and did all the rendering.
    I believe that underneath the hood Swing GUI objects must have a peer, probably Canvas, that renders nothing and is something you can draw on. But whether swing objects actually have a lightweight peer or not, the real rendering of these objects is done in java code.
    And something last. I intanciate a JButton in the
    simplest case and i add an ActionListener to respond
    to each of my clicks. When i press the button an
    actionEvent is thrown according theory, but where
    does it really comes from? (Is the Os responsible for
    that, or it is implemented by java to works with thisI am pretty certain that ActionEvents are created by Java. In fact it seems fairly likely that the mouseClicked() method of AbstractButton or JButton creates an ActionEvent. After all how would windows even know to generate an actionEvent on a JButton?

  • Query Build - witch cube does measures comes from?

    Hello!
    It is not possible to see witch cube a measure comes from in the Query Build. I have several measures with the same name but from different Cubes / Analytic Workspaces.
    If I change the Label, then the measure will have that name in the report – this I do not want.
    How do I see witch cube a measure comes from?
    Best regards,
    Tina N Mörnstam
    DB: 10.2.0.3.0
    JDeveloper 10g 10.1.2.2 build 1929
    Oracle Business Intelligence Beans 10.1.2.2

    Hello!
    I found out the answer my self.
    Use "Measure Folders" in AWM.
    Best regards,
    Tina

  • What file does iSync sync from?  Is there a master file?

    My computer just synced. (I have it set to sync once a day.) I got a strange message telling me that it wants to revert back to my old mailing list and when I went to do a Google search I found my settings reverted back to how they were the other day.
    I'm syncing from my iPad, iPod, iDisk (mobile me) and iMac. If I make a change on iPad will that override any change I made on iMac? Or, will it always be whatever change I made on iMac will overwrite what's written on another device? I would think it would be chronological and not from device.
    I want to make sure that the changes I put into place with bookmarks, contacts and the like stay. Can you point me in the right direction?
    Thanks,
    Message was edited by: SirWalterScott

    iSync doesn't sync with iPads, iPods, MobileMe or between Macs. iSync is only for syncing contacts and calendars (from Address Book and iCal) to non-Apple mobile phones via a USB or Bluetooth connection.
    The MobileMe Sync forums start here: http://discussions.apple.com/category.jspa?categoryID=116
    Syncing in Mac OS X does not have a "master file" (except on the very first sync). Everything will be kept in sync across all registered devices no matter where you make changes, additions etc. That's the whole point of syncing.

  • What language does FCE come in?

    When I plan to purchase my macbook pro I can choose to have the english version of os x 10.5.1
    I also want to include FCE 4, however I dont know what language FCE comes in.
    Does it support many languages on 1 cd, but installs to your default os language?
    Thank you

    If the Mac OS current language ("primary system language") is in the list of languages in the Get Info finder window for any application, that application runs with the same Mac OS current language.
    If you disable the primary system language in the Get Info window, English is used. If you disable also English, you get some other (enabled) language chosen in a way that is not clear to me... (not alphabetical, not in the displayed sequence...). In any case by disabling what you don't need at the end you get to the language you want, as long as it is in the list.
    Now, don't ask me how to add or remove languages from that list in the Get Info window: there are Add and Remove buttons, but I never used them...
    Piero

  • Where does XMLDOM come from

    Hello All,
    I have recently come across a problem where I could not locate the XMLDOM package for SYS on one of the Oracle 9i installations. I always thaought my installation was standard installation and XMLDOM appears automatically. Obviously I never went through the different bits and pieces to remove a component from being installed.
    Can anybody tell me which component needs to be selected for me to get XMLDOM on the machine
    TIA,

    this is what "javap -c" generates, which is kind of simlar to what you see from your decompiler there:public static void main(java.lang.String[]);
      Code:
       0:   iconst_1
       1:   istore_1
       2:   iconst_0
       3:   istore_2
       4:   iload_1
       5:   iload_2
       6:   idiv
       7:   istore_3
       8:   getstatic       #2; //Field java/lang/System.out:Ljava/io/PrintStream;
       11:  ldc     #3; //String Phew!
       13:  invokevirtual   #4; //Method java/io/PrintStream.println:(Ljava/lang/String;)V
       16:  goto    48
       19:  astore_3
       20:  aload_3
       21:  invokevirtual   #6; //Method java/lang/Exception.printStackTrace:()V
       24:  getstatic       #2; //Field java/lang/System.out:Ljava/io/PrintStream;
       27:  ldc     #3; //String Phew!
       29:  invokevirtual   #4; //Method java/io/PrintStream.println:(Ljava/lang/String;)V
       32:  goto    48
       35:  astore  4
       37:  getstatic       #2; //Field java/lang/System.out:Ljava/io/PrintStream;
       40:  ldc     #3; //String Phew!
       42:  invokevirtual   #4; //Method java/io/PrintStream.println:(Ljava/lang/String;)V
       45:  aload   4
       47:  athrowThere is also an Exception table, which explains, perhaps, how the "finally" statement is considered:Exception table:
    from   to  target type
       4     8    19   Class java/lang/Exception
       4     8    35   any
      19    24    35   any
      35    37    35   any

  • Huge CPU using : where does it come from ?

    Hi,
    I programm this beginning of game. It's prettty simple , a charachter which rotates following the mouse pointer. The problem is that this simple application uses about 66% of my Athlon 2200+ when I move the mouse.I don't understand , ok there are some mathematics operations and i use two images to do a clip effect , but that's impossible to do a game without that , that's nothing compared with a real game ...
    So can you try to look at my code and tell my why it uses the CPU so much ... and if u have any suggestions about my programming you're welcome
    Thx.
    Julien.
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import javax.swing.border.*;
    public class JWar extends JFrame
        private Engine2d Engine2d_;
        public JWar()
            getContentPane().setLayout(null);
            setSize(800,600);
            this.getContentPane().setBackground(new Color(0,0,0));
            Engine2d_ = new Engine2d(10,10,600,550);
            getContentPane().add(Engine2d_);             
        public static void main(String args[])
         JWar jw = new JWar();
            jw.setDefaultCloseOperation(EXIT_ON_CLOSE);
         jw.setTitle("J-WAR");
            jw.show();
    import javax.swing.*;
    import java.awt.*;
    import java.awt.image.*;
    import java.awt.event.*;
    import java.util.*;
    public class Engine2d extends JPanel implements MouseMotionListener
        private charachter charachter1_ ;
        private Image background_;
        private Image background_gray_;
        private int mouse_x_;
        private int mouse_y_;
        public Engine2d(int x, int y, int width, int height)
            this.setBounds(x,y,width,height);
            this.setBackground(new Color(255,255,255));
            this.addMouseMotionListener(this);
            int c1x=200,c1y=60,v1x=1,v1y=0;
            charachter1_ = new charachter(c1x,c1y,v1x,v1y,this);
            mouse_x_=c1x+v1x;
            mouse_y_=c1y+v1y;
            background_ = new ImageIcon(getClass().getResource("background.gif")).getImage();
            //background_gray_ = new ImageIcon(getClass().getResource("background_gray.gif")).getImage();
        public void paint(Graphics g)
            super.paint(g);
            g.drawImage(background_gray_,0,0,this);
            charachter1_.paint(g);
            g.setClip(charachter1_.get_viewZone());
            g.drawImage(background_,0,0,this);
            charachter1_.paint(g);
        public void mouseDragged(MouseEvent e) {}
        public void mouseMoved(MouseEvent e)
            mouse_x_=e.getX();
            mouse_y_=e.getY();
            if( (mouse_x_!=charachter1_.get_x()) || (mouse_y_!=charachter1_.get_y()) )
               charachter1_.rotate();
       public int get_mouse_x() { return mouse_x_; }
       public int get_mouse_y() { return mouse_y_; }
    import java.awt.*;
    import java.util.*;
    public class charachter
       private int x_;
       private int y_;
       private double vx_;
       private double vy_;
       private int length_view_;
       private int width_view_;
       private Container container_;
       private Polygon viewZone_;
       public charachter(int x, int y, double vx, double vy, Container container)
            x_ = x;
            y_ = y;
            vx_ = vx;
            vy_ = vy;
            length_view_ = 150;
            width_view_ = 60;
            container_ = container;
            viewZone_=calculate_polygon();
       private Polygon calculate_polygon()
           int x1,y1,x2,y2;
           int[] pxs = new int[3];
           int[] pys = new int[3];
            pxs[0]=x_;
            pys[0]=y_;
            x1 = x_ + (int)(-width_view_*vy_);
            x1 = x1 + (int)(vx_*length_view_);
            y1 = y_ + (int)(width_view_*vx_);
            y1 = y1 + (int)(vy_*length_view_);
            x2 = x_ + (int)(width_view_*vy_);
            x2 = x2 + (int)(vx_*length_view_);
            y2 = y_ + (int)(-width_view_*vx_);
            y2 = y2 + (int)(vy_*length_view_);
            pxs[1]=x1;
            pys[1]=y1;
            pxs[2]=x2;
            pys[2]=y2;
            return(new Polygon(pxs,pys,3));  
       public void paint(Graphics g)
           g.setColor(new Color(0,0,255));
           g.fillOval(x_-5, y_-5, 10,10);
           viewZone_ = calculate_polygon();
           g.drawPolygon(viewZone_);
       public void repaint()
            container_.repaint();
       public void recaluculate_vector()
            double vx,vy;
            vx=((Engine2d)container_).get_mouse_x()-x_;
            vy=((Engine2d)container_).get_mouse_y()-y_;
            vx_=vx/(Math.sqrt(vx*vx+vy*vy));
            vy_=vy/(Math.sqrt(vx*vx+vy*vy));
       public void rotate()
           recaluculate_vector();
           repaint();
       public int get_x() { return x_; }
       public int get_y() { return y_; }
       public void set_x(int x) { x_=x; }
       public void set_y(int y) { y_=y; }
       public double get_vx() { return vx_; }
       public double get_vy() { return vy_; }
       public void set_vx(double vx) { vx_=vx; }
       public void set_vy(double vy) { vy_=vy; }
       public int get_length_view() { return length_view_; }
       public int get_width_view() { return width_view_; }
       public Polygon get_viewZone() { return viewZone_; }
       public Rectangle get_Rectangle() { return (new Rectangle(x_-5,y_-5,10,10)); }
    }PS : the two image are 600*500 , the first in color and the second in grey level , to do an effect of limited vison zone ...

    I changed your main a little
    public Engine()
              super("J-WAR");
            getContentPane().setLayout(null);
            setSize(800,600);
            this.getContentPane().setBackground(new Color(0,0,0));
            Engine2d_ = new Engine2d(10,10,600,550);
            getContentPane().add(Engine2d_);
        public static void main(String args[])
         Engine jw = new Engine();
            jw.setDefaultCloseOperation(EXIT_ON_CLOSE);
            jw.setVisible(true);
            jw.pack();
        }your right about the cpu stuff
    I did a test on other code samples that use java3d, and guess what, same thing.
    What you are worried about, I think is not a problem.
    I think you could put thread priorities on it, but that might slow it down.
    You could also , rather than have it 100% active on the mouse, make it only move with mouse click??

  • Poor 3g reception issue does not come from being in a low coverage area.

    For All of you who keep saying that "If youre in a low coverage area the 3g service wont work you must turn off 3g". That is not a solution. Yes it fixes the problem of not being able to talk on the phone but that is just a workaround that in my opinion is not acceptable. The name of the phone is iPhone 3g. The entire reason for buying this phone is the 3g network. If thats not there and frankly who cares about the GPS as its pretty much useless, then we could have kept our old phones. There are numerous reports of people using their old devices with 3g side by side and getting great reception on their other handset. In my opinion there is a problem with this phone and it should probably be returned until apple figures out what they did wrong. Its not the 3g network and its not a lack of coverage as other handsets are getting great reception. ITS THE PHONE!!!

    I removed all of the interface methods and set those properties and it still
    didn't work.
    I also have a custom skin on this class. I removed that and tabbing started
    to work again.
    Is there any good advise on how to prevent my skin from having effect on the
    group within the container? I've seen a good bit about focus and skins, but
    nothing about skins on a container? all the skin has is replacements for the
    header bar and the close button.
    Thanks!

  • Phone makes "morse code" sound when in use, not all the time but quite frequently. The sound does not come from the speakers, infact it comes from the comments inside the phone.

    When in use my phone makes a quiet buzzing noise coming not from the speakers but the actual phone. It does not do it all the time but it is quite frequent, my phone is an iPhone 5. Please can you tell me what the problem  is?

    Make an appointment at the Genius Bar to have it evaluated by the techs there. This is not normal and is probably not something that a user can fix.

  • Cracked my iPhone 5! Can I take it to apple and pay to replace whole phone? If so what price does this come at?

    I need to know if apple will replace my iPhone
    It is still under warranty
    I want the whole handset replaced and am willing to pay
    Is this possible?
    Thank you

    Peter Gillespie wrote:
    I believe you are wrong
    If the donor has warranty left regardless of the OoW status the above counts
    That was a quote from the OoW section
    When setting up out-of-warranty service, Apple will request credit card pre-authorization for the maximum service fee listed above.  This amount will be deducted from your credit limit. The final service fee we charge will be determined during testing and may be less than the service fee listed above.  Certain damage is ineligible for out-of-warranty service, including catastrophic damage, such as the device separating into multiple pieces, and inoperability caused by unauthorized modifications. However, an iPhone that has failed due to contact with liquid may be eligible for out-of-warranty service.  Apple reserves the right to determine whether or not your iPhone is eligible for Out-of-Warranty service. iPhones that are repaired or replaced have a 90-day limited hardware warranty or assume the remainder of your standard warranty or AppleCare service contract coverage, whichever is longer. Please see Apple's Repair Terms And Conditions for further details.
    Sorry but the above is crystal clear
    I admit I've never paid any attention to that note on the support page, and reading it, in my own personal experience, it is not interpreted as written, at least in the USA.  Again, based on my own personal service experience, the terms that legally apply and are in fact applied when seeking out of warranty service on any Apple product, are those in the general terms http://www.apple.com/legal/sales-support/terms/repair/generalservice.html.  If you read section three, there is no mention nor implication that anything done "out of warranty" carries anything but the 90 day coverage (and those terms expressly nullify any and all other).
    It may also be completely different in different countries as well, depending on how local consumer laws affect what a company can or cannot do.  But it has been my experience in the USA, when I have sought out of warranty service on Apple products (iOS devices as well as others), the warranty is considerd null and void, and only the limited warranty mentioned in the link above applies to the replacement device or parts.
    That's all I am going to say on it as I'm not about to get into an interpretive legal debate over lawyerize in warranty documents.  Anyone seeking out of warranty service can simply confirm with Apple for themselves what applies, in their specific situation and their specific country.

Maybe you are looking for

  • Livecycle Designer ES 8.2 Crashing When Trying to Add Elements

    I've created a form and hit a roadblock. The form is 17 pages long and contains 151 elements. When attempting to add another element the application shows not responding and then eventually crashes.  Worse yet, it corrupts the PDF.  The byte count fo

  • Time Constraint on Corporate Function Infortype

    Hi everyone, If it's possible, I'd like to know how to configure the time constraint of Corporate Function infotype. The Time Constraint settings are incorrect for Infotype 0034 (Corporate Function). There must be only one valid record existing/activ

  • Coding Block

    Hi all, Can anyone explain me with an example how do we add a coding for G/L and how to change the standard program RFBIBL00 program to populate those fields in Coding Block. Plase advise on how to go about in terms of Configuration of Coding Block f

  • So frustrating that nobody knows why. Audio Sync issue.

    I have an imovie project of old family footage that was ported over from VHS through a sony dcr pc120e mini dv cam straight through to intel imac via firewire. The imovie project is flawless and the sound is perfectly in sync. ive exported to idvd an

  • Importing mp3 files to iMovie

    I'm trying to add some music to an iMovie project, but when I select iTunes, it does not show any of my music, just returns 'open iTunes to populate this list'. Even with iTunes open, I do not see my music, any suggestions ?