A quick question  of Logical Operator - NOT?

I know that the logical operator for NOT is " ! " sign.
But someone could please tell me how do I use the NOT operator in the below code.
if (c instanceof JLabel) Thanks

Before you use this, think long and hard if there's a better way to
achieve your goal than wandering through all of a panel's
components checking for those that aren't JLabels.
import javax.swing.*;
public class Not {
     public static void main(final String[] argv) {
          final JComponent panel = new JPanel();
          if (!(panel instanceof JLabel)) {
               System.out.println("It works.");
}

Similar Messages

  • I don't know where else to ask this: Quick Question about Logic Platinum 6

    Hi everyone,
    This question actually pertains to a copy of Logic Platinum 6 I own but I don't know where else to ask it, so here I am in the Logic 8 forum.
    I haven't touched Logic in a year or maybe two, and I just installed it on my computer and after attempting to start it up with two different XS keys (I thought I lost one so I have a replacement and I forget which one is the active one) it says "no XS key found" to both of them.
    I want to upgrade to Logic 8 but in the mean time I can't even get Logic 6 to recognize my XS key.
    Please help me out if you have any information that would be beneficial or know where I could seek help!
    Thank you!
    Colin C.

    When you plugin them in, are they recognised in System Profiler? Try differnt ports, connecting them directly and not on a hub. Try on a different computer if necessary.
    You can also try running:
    http://docs.info.apple.com/article.html?artnum=301954

  • Quick Question about logic bus sends

    Hi,
    Please help- In Logic, I am sending some channels to busses for echo etc, but when I mute the channel being sent, the signal is still sent to the buss and echoed wet signal continues. I know in real desks you get pre fader and post fader, but can't find place to change these settings!
    Anyone know?
    Thanks, Ben (Brazil)

    Click-hold the send slot and a list will open where you can select pre or post fader at the top of the list.
    Hens Zimmerman
    http://37hz.net

  • HT4623 Hi I have a question, I am operating my iPhone 4S on 6.1.1iOS, as my power button is not working, I have jailbreoked my device so that I have a option to restart and shutdown my device. If i upgrade to iOS 7 do i have such option?

    Hi I have a question, I am operating my iPhone 4S on 6.1.1iOS, as my power button is not working, I have jailbreoked my device so that I have a option to restart and shutdown my device. If i upgrade to iOS 7 do i have such option?

    Jailbreaking your iPhone forfeits your ability to receive any support on that phone, including from this forum.
    You'll have to search elsewhere for answers to your issue.

  • Hi, I have quick question about use of USEBEAN tag in SP2. When I specify a scope of SESSION for the java bean, it does not keep the values that I set for variable in the bean persistent.Thanks,Sonny

     

    Make sure that your bean is implementing the serializable interface and that
    you are accessing the bean from the session with the same name.
    Bryan
    "Sandeep Suri" <[email protected]> wrote in message
    news:[email protected]..
    Hi, I have quick question about use of USEBEAN tag in SP2. When I
    specify a scope of SESSION for the java bean, it does not keep the
    values that I set for variable in the bean persistent.Thanks,Sonny
    Try our New Web Based Forum at http://softwareforum.sun.com
    Includes Access to our Product Knowledge Base!

  • [nQSError: 59001] Binary Logical operation is not permitted

    Hi All,
    I am querying 3 columns in a report.
    E.g.
    Sales -> Directly pulled from the database column
    Prior Month Sales -> AGO("Sales subject area"."Key Measures"."sales", "Sales subject area".Time_Dimension."Month", 1)
    Current YTD ->
    (CASE WHEN "Sales subject area".Time_Dimension."Year" = VALUEOF("CURRENT_YEAR") AND "Sales subject area".Time_Dimension."Month Number" <= VALUEOF("CURRENT_MONTH") THEN "Sales subject area"."Key Measures"."Sales" ELSE 0 END )
    I get the following error:
    State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 59001] Binary Logical operation is not permitted on VARBINARY, INTEGER operand(s). (HY000)
    Please let me know how to go about this.

    The Data types are as follows:
    1. Sales = Double
    2. Month = Varchar
    3. Month Num is calculated column from -> MOD("Sales Subject Area".Calendar.TimeID, 100) and time id is "Int"
    The Rpd variables are:
    1. Current Year = CAST(SUBSTRING(CAST(MAX(YEARMONTH) AS VARCHAR),1,4) AS INTEGER)
    2. Current Month = CAST(SUBSTRING(CAST(MAX(YEARMONTH) AS VARCHAR),,6) AS INTEGER)
    3. Prior Year = CAST(SUBSTRING(CAST(MAX(YEARMONTH) AS VARCHAR),1,4)-1 AS INTEGER)
    Basically we dont want to use TODATE function as it is not working properly for Prior YTD.

  • cm:search is not returning any result when logical operator '!' is used.

    <cm:search is not returning any result when logical operator '!' is used.
    I am using BEA 9.1 content management services API. When I run the following query I am not receiving any results. Also no error or exceptions are seen in the weblogic or cmspi log.
    The query is <cm:search id="docs" query="!(object_name like 'Sport*')" />

    HI cam 
    Thanks for your reply, but i found the problem it was because my server administrator password has changed by network guys... and because of it crawler unable to access the content 
    I wrote my solution here i hope it will help other people 
    http://bvs-sharepoint.blogspot.com/2015/03/sharepoint-search-is-not-returning.html
    RB

  • Is there a quick way to view pages in Safari, Firefox, Opera (not Live Preview)?

    Is there a quick way to view pages in Safari, Firefox, Opera (not Live Preview)?

    Currently, no, but we have an item in our backlog to research this.
    Randy

  • Screen not flush with bezzle,quick question...

    Hey guys I have a quick question,ok so I just visited a apple store and recieved a new/referb. iPhone 3gs because of dust under the screen and noticed that the replacement phones bezzle and screen isn't flush and was wondering if i could bring the new phone in for a replacement phone with a flush screen? It's not realy a big issue but the first iPhone 3gs I had didn't have this problem.
    Also has anyone had any experiences with this issue?
    Thanks for your time and your help,
    Noah
    Message was edited by: Mr.Noah Renfrow
    Message was edited by: Mr.Noah Renfrow

    the 3GS is known for that. you should be able to return it.

  • Hi there. A common question but I can not get any of our iphone/touch/pad to be recognised as a device on itunes on a PC with XP. ANy quick solutions?

    Hi there. A common question but I can not get any of our iphone/touch/pad to be recognised as a device on itunes on a PC with XP. ANy quick solutions?

    jrburrows wrote:
    Ok, fair enough.  But since Job's death - Apple's control on leaks has been terrible.  I got the new iPhone, and I like it - but it hasn't made nearly as big as an impression as previous ones.  Because of the vast ammount of leaks.  With the iPad mini leaks, it's 99% sure to come out next week.
    Apple uses many manufacturers and it's massive also websites prefer to report on Apple whether true or false because it brings more hits.
    Amd by "others" I meant other people on iPads - not other devices/manufacturers.  It's possible to do so, I just want to know how.  I honestly don't think we'll ever be in a Post-PC era until all tablets allow us to use USB in the way computers do.
    No, USB is not the future, you missed the memo about cloud and wireless computing?

  • Some quick questions before purchase of MBP

    Hey Guys/Gals,
    I've been a PC user all my life, but will now be making a permanent switch to Macs. I've been wanting to buy a MBP since they have been released, but have been hesitant (like many others I think...) about the issues of whine, extreme heat, warped screens etc...
    With the recent updates of the logic board and even battery, I think I'm ready to go for it. I just had some quick questions before I place my order:
    1. I could order my MBP from the computer store at my university. Do you guys think that will get me the newest possible MBP or will they maybe get me one that they have had in stock for ages? I really don't want to get stuck with an outdated logic board and/or battery. Is it safest just to order directly from the site?
    2. Although the issue with really hot MBPs seems to have gotten better, I am still quite shocked that people say that temperatures well above 70 Celsius are "within spec". I understand that Apple officially states this and that the Intel chip can handle up to 100 Celsius, but this seems crazy to me Basically, I want to ask if I am correct in my observations that the new Intel chips don't get much hotter than other chips around, but rather Apple has chosen to set the temperature mark that sets off the fans pretty hight (around the 70s if I remember correctly?)
    I would assume that in following their "mission" of creating beautifully designed computers, Apple also wants to have a really silent one. Now I'm all for a quiet machine, but I feel as though if fans were on either (a) all the time or (b) when the CPU reaches the high 50s lots of people would be happier.
    Anyway, it's just a thought. I noticed there are lots of experts around here, so I'm just interested to hear what you guys think about this approach that Apple seems to have taken. I don't think the heat will stop me from getting this amazing notebook, but it certainly is a little frustrating.
    Any responses are greatly appreciated.

    1. I could order my MBP from the computer store at my university. Do you guys think that will get me the newest possible MBP or will they maybe get me one that they have had in stock for ages? I really don't want to get stuck with an outdated logic board and/or battery. Is it safest just to order directly from the site?
    No matter where you take possession there's no assurance of when the machine was manufactured. There is really just as good a chance of getting a perfectly good computer regardless of place of purchase. If there is a problem it's covered under warranty. You can have the computer replaced within the first two weeks. Afterwards they will replace or repair. Without Applecare's extended warranty the computer is warranted for one year after purchase.
    2. Although the issue with really hot MBPs seems to have gotten better, I am still quite shocked that people say that temperatures well above 70 Celsius are "within spec". I understand that Apple officially states this and that the Intel chip can handle up to 100 Celsius, but this seems crazy to me Basically, I want to ask if I am correct in my observations that the new Intel chips don't get much hotter than other chips around, but rather Apple has chosen to set the temperature mark that sets off the fans pretty hight (around the 70s if I remember correctly?)
    You are wrong in your assumption. The Core Duo's maximum temperature is 125C before shutdown. Normal operating temperatures according to Intel's own documentation is 50-70C under average load. MBPs under heavy load will typically reach core temperatures over 80C. Then there's the added heat from the hard drive and GPU. The aluminum case acts as a partial heat radiator hence the case temperatures can get high. The MBP User Guide specifically states this and issues a warning about using the computer on one's lap.
    I would assume that in following their "mission" of creating beautifully designed computers, Apple also wants to have a really silent one. Now I'm all for a quiet machine, but I feel as though if fans were on either (a) all the time or (b) when the CPU reaches the high 50s lots of people would be happier.
    In fact the fans in the MBP are very quiet at least mine are. Unless you are in the hardware design business with intimate knowledge of using Core Duo chips in portable computers, then your observations, although certainly your opinion, are not based on anything factual.
    Anyway, it's just a thought. I noticed there are lots of experts around here, so I'm just interested to hear what you guys think about this approach that Apple seems to have taken. I don't think the heat will stop me from getting this amazing notebook, but it certainly is a little frustrating.
    More likely there are a lot of people around here who think they are experts. As the remark goes, "An 'expert' derives from ex, meaning 'has been', and spert, meaning 'drip under pressure.'"
    You'll read lots of opinions on these forums. Don't take for granted that everything you read is factual or truth. A lot of the opinions expressed are without any basis in fact.

  • Logical Operator list to end users

    Hi,
    Is there any way that we can provide Logical operator also in the filter/prompt, for the end user in WebI on top of a SAP BW universe?
    Ex: User has to select a logical operator(like <,<=,>,>=,= etc) and value for a 'Net Due Date' filter
    Tried searching the forum, but did not get the proper work around.
    Thank you in advance.
    ---Veera

    are you talking about adding filters in webi reports?
    i think its easy,
    just in the query itself you can add filter and make it as prompt.
    but you have to select the operator, case this is something you have to do into the query itself.
    users can not do this when they are running the report.
    but there is another option which is "Quick Filter" in there users can add quick filters and select operators as they like.
    good luck

  • Basic view/stream join problem (Logical Operator LO_CROSS error)

    Hi -
    I am writing a CQL processor which processes a stream of events. It translates them 1:1 to another type of event, and also assigns a calculated Version field to the output events.
    The inbound events have an ID field which may contain duplicates. The version is an internal sequence starting at 1 for each ID, and incrementing by ID each time another instance of that ID is seen.
    Sample input (schema: ID, Payload):
    1, abc
    2, abc
    3, abc
    1, def
    4, abc
    2, defDesired output (schema: ID, Version, Payload):
    1, 1, abc
    2, 1, abc
    3, 1, abc
    1, 2, def
    4, 1, def
    2, 2, defI have defined a processor with a view that aggregates the inbound events in a fixed depth relation (I receive fewer than 1000 events/versions per ID), and try to join that to a transform query:
    <view id="Versioner">
      select id, count(*)+1 as version
      from inboundEvents [partition by id rows 1000]
      group by id
    </view>
    <query id="Translator">
      select payload, ..., f.id, v.version
      from inboundEvents as f, Versioner as v
      where f.id=v.id
    </query>Question 1 - when deploying, CEP gives this error, which I don't understand. What basic error am I making?
    Description: unbound stream not allowed
    Cause: A stream input was applied to Logical Operator LO_CROSS
    Action: Do not use stream input for Logical Operator LO_CROSS> Question 2 - is there a better CQL pattern for this - it is ugly to need to fix the partition depth to 1000.
    -thanks, Barney
    Edited by: Barney on 10-Aug-2011 10:59

    Q1 -"inboundEvents" is a Stream and a Stream without a window cannot be used in a Join
    You could instead use the query
    <query id="Translator">
    RSTREAM (
      select payload, ..., f.id, v.version
      from inboundEvents[NOW] as f, Versioner as v
      where f.id=v.id
    </query>Q2 - You do not need the PARTITION window. Instead, just use
    <view id="Versioner">
      select id, count(*)+1 as version
      from inboundEvents
      group by id
    </view>

  • Some quick questions before I purchase LE8..

    Hi all,
    I'm a longtime mac user and I just got into music production. I plan on mainly making Hip Hop beats and also record me playing bass on sampled tracks. I have already purchased an audio interface( PreSonus Firebox 6x10) and some monitors (KRK RP5's). I'm going to be purchasing LE8 and a MIDI keyboard soon, as well as a turntable for sampling vinyl sometime this week.
    I got some quick questions though. If I'm loading samples off vinyl into the ESX24 sampler in LE8, what program can I use within LE8 to cut the desired parts of the sample? Then assign them to my MIDI keyboard or Akai MPD24.
    I plan on hooking everything up to my 2.16ghz w/2MB Macbook and was wondering if it could withstand Logic. Also, will I need to update any drivers for the firebox? I remember reading problems about it working with Logic.
    Any help would greatly be appreciated. If any Hip Hop heads here have any tips/ suggestions, lemme know!
    Thanks,
    JC
    Message was edited by: sonofabass

    I'm not a big expert on audio recording, but other than the video card (which would not be a big factor for audio) you can't really upgrade it to much further than what you specified. You could increase the internal storage, but I've always been inclined to keep most of my personal files (things I am not actively working on now) on an external drive, and keep the OS, applications, and my current ongoing work on the internal drive, along with plenty of free space. I think that improves performance. If you did get the larger internal storage option, you might consider partitioning it into two volumes. You could keep your OS, apps, ongoing work, and that free space on one volume, and use the other volume for the long-term storage of your user files. Or maybe for your audio work, it is better to have a separate volume that is a dedicated +scratch space+, so if you had the larger internal drive, you can use that space more flexibly.
    One other consideration is the CPU speed. There is really very little difference between 2.93 GHz and 3.06 GHz. It's about 4%, but in the real world, the performance difference is probably even less. So you could trade the $150 for the slightly faster speed and get the extra internal storage for $100, saving you $50.
    Also, the online store has a page for clearance and refurbs (Special Deals). For example, this one is currently listed
    http://store.apple.com/us/product/FB419LL/A?mco=MjE0NDk5Mw
    It is the current gen iMac model. Note: Many of the items on the Special Deals section are previous generation Mac models (so keep that in mind if you look at other listings). My current iMac is a refurb. In my experience, the one Mac and two iPods I have purchased as refurbs have looked new. They just come in a plain brown box instead of the fancy retail packaging. The warranty is the same as new.

  • Logical Operations in SQL decode function ?

    Hi,
    Is it possible to do Logical Operations in SQL decode function
    like
    '>'
    '<'
    '>='
    '<='
    '<>'
    not in
    in
    not null
    is null
    eg...
    select col1 ,order_by,decode ( col1 , > 10 , 0 , 1)
    from tab;
    select col1 ,order_by,decode ( col1 , <> 10 , 0 , 1)
    from tab;
    select col1 ,order_by,decode ( col1 , not in (10,11,12) , 0 , 1)
    from tab;
    select col1 ,order_by,decode ( col1 ,is null , 0 , 1)
    from tab;
    Regards,
    infan
    Edited by: user780731 on Apr 30, 2009 12:07 AM
    Edited by: user780731 on Apr 30, 2009 12:07 AM
    Edited by: user780731 on Apr 30, 2009 12:08 AM
    Edited by: user780731 on Apr 30, 2009 12:08 AM
    Edited by: user780731 on Apr 30, 2009 12:09 AM

    example:
    select col1 ,order_by,case when col1 > 10 then 0 else 1 end
    from tab;
    select col1 ,order_by,case when col1 &lt;&gt; 10 then 0 else 1 end
    from tab;
    select col1 ,order_by,case when col1 not in (10,11,12) then 0 else 1 end
    from tab;As for testing for null, decode handles that by default anyway so you can have decode or case easily..
    select col1 ,order_by,decode (col1, null , 0 , 1)
    from tab;
    select col1 ,order_by,case when col1 is null then 0 else 1 end
    from tab;

Maybe you are looking for

  • IP-sla udp-jitter / one-way delay no output

    Hi *, i have a question regarding "ip sla udp-jitter". On some connectins i get an output for the "show ip sla stat" for the _one-way delay_ on other links i don't get an output. The Configuration is always the same and the Probes are running. NTP is

  • How to create master group in Portal - Segment Builder?

    Hi All, May i know how to create master group by using existing target group in segment builder PCUI in portal? I manage to do it in sapgui: tc: crmd_mktseg_mgr -> create new master group -> assign existing target group -> execute button -> master gr

  • Dialup to Serial (non-PPP) modem?

    Hi,  I just got my first Blackberry 8820 and really like it so far.  I can do everything I need at work with it, except for one thing I haven't figured out yet.  I have already figured out how to connect my laptop to the blackberry and get Internet a

  • What is the actual version of BEx Analyser

    Hello everybody! I have big problems with my local installed BEx Analyser. I have Relase 2004s, Support Package 0, Revision 461. Where can I download a up-to-date version? Regards, Thomas

  • How do I enable plug-ins for InDesign CS2 - files won't open

    How do I enable plug-ins for InDesign CS2 - files won't open. I own CS2. I shouldn't have to buy CS6 InDesign. How do I open CS 2 files and get the plug ins again.