473,485 Members | 1,426 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

how to display all ouput using pop up dialog boxes

I'd like the output from this code to be show in a popup dialog box.

Expand|Select|Wrap|Line Numbers
  1. import javax.swing.JOptionPane;    
  2. import java.lang.String;
  3.  
  4.  
  5. public class displayAPoem1    
  6. {
  7.  
  8. public static void main(String[] args){  
  9.  
  10. int month = 0;
  11. int number;
  12. month = number; 
  13. JOptionPane.showMessageDialog(null, phrase);
  14.  
  15.         switch(month)   //start switch
  16.         {
  17.         case 1: case 3:  case 5: case 7: case 8: case 10: case 12:
  18.             System.out.println("All the rest have thirty-one,");
  19.             break;
  20.             case 2:
  21.             System.out.println("Thirty days hath September,");
  22.             System.out.println("April, June and November.");
  23.             System.out.println("All the rest have thirty-one,");
  24.             System.out.println("with February's 28 to make it fun.");
  25.             System.out.println("Leap year happening once in four,");
  26.             System.out.println("Gives Feburary one day more. ");
  27.             break;
  28.             case 4: case 6:case 11:
  29.             System.out.println("April, June and November.");
  30.             break;
  31.             case 9:
  32.             System.out.println("Thirty days path September");
  33.             break;
  34.         }
  35. }
  36. }
  37.  
Oct 10 '10 #1
0 1137

Sign in to post your reply or Sign up for a free account.

Similar topics

2
1179
by: JP | last post by:
Hi, Does dialog boxes that can minimize vertically exist in C#.NET? I have seen these boxes in e.g. paint shop pro and many linux user interfaces. Could anyone help? -jp
0
864
by: Tina | last post by:
Is there any way to display Font and Color dialog boxes to asp.net users and get their choices back? thanks, T
1
1733
by: kmslick | last post by:
Hello all. Not sure which group this problem best relates to, so I'm posting to both with a follow up. I started learning C# and .NET last august for a project for my employer. The project...
4
9481
by: mpreston | last post by:
I'm following the example from the MSDN library on how to create modal dialog boxes in C#, but something isn't working properly. If I create a modal dialog box and show it using ShowDialog(), the...
3
1631
by: Jamiil | last post by:
In my webpage there are acronyms that need explanation, for that I would like to display tip bubbles if possible, but I have not found any information regarding this programming feature in the...
0
1871
by: Gancy | last post by:
Hi In my setup project I need a custom dialog box containing a drop down list box. Since this is not avaialble from standard user interface dialog boxes that visual studio supplies, I am using...
1
1307
by: InfoDevGuy | last post by:
Hi: We are a software company. Our product (Dialogue) is very expansive with lots of menus, dialog boxes, etc in the GUI. We use unstructured FM 7.2. Every time we have a new release,...
2
2845
by: =?Utf-8?B?RWl0YW4=?= | last post by:
Hello, My application, winform, need to share data between multiple dialog boxes? What would be the best way to do it? Thanks, EitanB
2
3191
by: one.1more | last post by:
I want to make a text game using javascript dialog boxes. i learned about confirm boxes but its not helpful(http:// www.javascriptmall.com/learn/lesson6.htm) 1. for ex, in the confirm boxes,...
1
1142
by: =?Utf-8?B?QmVuIEM=?= | last post by:
I'm getting dialog boxes from a variety of applications appear very distorted. They are often extremely large covering all the screen whilst the main application appears normally. eg. This happens...
0
6957
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7111
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
6820
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7258
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5410
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
4856
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4544
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3053
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
242
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.