Need Help Sending
Hi- I just switched from cable internet to DSL...
Ever since (yesterday), when I try to send an email in Mail, it will try sending for a minute and then Mail will stick the email in the Outbox instead of "sent."
I have ALL the latest updates and I'm not a noob.
Any help would be appreciated, thanks.
Any error messages? You are getting the spinning wheel icon? The mail app is crashing?
Try some basic troubleshooting.
Quit the mail app completely and restart the iPad. Go to the home screen first by tapping the home button. Double tap the home button and the task bar will appear with all of your recent/open apps displayed at the bottom. Tap and hold down on any app icon until it begins to wiggle. Tap the minus sign in the upper left corner of the app that you want to close. Tap the home button or anywhere above the task bar. Restart the iPad.
Restart the iPad by holding down on the sleep button until the red slider appears and then slide to shut off. To power up hold the sleep button until the Apple logo appears and let go of the button.
Reboot the iPad by holding down on the sleep and home buttons at the same time for about 10-15 seconds until the Apple Logo appears - ignore the red slider - let go of the buttons.
Look here for additional help.
iOS: Unable to send or receive email
Similar Messages
-
Need help sending variables from HTML to SWF...
I have a header with tab buttons--- When you are on a certain
page the coorisponding tab is a different color(as a locator).
Right now I have like, 7 or 8 different headers that are the
same thing minus the colored tab of the current page.
Is there a way to code the flash so that I only need one
header, but still keep the off-colored buttons when on the
coorisponding page?
Apparently, from what I have gathered I need to Send a
variable to the SWF from the embedding HTML using FlashVars or
SWFObjects' 'addVariable' method etc so the SWF knows which
tab/color to use.
But, I have no ideal where to start...uugggggg.
Any Suggestions????
I really, really need to figure this out.
Thanks in advance,
hutchthe easiest way to pass vars to the flash is by appending
them to the url of the flash:
e.g your swiff is called "mymovie.swf" and you want a
parameter "color" to be available on the _root level of your movie,
so all you have to do is embed the flash with the following url
into your html page:
"mymovie.swf?color=black"
now back in flash you can get the value of "color" like this:
in _root timeline:
color
in any other timeline:
_root.color
the value will be filled once the movie is called from within
the HTML as explained above -
I have been sending pictures to people while organizing my iPhoto. Usually it is one picture per email. Unfortunately, it ends up that the same picture is ending up on each email instead of the picutures that I am picking out. Usually the first picture that I send is the picture that is send in all the emails. HELP!
Launch iPhoto with the Option key held down and create a new, test library. Import some photos and check to see if the same problem persists. If it does try the following: make a temporary, backup copy (if you don't already have a backup copy) of the library and try the following:
1 - delete the iPhoto preference file, com.apple.iPhoto.plist, that resides in your
User/Home()/Library/ Preferences folder.
2 - delete iPhoto's cache file, Cache.db, that is located in your
User/Home()/Library/Caches/com.apple.iPhoto folder.
Click to view full size
3 - launch iPhoto and try again.
NOTE: If you're moved your library from its default location in your Home/Pictures folder you will have to point iPhoto to its new location when you next open iPhoto by holding down the Option key when launching iPhoto. You'll also have to reset the iPhoto's various preferences.
If the problem doesn't appear in the test library do the following with your original library: make a temporary, backup copy (select the library and type Command+D) and apply the two fixes below in order as needed:
Fix #1
Launch iPhoto with the Command+Option keys held down and rebuild the library.
Select the options identified in the screenshot.
Fix #2
Using iPhoto Library Manager to Rebuild Your iPhoto Library
Download iPhoto Library Manager and launch.
Click on the Add Library button, navigate to your Home/Pictures folder and select your iPhoto Library folder.
Now that the library is listed in the left hand pane of iPLM, click on your library and go to the File ➙ Rebuild Library menu option
In the next window name the new library and select the location you want it to be placed.
Click on the Create button.
Note: This creates a new library based on the LIbraryData.xml file in the library and will recover Events, Albums, keywords, titles and comments but not books, calendars or slideshows. The original library will be left untouched for further attempts at fixing the problem or in case the rebuilt library is not satisfactory.
OT -
NEWBIE: Need Help Sending Music Files
Everytime I try to send even a small music file (300 KB)... I get a "Message content exceeds size limit"
Do I need to change my settings someplace?
Any help would be appreciated
Thanks
MJUnfortunately Patsfan, You cannot do anything to change this setting!
This is a limitation that was set by your phone services provider network!
MMS message are to only be allow to be sent over their network if the size is "LESS" than 300kb, you might be able to get away with "300kb exactly" but still it has to be within that size!
If you notice when you are in video mode on your phone and go to options it gives you two "video formats" to choose from
1 = normal mode
2 = mms mode
If you choose the first mode, you can record videos for as long as you want, granted you have a memory card that has the available space. But you most likely wont be able to send those videos using mms because they probably have gone over the 300kb size limitation for sending via MMS.
If you choose the second mode, the videos that you record will stop at about 40-50 seconds or before the video size goes over 300kb. And thats just the way it is. This mode assures that all your videos will be under 300kb, and in a format that can be sent by mms GUARUNTEED.
The only work around for this are mainly two things:
1 - Send the video by email and not MMS.
or
2 - find some third party software that will allow you to work around these size limitations.
Sorry I dont know any off hand.
But I hope this helps out!
Message Edited by bigbain on 01-19-2009 05:03 PM
Big Bain -
Need help: Sending mail to internet address without commit work statement
Dear Experts,
I have a problem in sending mails from sap to internet address.Am using the function module
SO_NEW_DOCUMENT_SEND_API1 and am passing parameters like,
CALL FUNCTION 'SO_NEW_DOCUMENT_SEND_API1'
EXPORTING
DOCUMENT_TYPE = 'RAW'
DOCUMENT_DATA = DOC_CHNG
PUT_IN_OUTBOX = 'X'
TABLES
OBJECT_CONTENT = OBJCONT
RECEIVERS = RECLIST
EXCEPTIONS
TOO_MANY_RECEIVERS = 1
DOCUMENT_NOT_SENT = 2
OPERATION_NO_AUTHORIZATION = 4
OTHERS = 99.
submit rsconn01 with mode = 'INT'
with output = 'X'
and return.
My problem here is,with the commit work statement after FM, the mail is triggering correctly.but if, am not using the commit work statement,at the very first time of execution mail is not triggering, and the second time of execution first mail is triggering like wise it is going.The status of the message is waiting in queue.
i have refresh receiver's list also.I want to use this concept in badi.So anyone can pls help me,how to send a mail without commit work statement.
Thanks in advance.There is a parameter Commit_Work pass it as 'X'
<code>
CALL FUNCTION 'SO_NEW_DOCUMENT_SEND_API1'
EXPORTING
DOCUMENT_TYPE = 'RAW'
DOCUMENT_DATA = DOC_CHNG
PUT_IN_OUTBOX = 'X'
commit_work = 'X'
TABLES
OBJECT_CONTENT = OBJCONT
RECEIVERS = RECLIST
EXCEPTIONS
TOO_MANY_RECEIVERS = 1
DOCUMENT_NOT_SENT = 2
OPERATION_NO_AUTHORIZATION = 4
OTHERS = 99.
submit rsconn01 with mode = 'INT'
with output = 'X'
and return.
</code>
Edited by: Saravanan Ramasamy on Nov 11, 2009 1:31 PM -
Need help sending e-mail a mobile messages
hi!
i'm a n00b in Java. Can you please tell how can i send e-mail and mobile messages in java?
thnx!!First of all, before you do any programming, if you want to have your computer send e-mail messages then you must have access to an SMTP server.
Next, if you do have access to one, then JavaMail is a common way to write programs that send e-mail.
As for mobile messages ("text messages" to a cellphone?) you usually need a contract with some phone company to do that, so they can bill you for it.
When you find out about that, they should provide you with documentation on how to proceed. If it involves sending e-mail to a particular address, see part 1 of this reply. -
Need help sending different drums to different tracks (EZ Drummer)
I'm using EZ drummer and would like to send different drums to different tracks... can anyone help me with this? I see in the EZ Drummers mixer that I can send to different tracks, but how/where are those tracks in Logic? Thanks....
Choose a Multiout instance of EZ first from the Plug In folder - e.g. 8 Stereo Outs - now in your Mixer there will appear a little "+" sign at the bottom of the EZ channelstrip - hit that and Auxes will be created automatically with the different EZ outs asssigned to their Inputs. Now route the Instruments to the different outs in EZ and you're ready to go.
-
Need help sending message on 6110
I only just sent a message on my nokia 6110, and about 5 mins later i went to send another text and it wont let me reply or send new txt. I cannot also view my contact list.
Remove the battery for 10min or more & check. If it does not solve your problem make a backup & reset it by entering this code *#7370#
Knowledge not shared is knowledge wasted!
If you find it helpfull, it's not hard to click the STAR.. -
Need help sending dialog to remote computer and saving results
As the title states, what I want to do is send a dialog box to all remote computers listed in the array $compnames where I can receive a yes or no and either save this as a file or array to pass back to my local computer to shutdown the ones where either
a yes or no answer is received. I have the following code segment and I am missing the no answer received part and I am not sure how to receive the responses form each computer.
Invoke-Command -ComputerName $element -scriptblock {
[system.reflection.assembly]::LoadWithPartialName("system.windows.forms")
$useOutput = [System.Windows.Forms.MessageBox]::Show("The Lab is being shut down. Press YES to abort.", "WARNING", 'YesNo', 'Exclamation')
if ($useOutput -eq [Windows.Forms.DialogResult]::Yes)
$sendBack = 0
Write-Output $sendBack
else
$sendBack = 1
Write-Output $sendBack
<# TODO: 1) write computer name and whether a user clicked yes to abort to a csv file (save just no's for logs)
1.1) maybe add computer name to
2) immediately shut down any computer where user allows shutdown
3) after 30 seconds, add remaining computers with no action to csv file to shut down
4) Open messagebox popup on host computer to ask if want to shutdown remaining computers
5) Shut down remaining computers
#>
if ($sendBack -eq 1)
#if the computer is ready to turn off
#shut it down
else
#add to array or file to be shut down later
Any guidance or advice would be great!
-------Edit 1-----------
In accordance with what this first two commenters have posted. I am thinking of a quirky solution.
What if I have a script on the remote computer that I call with the Invoke-Command that opens a message box and then depending on the response uses the msg.exe cmdlet to send either a 1 or a 0 back. The host computer then takes these answers and creates
two arrays, one for yeses and one for nos. I guess the only issue with this would be is receiving the messages in an orderly manner over the course of 30seconds and having the messages be 'silent' so the script picks them up but there is no explicit message
pop up on my computer.
I have found the following from the invoke-command section of ss64.com:
"Run the Test.ps1 script on the Server64 computer. The script is located on the local computer. The script runs on the remote computer and the results are returned to the local computer:PS C:\> invoke-command -filepath c:\scripts\test.ps1 -computerName
Server64"
So could I not send a message box through this and have the result returned to me?Actually, it might be doable (albeit not all that ... cleanly):
Create a task on the remote computer that will run under any currently logged in user which displays a messagebox that returns values and writes the result to a file. (Which will of course require a folder where all users have write permissions to to write
the files in)
Trigger the task
Check for result files
Cheers,
Fred
There's no place like 127.0.0.1 -
I need help sending emails. unable to take gmail account on line
I am having problems sending emails from my mac. Gmail is offline how do I get bak on line?
Have you tried:
If you can’t send or receive email on your Mac - Apple Support -
HT3228 Need help sending email from iPhone 5S
Have a new iPhone 5S and can receive email but every email I try to send is copied to the outbox and message says the recipient was rejected by the server. How do I fix that?
You can't use iCloud to do that. Any photos in iCloud must also be on your phone. If you delete them from your phone, they will also be deleted from iCloud and they will be lost. You might want to try updating your phone using iTunes on your computer (as explained at the bottom of this article: Update your iPhone, iPad, or iPod touch iOS software). It requires much less space than updating over the air.
-
I need help with send a gift though iTunes without a credit card
I need help send a iTunes gift card on iPhone though iTunes Store without a creid card
That's not possible. Apple doesn't allow iTunes Store credit to be spent on gifts.
(126618) -
Help sending out long email message from ORACLE PL/SQL
Hello,
I need help sending out long email message from ORACLE PL/SQL.
My message(email body) contains about 4000 characters and comes out truncated somewhere on the middle.
My business requirements do not allow me to send it as attachment.
I am using oracle utl_smtp package and on oracle 10gR2.
Is it possible to send out long text message from Oracle?
Thanks!
IaThank you very much for your responses.
Even if I use email procedure below my message is getting truncated.
Here is how I am trying to execute the procedure from sql plus:
DECLARE
P_SENDER VARCHAR2(32767);
P_RECIPIENT VARCHAR2(32767);
P_SUBJECT VARCHAR2(32767);
P_BODY VARCHAR2(32767);
BEGIN
P_SENDER := 'xxxx@yyy';
P_RECIPIENT := 'xxxx@yyy';
P_SUBJECT := 'long text message';
P_BODY :=
'1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890
1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890
1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890
1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890
1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890
1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890
1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890
7 1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890
8 1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890
9 1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890
10 1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890
11 1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890
12 34567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890
1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890
1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890
1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890
1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890
1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890
1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890
1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890
1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890
1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890
1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890
21 123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789';
EMAIL ( P_SENDER, P_RECIPIENT, P_SUBJECT, P_BODY );
COMMIT;
END;
SQL> @long_sp;
PL/SQL procedure successfully completed.
The email message is:
long text message
xxx@yyyy
Sent: Tuesday, May 25, 2010 6:52 AM
To:
xxx@yyyy
1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890 1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890 1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890 1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890 1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890 1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890 1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890 7 1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890 8 1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890 9 12345678901234567890123456789012345678901234567890123456789012345678901234
Message is getting truncated around 1000 characters.
What am I doing wrong?
Please help!
Thanks!! -
Assignment Due TODAY - NEED HELP
My program is below and I have already setup a Client Server Connection for a hangman game, but I need help sending and displaying the options selected by the user. PLEASE HELP
import java.io.*;
import java.net.*;
import java.awt.*;
import javax.swing.*;
import java.awt.event.*;
public class ClientApp extends JFrame
// Declarations used in program
private Socket server;
ObjectOutputStream out;
ObjectInputStream in;
int length = 0; // Length of word received by Server
String guess;
String lines;
String secret;
int chances = 0; // Count to Hold no of chances by user
int categorySelected ;
// GUI Declarations
private JButton btnMovies;
private JButton btnSport;
private JButton btnExit, btnNew;
private JButton a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z;
private JLabel lblWelcome, lblCategory , lblChances;
private JPanel pan1, pan2, pan3, pan4, pan5, pan6, pan7, pan8, pan9, pan10;
private JTextArea answer;
private JTextField txtCategory, txtChances;
// CONSTRUCTOR
public ClientApp()
setLayout(new FlowLayout());
pan1 = new JPanel();
pan3 = new JPanel();
pan2 = new JPanel();
lblWelcome = new JLabel("Welcome to Hangman.\n\n Please select a category.");
pan1.add(lblWelcome);
btnMovies = new JButton("Movie Titles");
pan3.add(btnMovies);
btnSport = new JButton("Sport");
pan3.add(btnSport);
btnNew = new JButton("New Game");
pan3.add(btnNew);
btnExit = new JButton("Exit");
pan2.add(btnExit);
pan9 = new JPanel();
txtCategory = new JTextField(10);
pan9.add(txtCategory);
pan8 = new JPanel();
answer = new JTextArea(3,30);
answer.setEditable(false);
pan8.add(answer);
add(pan1);
add(pan3);
add(pan2);
add(pan9);
add(pan8);
btnExit.addActionListener(
new ActionListener()
public void actionPerformed(ActionEvent event)
System.exit(0);
btnMovies.addActionListener(
new ActionListener()
public void actionPerformed(ActionEvent event)
enableButtons();
btnSport.setEnabled(false);
btnNew.setEnabled(true);
txtCategory.setText("Movies");
categorySelected = 0;
processClient();
btnSport.addActionListener(
new ActionListener()
public void actionPerformed(ActionEvent event)
enableButtons();
btnMovies.setEnabled(false);
btnSport.setEnabled(false);
btnNew.setEnabled(true);
txtCategory.setText("Actors Names");
categorySelected = 1;
processClient();
btnNew.addActionListener(
new ActionListener()
public void actionPerformed(ActionEvent event)
enableButtons();
btnSport.setEnabled(true);
btnMovies.setEnabled(true);
btnNew.setEnabled(false);
chances = 0;
communicate();
buttons();
disableButtons();
btnNew.setEnabled(false);
// Attempt to establish connection to server
try
// Create socket
server = new Socket("localhost", 8008);
catch (IOException ioe)
System.out.println("IOException: " + ioe.getMessage());
// Method to add Alphabetic Buttons to GUI
public void buttons()
pan4 = new JPanel();
pan5 = new JPanel();
pan6 = new JPanel();
pan7 = new JPanel();
a = new JButton("A");
b = new JButton("B");
c = new JButton("C");
d = new JButton("D");
e = new JButton("E");
f = new JButton("F");
g = new JButton("G");
h = new JButton("H");
i = new JButton("I");
j = new JButton("J");
k = new JButton("K");
l = new JButton("L");
m = new JButton("M");
n = new JButton("N");
o = new JButton("O");
p = new JButton("P");
q = new JButton("Q");
r = new JButton("R");
s = new JButton("S");
t = new JButton("T");
u = new JButton("U");
v = new JButton("V");
w = new JButton("W");
x = new JButton("X");
y = new JButton("Y");
z = new JButton("Z");
pan4.add(a);
pan4.add(b);
pan4.add(c);
pan4.add(d);
pan4.add(e);
pan4.add(f);
pan5.add(g);
pan5.add(h);
pan5.add(i);
pan5.add(j);
pan5.add(k);
pan5.add(l);
pan6.add(m);
pan6.add(n);
pan6.add(o);
pan6.add(p);
pan6.add(q);
pan6.add(r);
pan7.add(s);
pan7.add(t);
pan7.add(u);
pan7.add(v);
pan7.add(w);
pan7.add(x);
pan7.add(y);
pan7.add(z);
add(pan4);
add(pan5);
add(pan6);
add(pan7);
// Button Handler for Alphabet
ButtonHandler handler = new ButtonHandler();
a.addActionListener(handler);
b.addActionListener(handler);
c.addActionListener(handler);
d.addActionListener(handler);
e.addActionListener(handler);
f.addActionListener(handler);
g.addActionListener(handler);
h.addActionListener(handler);
i.addActionListener(handler);
j.addActionListener(handler);
k.addActionListener(handler);
l.addActionListener(handler);
m.addActionListener(handler);
n.addActionListener(handler);
o.addActionListener(handler);
p.addActionListener(handler);
q.addActionListener(handler);
r.addActionListener(handler);
s.addActionListener(handler);
t.addActionListener(handler);
u.addActionListener(handler);
v.addActionListener(handler);
w.addActionListener(handler);
x.addActionListener(handler);
y.addActionListener(handler);
z.addActionListener(handler);
private class ButtonHandler implements ActionListener
public void actionPerformed(ActionEvent ae)
if (ae.getSource()==a)
guess = "a";
a.setEnabled(false);
sendGuess();
if (ae.getSource()==b)
guess = "b";
b.setEnabled(false);
sendGuess();
if (ae.getSource()==c)
guess = "c";
c.setEnabled(false);
sendGuess();
if (ae.getSource()==d)
guess = "d";
d.setEnabled(false);
sendGuess();
if (ae.getSource()==e)
guess = "e";
e.setEnabled(false);
sendGuess();
if (ae.getSource()==f)
guess = "f";
f.setEnabled(false);
sendGuess();
if (ae.getSource()==g)
guess = "g";
g.setEnabled(false);
sendGuess();
if (ae.getSource()==h)
guess = "h";
h.setEnabled(false);
sendGuess();
if (ae.getSource()==i)
guess = "i";
i.setEnabled(false);
sendGuess();
if (ae.getSource()==j)
guess = "j";
j.setEnabled(false);
sendGuess();
if (ae.getSource()==k)
guess = "k";
k.setEnabled(false);
sendGuess();
if (ae.getSource()==l)
guess = "l";
l.setEnabled(false);
sendGuess();
if (ae.getSource()==m)
guess = "m";
m.setEnabled(false);
sendGuess();
if (ae.getSource()==n)
guess = "n";
n.setEnabled(false);
sendGuess();
if (ae.getSource()==o)
guess = "o";
o.setEnabled(false);
sendGuess();
if (ae.getSource()==p)
guess = "p";
p.setEnabled(false);
sendGuess();
if (ae.getSource()==q)
guess = "q";
q.setEnabled(false);
sendGuess();
if (ae.getSource()==r)
guess = "r";
r.setEnabled(false);
sendGuess();
if (ae.getSource()==s)
guess = "s";
s.setEnabled(false);
sendGuess();
if (ae.getSource()==t)
guess = "t";
t.setEnabled(false);
sendGuess();
if (ae.getSource()==u)
guess = "u";
u.setEnabled(false);
sendGuess();
if (ae.getSource()==v)
guess = "v";
v.setEnabled(false);
sendGuess();
if (ae.getSource()==w)
guess = "w";
w.setEnabled(false);
sendGuess();
if (ae.getSource()==x)
guess = "x";
x.setEnabled(false);
sendGuess();
if (ae.getSource()==y)
guess = "y";
y.setEnabled(false);
sendGuess();
if (ae.getSource()==z)
guess = "z";
z.setEnabled(false);
sendGuess();
// Method to Disable the buttons
public void disableButtons()
a.setEnabled(false);
b.setEnabled(false);
c.setEnabled(false);
d.setEnabled(false);
e.setEnabled(false);
f.setEnabled(false);
g.setEnabled(false);
h.setEnabled(false);
i.setEnabled(false);
j.setEnabled(false);
k.setEnabled(false);
l.setEnabled(false);
m.setEnabled(false);
n.setEnabled(false);
o.setEnabled(false);
p.setEnabled(false);
q.setEnabled(false);
r.setEnabled(false);
s.setEnabled(false);
t.setEnabled(false);
u.setEnabled(false);
v.setEnabled(false);
w.setEnabled(false);
x.setEnabled(false);
y.setEnabled(false);
z.setEnabled(false);
// Method to enable Buttons so user can Click on them
public void enableButtons()
a.setEnabled(true);
b.setEnabled(true);
c.setEnabled(true);
d.setEnabled(true);
e.setEnabled(true);
f.setEnabled(true);
g.setEnabled(true);
h.setEnabled(true);
i.setEnabled(true);
j.setEnabled(true);
k.setEnabled(true);
l.setEnabled(true);
m.setEnabled(true);
n.setEnabled(true);
o.setEnabled(true);
p.setEnabled(true);
q.setEnabled(true);
r.setEnabled(true);
s.setEnabled(true);
t.setEnabled(true);
u.setEnabled(true);
v.setEnabled(true);
w.setEnabled(true);
x.setEnabled(true);
y.setEnabled(true);
z.setEnabled(true);
public void communicate()
// The connection has been established - now send/receive.
try
// create channels
out = new ObjectOutputStream(server.getOutputStream());
out.flush();
in = new ObjectInputStream(server.getInputStream());
catch (IOException ioe)
JOptionPane.showMessageDialog(null,"IO Exception: " + ioe.getMessage());
catch (NullPointerException n)
JOptionPane.showMessageDialog(null,"Error occured...");
public void processClient()
try
// Tells server which category is selected by user
out.writeObject(categorySelected);
out.flush();
secret = (String)in.readObject();
length = (Integer)in.readObject();
lines = "";
for (int x=0;x < length;x++)
lines += " - ";
answer.setText(lines);
String ToDisplay="";
for (int q=0; q<secret.length;q++)
ToDisplay+=secret.length;
answer.setText(" " + ToDisplay); */
// String Correctin = (String)in.readObject();
// JOptionPane.showMessageDialog(null, Correctin );
catch (IOException ioe)
JOptionPane.showMessageDialog(null, "IO Exception: " + ioe.getMessage());
catch (ClassNotFoundException cnfe)
JOptionPane.showMessageDialog(null, "Class not found..." );
}//end method
public void sendGuess()
try
// Sends the character guessed by user
out.writeObject(guess);
out.flush();
// Chances incremented
//chances = chances + 1;
// Calcualates to see whether chances are up
//if (chances >= 7)
// JOptionPane.showMessageDialog(null,"GAME OVER!! You used up all your chances...");
// disableButtons();
}//end try
catch (IOException ioe)
JOptionPane.showMessageDialog(null, ioe.getMessage());
}//end catch
}//end method
public static void main(String[] args)
ClientApp client = new ClientApp();
client.communicate();
client.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
client.setSize(500,300);
client.setVisible(true);
import java.io.*;
import java.net.*;
import java.util.*;
import javax.swing.*;
public class ServerApp
String movies [] = {"shrek","titanic","disturbia","blade","scream"};
String sport [] = {"tennis","golf","rugby","hockey","soccer","judo"};
int inCategory; // Category Selected By User
int selectw; // Random word selected in Array
String secretword = "";
int wordlength = 0;
String guess;
char letter;
Random rand = new Random();
String msg;
ObjectOutputStream out;
ObjectInputStream in;
int chances;
// Server socket
private ServerSocket listener;
// Client connection
private Socket client;
public ServerApp()
// Create server socket
try {
listener = new ServerSocket(8008);
catch (IOException ioe)
JOptionPane.showMessageDialog(null,"IO Exception: " + ioe.getMessage());
public void listen()
// Start listening for client connections
try
client = listener.accept();
System.out.println("Server started");
processClient();
}//end try
catch(IOException ioe)
JOptionPane.showMessageDialog(null,"IO Exception: " + ioe.getMessage());
}//end catch
public void processClient()
try
while(msg != "TERMINATE")
//input and output stream
out = new ObjectOutputStream(client.getOutputStream());
out.flush();
in = new ObjectInputStream(client.getInputStream());
//Receiving a category
inCategory = (Integer)in.readObject();
chances = 7;
selectw = 0;
if (inCategory == 0)
selectw = rand.nextInt(5);
secretword = movies[selectw];
out.writeObject(secretword);
out.flush();
}//end if
if (inCategory == 1)
selectw = rand.nextInt(6);
secretword = sport[selectw];
}//end if
wordlength = secretword.length();
out.writeObject(wordlength);
out.flush();
for (int y=0;y < wordlength;y++)
guess = (String)in.readObject();
letter = guess.charAt(0);
if(chances == 0)
JOptionPane.showMessageDialog(null,"No more chances left");
else
if(letter == secretword.charAt(y))
JOptionPane.showMessageDialog(null,"You chose a correct letter...");
else
JOptionPane.showMessageDialog(null,"You chose a wrong letter...");
chances--;
JOptionPane.showMessageDialog(null,"You won the game...");
}//end while
// Step 3:close down
out.close();
in.close();
client.close();
System.out.println("Server stopped");
catch (IOException ioe)
JOptionPane.showMessageDialog(null,"IO Exception: " + ioe.getMessage());
catch (ClassNotFoundException cnfe)
JOptionPane.showMessageDialog(null,"Class not found: " + cnfe.getMessage());
public static void main(String[] args)
// Create application
ServerApp server = new ServerApp();
// Start waiting for connections
server.listen();
}JAVAHELPNEEDED wrote:
How do I save that amount of code?
Can you HELP me or NOT??Depends what you mean. Will I write you any code? No. Will I tell you what to write? No. You can do it yourself, that's why it's called your homework. I will, though, give you a couple of tips on how to get started.
1) Throw away what you've done
2) Do a quick requirements analysis. That means, write down descriptive, plain English (or whatever language you think in) what the thing is supposed to do. "Be a hangman game" is too brief, but twenty pages of technical jargon is too much. Write a bit of a story about what the program must do. You now have the start of a design.
3) Break down what has to be done into manageable chunks. Your first mistake (and most newbs) was trying to write one side of the game in a single class. Don't be afraid to write 20 classes, or 50, if that's what's needed. It'll be easier both now and in the long run
4) Tackle each chunk one by one. Don't try and do it all at once, that never works. If you write the code one bit at a time, you'll inevitably write more modular code
5) You'll probably screw it up. Don't worry. It happens. Try again
6) Don't give up. Writing software is hard, there's no way around that, so deal with it
7) Don't make the mistake of thinking the software is the GUI. It isn't (don't extend JFrame, hint hint)
8) Good luck -
Hi all, I bought one iphone and 3 ipads, i set up all on one apple ID. Now i have a problem when using messages: when sending message from one device it appears again on screen from the other 3 devices. I need help on how to set up messages on each device separately and to start using messages app on each device independently. Thanks
search google for "iphone remove picture from contact"
Maybe you are looking for
-
How do I get videos that I have recorded from my iPad to dvd?
I have multiple home videos that I would like to move from my iPad to DVD. I do have a laptop but it is not an apple product. Does anyone have any suggestions?
-
I am in openscript, using a settext commend - .setText("{{@today(MM/dd/yyyy), 10-02-2011}}}}"); is anyone know how can I change the formate of @today from (MM/dd/yyy) to (dd-MM-yyyy)? I went to Java Code tab and tried to use - new SimpleDataFormat("d
-
Webdynpro + Adobe Interactive Form + Web Service
Hello Experts, Can you please provide me the useful solutions for the below mentioned issues. I created a Webdynpro with one view .Kept the adobe interactive form on the view by binding the structure with all my fields to the data source. And one web
-
Enable Personalization link in header bar
Hello All, In our Portal we have the "Help"/ "Log Off" options enabled in the Header bar. I would like to enable the Personalization option also. Could you please let me know as how we can enable it. Thanks is Advance. Awaiting reply, Regards, Ramala
-
Hi, I'm working with flash for the 1st time...I need to build an application which has a main screen on which there are numerous buttons clicking one of this which is at the very right of the drawing it starts a tweening effect which brings a new scr