Why doesn't my JDialog content paint?

Folks,
I started playing with converting the "little mouse-maze" game in [this thread|http://forums.sun.com/thread.jspa?threadID=5353283] from an applet to a swing app, and I'm stuck.
The contents of the "Game Over" JDialog doesn't paint (I see dialog border, but the background through content window... and I'm totally clueless as to why or what to do about it... It's pretty obvious that it's a side-effect of the custom painting routine... which I presume must be painting over the top of the dialog content... or maybe the dialog isn't being painted at all because I've blocked the parent's paint-component by showing the dialogue... Hmmm, maybe I need to invoke-it-Later?
package forums;
import java.awt.*;
import java.awt.image.*;
import java.awt.event.*;
import javax.swing.*;
public class MaxWallacesCollision extends JPanel
  private static final long serialVersionUID = 1L;
  private static final int[] leftWallX = {0,204,204,149,149,162,162,243,260,235,259,232,260,230,207,207,0};
  private static final int[] leftWallY = {500,499,402,402,341,324,227,191,157,141,135,123,116,109,86,1,1};
  private static final int[] playAreaX = {204,204,149,149,162,162,243,260,235,259,232,260,230,207,207,263,263,245,282,262,274,257,273,250,184,184,170,170,208,216,216};
  private static final int[] playAreaY = {499,402,402,341,324,227,191,157,141,135,123,116,109,86,1,1,86,103,115,129,138,147,155,201,230,323,340,384,384,402,499};
  private static final int[] rightWallX = {500,500,263,263,245,282,262,274,257,273,250,184,184,170,170,208,216,216};
  private static final int[] rightWallY = {500,0,1,86,103,115,129,138,147,155,201,230,323,340,384,384,402,499};
  private static final int START_X = 208;
  private static final int START_Y = 490;
  private Polygon leftWall = new Polygon(leftWallX, leftWallY, 17);
  private Polygon playerArea = new Polygon(playAreaX, playAreaY, 31);
  private Polygon rightWall = new Polygon(rightWallX, rightWallY, 18);
  private Rectangle rect = new Rectangle(3,3);
  private Rectangle goal = new Rectangle(207,0,55,25);
  private JFrame frame;
  private boolean listening = false;
  private boolean mouseInside = false;
  public MaxWallacesCollision() {
    super( (LayoutManager)null );
    this.addMouseListener(new MouseAdapter() {
      @Override
      public void mouseEntered(MouseEvent e) {
        //System.out.println("DEBUG: mouseEntered");
        mouseInside=true;
      @Override
      public void mouseExited(MouseEvent e) {
        //System.out.println("DEBUG: mouseExited");
        mouseInside=false;
    this.addMouseMotionListener(new MouseMotionListener() {
      @Override
      public void mouseMoved(MouseEvent e) {
        //System.out.println("DEBUG: mouseMoved"+e.getX()+" "+e.getY());
        //move the yellow square according to mouse position
        rect.setLocation(e.getX()-rect.width/2, e.getY()-rect.height/2);
        repaint();
      public void mouseDragged(MouseEvent e) {
    final JButton startButton = new JButton("Start");
    startButton.setBounds(START_X-25, START_Y-14, 50, 25);
    startButton.setMargin(new Insets(1,1,1,1)); // top, left, bottom, right
    startButton.addActionListener(new ActionListener() {
      public void actionPerformed(ActionEvent e) {
        listening=true;
        startButton.setVisible(false);
    super.add(startButton);
  public Dimension getPreferredSize() {
    return new Dimension(500,500);
  public void paintComponent(Graphics g2d) {
    super.paintComponent(g2d);
    g2d.setColor(Color.WHITE);
    g2d.fillRect(0,0, (int)getSize().getWidth(), (int)getSize().getHeight() );
    g2d.setColor(Color.BLUE);
    g2d.fillPolygon(playerArea);
    g2d.setColor(Color.GREEN);
    g2d.fillRect(goal.x, goal.y, goal.width, goal.height);
    g2d.setColor(Color.RED);
    g2d.fillPolygon(leftWall);
    g2d.fillPolygon(rightWall);
    g2d.setColor(Color.YELLOW);
    g2d.setFont(new Font("Helvetica",Font.BOLD,16));
    if (mouseInside) {
      g2d.fillRect(rect.x, rect.y, rect.width, rect.height);
    } else {
      g2d.fillRect(START_X, START_Y, rect.width, rect.height);
    g2d.setColor(Color.BLACK);
    if (listening && mouseInside && (leftWall.intersects(rect)||rightWall.intersects(rect)) ) {
      listening = false;
      g2d.drawString("Crashed!", rect.x, rect.y);
      for ( MouseMotionListener l : getMouseMotionListeners() ) {
        removeMouseMotionListener(l);
      JOptionPane.showMessageDialog(SwingUtilities.getWindowAncestor(this), "Collision!", "Game Over", JOptionPane.INFORMATION_MESSAGE);
      System.exit(1);
  public static void main (String[] args) throws Exception {
    SwingUtilities.invokeLater(
      new Runnable() {
        public void run() {
          JFrame frame = new JFrame("Add Text to List");
          frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
          frame.setContentPane(new MaxWallacesCollision());
          frame.pack();
          frame.setVisible(true);
}Any guidance would be appreciated.
Thanx all. Keith.

I tried the invokeLater thingummy... which seems to work... Still, What's going on here? I guess the modal-dialog blocked the EDT, so no part of the app could be repainted? Is that it?
package forums;
import java.awt.*;
import java.awt.image.*;
import java.awt.event.*;
import javax.swing.*;
public class MaxWallacesCollision extends JPanel
  private static final long serialVersionUID = 1L;
  private static final int[] leftWallX = {0,204,204,149,149,162,162,243,260,235,259,232,260,230,207,207,0};
  private static final int[] leftWallY = {500,499,402,402,341,324,227,191,157,141,135,123,116,109,86,1,1};
  private static final int[] playAreaX = {204,204,149,149,162,162,243,260,235,259,232,260,230,207,207,263,263,245,282,262,274,257,273,250,184,184,170,170,208,216,216};
  private static final int[] playAreaY = {499,402,402,341,324,227,191,157,141,135,123,116,109,86,1,1,86,103,115,129,138,147,155,201,230,323,340,384,384,402,499};
  private static final int[] rightWallX = {500,500,263,263,245,282,262,274,257,273,250,184,184,170,170,208,216,216};
  private static final int[] rightWallY = {500,0,1,86,103,115,129,138,147,155,201,230,323,340,384,384,402,499};
  private static final int START_X = 208;
  private static final int START_Y = 490;
  private Polygon leftWall = new Polygon(leftWallX, leftWallY, 17);
  private Polygon playerArea = new Polygon(playAreaX, playAreaY, 31);
  private Polygon rightWall = new Polygon(rightWallX, rightWallY, 18);
  private Rectangle rect = new Rectangle(3,3);
  private Rectangle goal = new Rectangle(207,0,55,25);
  private JFrame frame;
  private boolean listening = false;
  public MaxWallacesCollision() {
    super( (LayoutManager)null );
    this.addMouseListener(new MouseAdapter() {
      @Override
      public void mouseExited(MouseEvent e) {
        listening=false;
    this.addMouseMotionListener(new MouseMotionListener() {
      @Override
      public void mouseMoved(MouseEvent e) {
        //move the yellow square according to mouse position
        rect.setLocation(e.getX()-rect.width/2, e.getY()-rect.height/2);
        repaint();
      public void mouseDragged(MouseEvent e) {
    final JButton startButton = new JButton("Start");
    startButton.setBounds(START_X-25, START_Y-14, 50, 25);
    startButton.setMargin(new Insets(1,1,1,1)); // top, left, bottom, right
    startButton.addActionListener(new ActionListener() {
      public void actionPerformed(ActionEvent e) {
        listening=true;
        startButton.setVisible(false);
    super.add(startButton);
  public Dimension getPreferredSize() {
    return new Dimension(500,500);
  public void paintComponent(Graphics g2d) {
    super.paintComponent(g2d);
    g2d.setColor(Color.WHITE);
    g2d.fillRect(0,0, (int)getSize().getWidth(), (int)getSize().getHeight() );
    g2d.setColor(Color.BLUE);
    g2d.fillPolygon(playerArea);
    g2d.setColor(Color.GREEN);
    g2d.fillRect(goal.x, goal.y, goal.width, goal.height);
    g2d.setColor(Color.RED);
    g2d.fillPolygon(leftWall);
    g2d.fillPolygon(rightWall);
    g2d.setColor(Color.YELLOW);
    g2d.setFont(new Font("Helvetica",Font.BOLD,16));
    if (listening) {
      g2d.fillRect(rect.x, rect.y, rect.width, rect.height);
    } else {
      g2d.fillRect(START_X, START_Y, rect.width, rect.height);
    g2d.setColor(Color.BLACK);
    if (listening && (leftWall.intersects(rect)||rightWall.intersects(rect)) ) {
      listening = false;
      g2d.drawString("Crashed!", rect.x, rect.y);
      SwingUtilities.invokeLater(new Runnable() {
        public void run() {
          crash();
  private void crash() {
    for ( MouseMotionListener l : getMouseMotionListeners() ) {
      removeMouseMotionListener(l);
    JOptionPane.showMessageDialog(SwingUtilities.getWindowAncestor(this), "You crashed!", "Game Over", JOptionPane.INFORMATION_MESSAGE);
    System.exit(1);
  public static void main (String[] args) throws Exception {
    SwingUtilities.invokeLater(
      new Runnable() {
        public void run() {
          JFrame frame = new JFrame("Add Text to List");
          frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
          frame.setContentPane(new MaxWallacesCollision());
          frame.pack();
          frame.setVisible(true);
}The challend is to "move" the mouse-pointer automagically to the start position... sounds hard, coz I bet that ain't "normal"... Maybe Robot can do that?
Cheers all. Keith.

Similar Messages

  • Why doesn't the "Mail" content box?

    When I try add mail content box. It does not appear in the "Add Content" box. Why? "Mail" should be between "Organization View" and "Profile" content box. I restarted a few times.

    Thanks Sreadhar. How do I know I will "Adding Resource Catalog Components to Pages." But there isn't "Mail" component.
    Edit first messsages: Mail component should be between "Forums" and "Members" components. But isn't there in my WebCenter Portal.
    Sory for my poor English.
    Must be:
    My Webcenter Portal:

  • Why doesn't my iTunes content show in Library? Also, How can I sync music purchased on my iPhone to my PC's iTunes Library?

    I have been having several annoying problems with iTunes for the past several months...
    1) Library content not showing after folder relocation:
    First, in order to free up space on my C drive, I wanted to relocate my iTunes folder to a new 1TB hard drive (F) I installed. I did so according to Apple's instructions online, but despite setting the new location to be my library in my iTunes preferences, the content never shows up in the iTunes Library in the actual application. This is my most annoying problem, so please someone help me to resolve this! Thanks.
    2) Albums purchased on iPhone 5 only sometimes sync with PC
    I have purchased a few albums on my iPhone 5 and only some of them have synced to my PC when I connect my iPhone via USB. They don't even appear under the "Purchases" playlist in the iTunes Store. So, I have content right now on my iPhone that I can only access via my iPhone, and some of the music has gone missing. One or two tracks from albums are not there despite me purchasing full albums at a time... This is also pretty dang annoying and prevents me from trying a solution I'd looked up to fix my third problem...
    3) Album artwork mixed up/mismatched on iPhone 5
    This is pretty self-explanatory. Ony day my album artwork decided to play musical chairs. So now, for example, it shows Andrew W.K.'s bloody face when I listen to Zedd, and shows Skrillex when I listen to Symphony X. I read online that if you desync your content on you iPhone so that none of the music is there any longer, and then resync content from your computer, it will fix this issue. I'm hesitant to apply this solution until I can fix the ones above though, because I don't want to lose content that I have legally paid for.
    My final problem:
    4) Apple charges $20 for a support phone call for iTunes
    Seriously, WTH? I hope the community can help me out. Thanks all!

    1) The best way to relocate the iTunes library folder is to move the entire iTunes folder with all subfolders to the new path, then press and hold down shift as start iTunes and keep holding until prompted to choose a library, then browse to the relocated folder and open the file iTunes Library.itl inside it.
    If you've done something different then provide some more details about what is where and I should be able to help.
    2) Purchases on the device should automatically transfer to a Purchased on <DeviceName> playlist, but it my depend a bit on whether automatic iCloud downloads are enabled. If there is a cloudy link then the transfer might not happen. You can use File > Devices > Transfer Purchases. In iTunes you should also check out iTunes Store > Quick Links > Purchased > Music > Not on this computer.
    3) Backup the device, then immediately restore it. In some cases you need to add a restore as new device into that equation. Obbviously not to be attempted until you're sure all your media is in your library. See Recover your iTunes library from your iPod or iOS device should it be needed.
    4) I believe there is complimentary 1 incident 90-day support with hardware purchases, but no free software support for iTunes itself. AppleCare gets you a different level of support.
    tt2

  • What's the searchplugins folder and why doesn't its content show up in the Manage Plugins menu?

    Today on my first Search bar attempt, my search page got redirected from Google to www.bigseekpro.com, which I had never heard of. I checked my Plugins and Addons, it didn't show up there. But my home page had also been hijacked, from the tabs I normally go to, to only go to this new page. I did find in C:\uerdatada\appdata\roaming\mozilla\firefox\profiles\cawypqyo.default a new folder created a few moments before, \searchplugins, and in this a file search.xml, which contained xml commands to redirect the search activity.
    These look suspicious: the first command sets xmlsn:os to "http://a9.com", which I can't seem to find anything on with whois or tracert; bigseekpro.com itself traces to its registry at godaddy.com, but that's about all I'm finding.
    If this is a legitimate place for Firefox to look for a plugin, why doesn't the Firefox plugin manager tell me it found something there? And why couldn't the Help articles on "Search not going where you want it to" also tell me about this?
    Any ideas? Am I right to be highly suspicious of this behavior?

    Search engine plugins are kept separate from Add-ons (Extensions, Plugins, Appearance). Search plugins, both the default search engines supplied with Firefox and those that you install will be shown in the Search Bar (see [http://kb.mozillazine.org/Search_Bar Search Bar]).
    The folder '''''searchplugins''''' in your Profile folder ('''the path you mentioned''') is for search engines '''''added by you or something that you have installed'''''. You can remove any found in the Profile folder in the '''''searchplugins''''' sub-folder. The items there '''''may''''' make/have made changes to other search functions in Firefox.
    *Are searches from your '''Location Bar''' going to the place and/or search engine you expect?
    *Are searches from your '''Search Bar''' going to the place and/or search engine you expect?
    '''''The default search engines included with Firefox''''' are not in that folder in your Profile, but are located in a folder by the same name in the Programs folder where Firefox itself is installed. See [http://kb.mozillazine.org/Installation_directory Finding the Installation directory]
    '''If this reply solves your problem, please click "Solved It" next to this reply when <u>signed-in</u> to the forum.'''
    Not related to your question, but...
    You need to update some plug-ins:
    *Plug-in check: https://www-trunk.stage.mozilla.com/en-US/plugincheck/
    *Adobe Shockwave for Director Netscape plug-in: [https://support.mozilla.com/en-US/kb/Using%20the%20Shockwave%20plugin%20with%20Firefox#w_installing-shockwave Installing ('''''or Updating''''') the Shockwave plugin with Firefox]
    *Adobe PDF Plug-In For Firefox and Netscape: [https://support.mozilla.com/en-US/kb/Using%20the%20Adobe%20Reader%20plugin%20with%20Firefox#w_installing-and-updating-adobe-reader Installing/Updating Adobe Reader in Firefox]
    *Shockwave Flash (Adobe Flash or Flash): [https://support.mozilla.com/en-US/kb/Managing%20the%20Flash%20plugin#w_updating-flash Updating Flash in Firefox]
    *Next Generation Java Plug-in for Mozilla browsers: [https://support.mozilla.com/en-US/kb/Using%20the%20Java%20plugin%20with%20Firefox#w_installing-or-updating-java Installing or Updating Java in Firefox]

  • HT1689 I subscribe to my video podcasts but some of them either has a small red E next to them and won't download new content or some just doesn't download new content. I have been watching the Rachael Maddow video podcast for at least a month with no pro

    I subscribe to my video podcasts but some of them either has a small red E next to them and won't download new content or some just doesn't download new content. I have been watching the Rachael Maddow video podcast for at least a month with no problems. Now suddenly it won't download the last nights show. I have read and followed all troubleshoot and cannot find a solution. I have unsubscribed and re-subscribed to no avail. Can someone help me with this problem?

    keian27 wrote:
    And now that my contract has expired, I have some options.  Last weekend, I called Verizon again threatening to leave.  The representative offered the same $75 rebate that was offered to me 6 months earlier.  I even offered up one of my device upgrades in place of a network extender, but that deal was knocked down.  And so now I’m left with the option to make a public spectacle out of this scenario and hope Verizon takes notice.  Failing that, I’ll be forced to leave Verizon behind.
    I don't understand. If having service in your home IS important to you and you already know Verizon's policy, why have you not instead started to search for carriers which cover your home? It seems a pretty easy decision to me, at least.

  • Why doesn't my macbook pro let me update certain applications? It says "You have updates available for other accountsTo update this application, sign in to the account you used to purchase it.

    Why doesn't my macbook pro let me update certain applications? It says "You have updates available for other accountsTo update this application, sign in to the account you used to purchase it.

    it's also likely that you used two different apple IDs to purchase apps. if that's the case then you simply have to log out of your app store, and log into the other account to update the apps.
    from experience it's not possible to syncronise purchased content from two different accounts. but you can always give Apple a call.

  • Why doesn't PS have auto-recover?

    This is probably the one thing about PS that bugs the crap out of me. If Photoshop crashes while you are working something, it is lost forever. I was working on a digital painting a couple of days ago, and I went to save it, and PS crashed.
    Every other program (Word, Powerpoint, Excel etc.) has an auto-save/auto-recover feature. Why doesn't PS have one? It seems silly for it not to.

    This has been discussed in several other threads, so do a search. As far as I'm concerned any such request doesn't make sense given how PS currently works and how the file format is structured. There's simply no realistic and safe way to save potentially large files in a few (micro-)seconds before a crash nor would that work as an auto-backup. Too many external factors and constant disk activity would have other negative side-effects... If you get my meaning: It's one thing to save a few kilobytes from a Word document in a few blips, but a totally different one shuffling around gigabytes.
    Mylenium

  • Why doesn't af:switcher have PartialTrigger attribute?

    Hi OTN,
    af:switcher is definitely one of the most dynamically changed "layout" component.
    And I'm really surprised not to find PartialTrigger attribute for the switcher.
    Why doesn't it have the attribute? I need to enclose it into additionaal container like panelStretchLayout and set Partialtrigger - WHAT FOR?
    Should I file an ER for this feature?
    Thanks.
    JDev 11.1.1.4

    To further what Timo says - filing an ER for this will not help you. The reason for this is that in order for a component to have a partialTrigger, it must be rendered on the client side; you may have seen this when you try to use partial triggers on a component with rendered=false - it cannot work because of the way PPR works. The tag docs for af:switcher say, in fact (as Timo says):
    The switcher is a purely logical server-side component. It does not generate any content itself and has no client-side representation (no client component). Hence switching which facet of the switcher renders requires a server round-trip.which does imply, albeit indirectly, that PPR wouldn't work. As Timo says, you would need to PPR a parent component of af:switcher.
    If you wanted to file an SR with Oracle, my best guess is that this should be a doc bug, and it would be helpful to add some info to the af:switcher document to explain that PPR is not possible.
    John

  • Why Doesn't Premiere Elements 12 Recognize My Sony AVCHD Camera?

    This is my first attempt at using Premiere Elements 12.  Unfortunately, it is not recognizing my Sony HDR AVCHD format camera.  It uses a san disk.  I get a message "No supported devices detected".  It does find the jpg photos, though.
    So I directly loaded the MTS files onto my iMac and created a DVD.  It looked pretty good, but not as good as playing the camera directly on a TV.  I found something on another Adobe site that indicated if there were problems with Premiere reading from the card that the files could be loaded to the hard drive.  It said "Be sure to copy the entire file structure of the card instead if just the clips".  I'm not sure what that means.  All I did was download the MTS files.
    So I really have 2 questions here -
    1 - why doesn't Premiere recognize my camera
    2- Is there something on the san card I missed downloading that could improve the quality of the DVD being created?
    Any thoughts would be appreciated. 

    Rickster213
    Thanks for the reply and your additional comments and results.
    I think that we need to make distinctions between Quality (how good or bad the results looks or sounds to you) and Resolution (Frame Size, Display Size). Often the two can go side by side.
    What you are seeing at the camera level is 1080i which is interlaced video at 1920 x 1080 @ 29.97 interlaced frames per second. What you are seeing when you play back your finished DVD-VIDEO on DVD disc is based on 720 x 480 @ 29.97 interlaced frames per second (if standard 4:3) and 720 x 480 @ 29.97 interlaced frames per second accompanied by a 16:9 flag to stretch the 720 x 480 to 856 x 480 for display after encoding. Another factor is what the TV or computer player is doing to your interlaced video for viewing purposes - deinterlacing or not and with what method. Some TV's come with technology to enhance the DVD-VIDEO display. Most TVs larger than 32 to 42 in tend to show the differences between higher and lower resolution more readily.
    Since you have interlaced video source, each frame has two fields, with either Upper or Lower Field First. Your source probably is interlaced video with Upper Field First. Consequently, in the project, you may have to adjust that to Lower Field First if your destination is DVD-VIDEO on DVD disc which is characterized by Field Order Lower Field First. Something to look into for the "better" aspects considerations.
    Now if you decide to take your Timeline content to AVCHD format on DVD disc, note that the format of AVCHD format on DVD disc is different from that of the DVD-VIDEO on DVD disc (Instead of OpenDVD and VIDEO_TS Folder, you have the BDMV Folder). Your AVCHD on DVD disc will have resolution (Frame Size, Display Size) of 1920 x 1080 pixels. Under these circumstances, the capacity of the DVD disc can become a problem with larger projects. When you burn your Timeline content to AVCHD format on DVD disc, what is on the disc will be an 29.97 interlaced frames per second characterized by Upper Field First. So, if your interlaced source and the destination product both use Field Order Upper Field First, then no need for Field Options adjusts. However you do have one opportunity for a progressive frame rate for the AVCHD on DVD. It is not 29.97, rather 24. See Presets = H.264 1920 x 1080p NTSC Dolby in the AVCHD on DVD set up in Publish+Share/Disc AVCHD disc.
    I have generated some very great looking DVD-VIDEO on DVD disc (standard and widescreen) and have been very pleased with the results and how my viewers received them. The thought is getting the best possible DVD-VIDEO on DVD and enjoying it without laboring on how it might have looked as Blu-ray or AVCHD if you do not have Blu-ray and do not have a player for AVCHD on DVD disc.
    If you need clarification on any of the above, please let me know.
    Thanks.
    ATR
    Add On...In post 3 marked in reply to me you wrote
    "On a side note, however, I'm not sure I agree with the statement that going to standard def would lose a lot of video quality"
    I did not write that in any of my posts to you. That is why I have gone through the detailed account to qualify that statement from wherever it came.

  • HT204150 Why doesn't iCloud retain hyperlinks or live URL addresses in contacts?

    Why doesn't iCloud retain hyperlinks or live URL addresses in the iCloud address book imported from Internet Explorer 7 to my iPhone 4S?

    darcyfitzpatrick wrote:
    I do have both of those, but only iCloud shows up in my Contacts sidebar, and addresses are being sent there so I guess it's the default. Funny how this stuff is all so murky.
    Not murky at all:
    And as the On My Mac account does not show then it is empty. (It's visible if it is the default or if it has any content)
    I haven't come across your last point, (no email address) so no help there I'm afraid.

  • Why doesn't iPhone store audio clips that you download from say whatapp like it does with photos and videos?

    Why doesn't iPhone store audio clips that you download from say whatapp like it does with pictures and video?

    Because you can't add content, to any iPhone, that way. Done by design.

  • While surfing the internet I get frequent stopages with the notation "Shockwave Flash may be busy - - - - -" Why doesn't it say Adobe Flash and how do I get it fixed?

    While surfing the internet I get frequent stopages with the notation "Shockwave Flash may be busy - - - - -" Why doesn't it say Adobe Flash and how do I get it fixed?

    The  site will NOT let me post in the  "flash player" forum. When I open the  list of forums to post in, I see  flash player listed, but it is grey  in color and you can not click on  it. Under the scroll box that gives  you the choices of forums to post  your question in you see this:
    "Why are some locations grayed out?                                                This means that you can view content in these locations, but may not   have access to post to them. Or, the content type you've chosen is not   available there (i.e. trying to put a blog post in a project where  blogs  are turned off). Also to move content to "Your documents",  "Private  discussions" or "Your Videos" you have to be the author."
    So   tell me HOW the hell am I supposed to post in that forum, when it is   not letting me?  I have had   this problem since back in April, I have tried posting to get help and   all I get is complaints I posted in the wrong place, and it is the SITE   that is not letting me post in the right place.

  • Why doesn't the dvd show up in my source list?!?

    i putt a dvd into my cd/rom drive cause i wanted to download it onto my ipod, but it doesn't show up. i tried another dvd and it didn't show up in my source list either. why doesn't it show up? what can i do to make it show up? please help.

    Can I transfer my DVDs into iTunes and sync to my iPod?
    iTunes and QuickTime Pro do not support importing content from DVD videos.
    Heres the Apple link if you can understand it.
    http://docs.info.apple.com/article.html?artnum=302758#5A
    "i putt a dvd into my cd/rom drive "
    A Cd Rom Drive will not read or play a DVD anyway..sorry.

  • Why doesn't Apple support Adobe Flash Player?

    Why doesn't Apple support Adobe Flash Player?
    I recently traveled out of the country with a large group and we are sharing our photos on Snapfish and I need Adobe Flash Player to download them to my IPAD. Help!

    No Flash for iPads, iPhones, or iPods
    Here's why there's is no Flash available for iDevices or other mobile devices. Adobe was unable to provide a product that was suitable to the needs of battery powered mobile devices used for Internet browsing. Existing Flash technology used too much memory, ate battery life, and was buggy. Simply put Flash did not work well on mobile devices.
    Apple's Steve Jobs led the escape from Flash dependency when Apple introduced the iPhone, and later introduced the iPad. There was a hue and cry over the omission. Time proved Jobs was right on target.
    So this is why there is no Flash for your iPhone or iPad or iPod nor for most SmartPhones. Flash has been abandoned by many sites in favor of supported technologies such as HTML5 or by providing their own custom app.
    Here is Steve Jobs official comment on his momentous decision to omit Flash from iDevices: Steve Jobs on Flash.
    Here is Adobe's later announcement to cease development of Flash for mobile devices: Adobe on Mobile Flash. Adobe is not providing Flash for Apple iOS devices, and they no longer provide Flash for any other cellular phones. Flash is officially gone.
    Now, you are not necessarily out on a limb. There are some apps that can display some Flash, but don't count on there ability to display anything using Flash.
    A sample of Apps that can display some Flash content:
      1. Puffin
      2. SkyFire
      3. Photon Flash
      4. Browse2Go
      5. Swifter
    Also, note that many sites that use Flash provide their own app for accessing their material. So check with your favorite sites and find out if "there's an app for that."

  • Why doesn't SSRS like an IF Statement in my SQL Stored Procedure???

    I have multiple IF Statements at the end of my SQL Stored Procedure Process that utilizes a @ReportTypeName Parameter to produce the chosen report result set
    IF @ReportTypeName = 'HMO-POS New To HFHP - No Prior Year Member Spans'
    BEGIN
    SELECT DISTINCT
    [#TempTable_Distinct_Individual_Member_All_Info].[INDV Member Contract Nbr],
    [#TempTable_Distinct_Individual_Member_All_Info].[INDV Member Subscriber Member Nbr],
    [#TempTable_Distinct_Individual_Member_All_Info].[INDV Benefit Pkg],
    [#TempTable_Distinct_Individual_Member_All_Info].[INDV Benefit Plan Name],
    [#TempTable_Distinct_Individual_Member_All_Info].[INDV Division Nbr],
    [#TempTable_Distinct_Individual_Member_All_Info].[INDV MEMBER EFF DATE],
    [#TempTable_Distinct_Individual_Member_All_Info].[INDV MEMBER NBR],
    [#TempTable_Distinct_Individual_Member_All_Info].[INDV MEMBER FIRST NAME],
    [#TempTable_Distinct_Individual_Member_All_Info].[INDV MEMBER LAST NAME],
    [#TempTable_Distinct_Individual_Member_All_Info].[INDV Broker Name],
    [#TempTable_Distinct_Individual_Member_All_Info].[INDV MEMBER ADDRESS 1],
    [#TempTable_Distinct_Individual_Member_All_Info].[INDV MEMBER CITY],
    [#TempTable_Distinct_Individual_Member_All_Info].[INDV MEMBER STATE],
    [#TempTable_Distinct_Individual_Member_All_Info].[INDV MEMBER ZIPCODE],
    [#TempTable_Distinct_Individual_Member_All_Info].[INDV MEMBER PHONE1],
    [#TempTable_Distinct_Individual_Member_All_Info].[INDV MEMBER PHONE2],
    [#TempTable_Distinct_Individual_Member_All_Info].[INDV MEMBER PHONE3],
    [#TempTable_Distinct_Individual_Member_All_Info].[INDV MEMBER EMAIL],
    CONVERT(VARCHAR,CAST(CONVERT(VARCHAR, [#TempTable_Distinct_Individual_Member_All_Info].[INDV MEMBER YMDBIRTH]) AS DATETIME),101) AS [INDV MEMBER BirthDate],
    FLOOR((CAST (GETDATE() AS INTEGER) - CAST(CONVERT(DATETIME, CONVERT(CHAR(8), [#TempTable_Distinct_Individual_Member_All_Info].[INDV MEMBER YMDBIRTH])) AS INTEGER)) / 365.25) AS [INDV MEMBER AGE]
    FROM [#TempTable_Distinct_Individual_Member_All_Info]
    WHERE (CHARINDEX('HMO',LTRIM(RTRIM([#TempTable_Distinct_Individual_Member_All_Info].[INDV Benefit Plan Name])),1) > 0
    OR CHARINDEX('POS',LTRIM(RTRIM([#TempTable_Distinct_Individual_Member_All_Info].[INDV Benefit Plan Name])),1) > 0)
    AND [#TempTable_Distinct_Individual_Member_All_Info].[INDV MEMBER NBR] NOT IN
    (SELECT [#TempTable_Distinct_Individual_Member_Prior_Year_Spans].[INDV MEMBER NBR]
    FROM [#TempTable_Distinct_Individual_Member_Prior_Year_Spans])
    ORDER BY [#TempTable_Distinct_Individual_Member_All_Info].[INDV MEMBER NBR]
    END
    IF @ReportTypeName = 'HMO-POS Renewals'
    BEGIN
    SELECT DISTINCT
    [#TempTable_Distinct_Individual_Member_All_Info].[INDV Member Contract Nbr],
    [#TempTable_Distinct_Individual_Member_All_Info].[INDV Member Subscriber Member Nbr],
    [#TempTable_Distinct_Individual_Member_All_Info].[INDV Benefit Pkg],
    [#TempTable_Distinct_Individual_Member_All_Info].[INDV Benefit Plan Name],
    [#TempTable_Distinct_Individual_Member_All_Info].[INDV Division Nbr],
    [#TempTable_Distinct_Individual_Member_All_Info].[INDV MEMBER EFF DATE],
    [#TempTable_Distinct_Individual_Member_All_Info].[INDV MEMBER NBR],
    [#TempTable_Distinct_Individual_Member_All_Info].[INDV MEMBER FIRST NAME],
    [#TempTable_Distinct_Individual_Member_All_Info].[INDV MEMBER LAST NAME],
    [#TempTable_Distinct_Individual_Member_All_Info].[INDV Broker Name],
    [#TempTable_Distinct_Individual_Member_All_Info].[INDV MEMBER ADDRESS 1],
    [#TempTable_Distinct_Individual_Member_All_Info].[INDV MEMBER CITY],
    [#TempTable_Distinct_Individual_Member_All_Info].[INDV MEMBER STATE],
    [#TempTable_Distinct_Individual_Member_All_Info].[INDV MEMBER ZIPCODE],
    [#TempTable_Distinct_Individual_Member_All_Info].[INDV MEMBER PHONE1],
    [#TempTable_Distinct_Individual_Member_All_Info].[INDV MEMBER PHONE2],
    [#TempTable_Distinct_Individual_Member_All_Info].[INDV MEMBER PHONE3],
    [#TempTable_Distinct_Individual_Member_All_Info].[INDV MEMBER EMAIL],
    CONVERT(VARCHAR,CAST(CONVERT(VARCHAR, [#TempTable_Distinct_Individual_Member_All_Info].[INDV MEMBER YMDBIRTH]) AS DATETIME),101) AS [INDV MEMBER BirthDate],
    FLOOR((CAST (GETDATE() AS INTEGER) - CAST(CONVERT(DATETIME, CONVERT(CHAR(8), [#TempTable_Distinct_Individual_Member_All_Info].[INDV MEMBER YMDBIRTH])) AS INTEGER)) / 365.25) AS [INDV MEMBER AGE]
    FROM [#TempTable_Distinct_Individual_Member_All_Info]
    INNER JOIN [#TempTable_Distinct_Individual_Member_Prior_Year_Spans]
    ON [#TempTable_Distinct_Individual_Member_Prior_Year_Spans].[INDV MEMBER NBR] = [#TempTable_Distinct_Individual_Member_All_Info].[INDV MEMBER NBR]
    WHERE (CHARINDEX('HMO',LTRIM(RTRIM([#TempTable_Distinct_Individual_Member_All_Info].[INDV Benefit Plan Name])),1) > 0
    OR CHARINDEX('POS',LTRIM(RTRIM([#TempTable_Distinct_Individual_Member_All_Info].[INDV Benefit Plan Name])),1) > 0)
    ORDER BY [#TempTable_Distinct_Individual_Member_All_Info].[INDV MEMBER NBR]
    END
    Microsoft Visual Studio and SQL Server Reporting Services did not like this! When I added my dataset and parameters accordingly, my Dataset had no fields...almost as if running the Stored Procedure in the background to get its Metadata was not working. I
    know this works because I tested it as a result of a straight EXEC Command. Why doesn't Microsoft Visual Studio and SQL Server Reporting Services not like this IF? I did end up getting around this by parameterizing the WHERE clause based on the @ReportTypeName
    chosen.
    WHERE (@ReportTypeName = 'HMO-POS New To HFHP - No Prior Year Member Spans'
    AND (CHARINDEX('HMO',LTRIM(RTRIM([#TempTable_Distinct_Individual_Member_All_Info].[INDV Benefit Plan Name])),1) > 0
    OR CHARINDEX('POS',LTRIM(RTRIM([#TempTable_Distinct_Individual_Member_All_Info].[INDV Benefit Plan Name])),1) > 0)
    AND [#TempTable_Distinct_Individual_Member_All_Info].[INDV MEMBER NBR] NOT IN
    (SELECT [#TempTable_Distinct_Individual_Member_Prior_Year_Spans].[INDV MEMBER NBR]
    FROM [#TempTable_Distinct_Individual_Member_Prior_Year_Spans]))
    OR (@ReportTypeName = 'HMO-POS Renewals'
    AND (CHARINDEX('HMO',LTRIM(RTRIM([#TempTable_Distinct_Individual_Member_All_Info].[INDV Benefit Plan Name])),1) > 0
    OR CHARINDEX('POS',LTRIM(RTRIM([#TempTable_Distinct_Individual_Member_All_Info].[INDV Benefit Plan Name])),1) > 0)
    AND [#TempTable_Distinct_Individual_Member_All_Info].[INDV MEMBER NBR] IN
    (SELECT [#TempTable_Distinct_Individual_Member_Prior_Year_Spans].[INDV MEMBER NBR]
    FROM [#TempTable_Distinct_Individual_Member_Prior_Year_Spans]))
    I appreciate your review and am hopeful for a reply.
    Thanks!

    Hi ITBobbyP,
    I have tested on my local environment and can reproduce the issue, the issue can be caused by the temp table you are using which will also cause the data not display.
    I have use below sample table and record to have a test and details information below for your reference:
    Right click the DataSet to select the "DataSet Properties" and click the query designer to execute the stored procedure by click the "!" to check if you can get the data:
    If you got some error, the issue can be cause by the temp table invalid, so please make sure you have add the query to create and insert  recored to temp table like below:
    CREATE PROCEDURE vickytest0311_1
    @ReportTypeName nvarchar(50)
    AS
    create table #VickyTest
    column1 int,
    column2 varchar(20)
    insert into #VickyTest values (1,'Test1')
    insert into #VickyTest values (2,'Test2')
    insert into #VickyTest values (3,'Test3')
    IF @ReportTypeName ='Test1'
    BEGIN
    select * from #VickyTest
    where Column1=1
    END
    IF @ReportTypeName ='Test2'
    BEGIN
    select * from #VickyTest
    where Column1=2
    END
    GO
    3. I recommend you to not use the temp table and you will not need to add the create and insert statement in the stored procedure.
    4. If you still got no data, please try to click the "Refresh fields" as below:
    If you still have any problem, please feel free to ask.
    Regards,
    Vicky Liu
    Vicky Liu
    TechNet Community Support

Maybe you are looking for

  • Program gets stuck in the middle of a click

    When I'm using Google Chrome for browsing this happens a lot. It's when I'm clicking something, like a new tab,  a link that opens a new tab or basically anything, Chrome gets stuck, does not freeze or anything, just stuck. The mouse, keyboard and ev

  • How to set hidden field value in form?

    I've encountered a problem while developing a forum using JSF. See this code: <h:form id="commmentForm" formName="commentForm" >      <h:input_hidden id="pageId" valueRef="CommentBean.pageId" value="${article.id}"/>      <h:input_text id="userName" v

  • No information?

    I don't know if there are other cases (didn't find any easily) but I found it curious to see someone's avatar without any of the usual information:

  • Workflow Approval Examples

    I am seeking process workflow examples that point out the approval steps.  I intend to take these examples and compare them to our current processes and identify areas where we are not taking advantage of the workflow/automated approvals/controls ava

  • 1.HOW DO I TYPE ON A MESSAGE ALL THE LETTERS IN CAPITAL, 1.HOW DO I TYPE ON A MESSAGE ALL THE LETTERS IN CAPiTAL

    HOW DO I TYPE ON A MESSAGE ALL THE LETTERS IN CAPITAL?