Problem with FocusTraversalPolicy.. need help asap!!!!
I have Panel with six text fields. I have another subpanel with another three text fields placed on this main panel. I want to create a FocusTraversalPloicy in a way .. that the focus goes to the first field in the subpanel from the third text field of the main panel. And from the last text field of the Subpanel the focus should go to the 4th text field of the Main Panel. Help needed asap.
TIA,
BT
Hi,
main panel
- text field 1
- text field 2
- text field 3
- text field 4
- text field 5
- text field 6
- sub panel ( text field 7, text field 8, text field 9 )
focus seguence:
text field 1 ->text field 2 ->text field 3 ->
text field 7 ->text field 8 ->text field 9 ->
text field 4 ->text field 5 ->text field 6 ...
//----------------- CODE ----------
import java.awt.*;
import javax.swing.*;
public class TraversalPolicyDemo1 extends JFrame
JPanel mainPanel = new JPanel();
JTextField txtField1 = new JTextField();
JTextField txtField2 = new JTextField();
JTextField txtField3 = new JTextField();
JTextField txtField4 = new JTextField();
JTextField txtField5 = new JTextField();
JTextField txtField6 = new JTextField();
JPanel subPanel = new JPanel();
JTextField txtField7 = new JTextField();
JTextField txtField8 = new JTextField();
JTextField txtField9 = new JTextField();
public TraversalPolicyDemo1()
this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
this.mainPanel.setFocusCycleRoot(true);
this.subPanel.setFocusable(false);
this.mainPanel.setFocusTraversalPolicy(new MyFocTrPol());
init();
private void init()
JPanel contentPane = (JPanel) this.getContentPane();
GridLayout gridLayout = new GridLayout();
gridLayout.setRows(7);
gridLayout.setColumns(1);
gridLayout.setHgap(10);
gridLayout.setVgap(10);
mainPanel.setLayout(gridLayout);
txtField1.setText("11111");
txtField2.setText("22222");
txtField3.setText("33333");
txtField4.setText("44444");
txtField5.setText("55555");
txtField6.setText("66666");
txtField7.setText("77777");
txtField8.setText("88888");
txtField9.setText("99999");
this.subPanel.add(txtField7);
this.subPanel.add(txtField8);
this.subPanel.add(txtField9);
mainPanel.add(txtField1, null);
mainPanel.add(txtField2, null);
mainPanel.add(txtField3, null);
mainPanel.add(txtField4, null);
mainPanel.add(txtField5, null);
mainPanel.add(txtField6, null);
mainPanel.add(subPanel, null);
contentPane.add(mainPanel, null);
public static void main(String[] args)
try
UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
catch(Exception e)
e.printStackTrace();
TraversalPolicyDemo1 frame = new TraversalPolicyDemo1();
frame.pack();
frame.setVisible(true);
}// end class TraversalPolicyDemo1
import javax.swing.*;
import java.awt.*;
public class MyFocTrPol extends LayoutFocusTraversalPolicy
public Component getComponentAfter(Container focusCycleRoot, Component aComponent)
Component ret=null;
Component first = focusCycleRoot.getComponent(0);//txtField1
Component second = focusCycleRoot.getComponent(1);
Component third = focusCycleRoot.getComponent(2);
Component fourth = focusCycleRoot.getComponent(3);
Component fifth = focusCycleRoot.getComponent(4);
Component sixth = focusCycleRoot.getComponent(5);//txtField6
Container seventh = (Container)focusCycleRoot.getComponent(6);//sub panel
Component sub_first = seventh.getComponent(0);//txtField7
Component sub_second = seventh.getComponent(1);//txtField8
Component sub_third = seventh.getComponent(2);//txtField9
if (aComponent.equals(first))
ret = second;
else if (aComponent.equals(second))
ret = third;
else if (aComponent.equals(third))
ret = sub_first;
else if (aComponent.equals(fourth))
ret = fifth;
else if (aComponent.equals(fifth))
ret = sixth;
else if (aComponent.equals(sixth))
ret = first;
else if (aComponent.equals(sub_first))
ret = sub_second;
else if (aComponent.equals(sub_second))
ret = sub_third;
else if (aComponent.equals(sub_third))
ret = fourth;
return ret;
}// end getComponentAfter
public Component getComponentBefore(Container focusCycleRoot, Component aComponent)
Component ret=null;
Component first = focusCycleRoot.getComponent(0);//txtField1
Component second = focusCycleRoot.getComponent(1);
Component third = focusCycleRoot.getComponent(2);
Component fourth = focusCycleRoot.getComponent(3);
Component fifth = focusCycleRoot.getComponent(4);
Component sixth = focusCycleRoot.getComponent(5);//txtField6
Container seventh = (Container)focusCycleRoot.getComponent(6);//sub panel
Component sub_first = seventh.getComponent(0);//txtField7
Component sub_second = seventh.getComponent(1);//txtField8
Component sub_third = seventh.getComponent(2);//txtField9
if (aComponent.equals(first))
ret = sixth;
else if (aComponent.equals(second))
ret = first;
else if (aComponent.equals(third))
ret = second;
else if (aComponent.equals(fourth))
ret = sub_third;
else if (aComponent.equals(fifth))
ret = fourth;
else if (aComponent.equals(sixth))
ret = fifth;
else if (aComponent.equals(sub_first))
ret = third;
else if (aComponent.equals(sub_second))
ret = sub_first;
else if (aComponent.equals(sub_third))
ret = sub_second;
return ret;
}// end getComponentBefore
public Component getDefaultComponent(Container focusCycleRoot)
return focusCycleRoot.getComponent(0);//txtField1
public Component getFirstComponent(Container focusCycleRoot)
return focusCycleRoot.getComponent(0);//txtField1
public Component getLastComponent(Container focusCycleRoot)
return focusCycleRoot.getComponent(5);//txtField6
public Component getInitialComponent(Window window)
Component def = getDefaultComponent(window);
if (def == null && window.isFocusableWindow())
def = window;
return def;
}// end class MyFocTrPol
Similar Messages
-
Serious problem with database need help
hello experts
i am working with MS-ACCESS and connecting it with java programing
now the problem with me are
according to my need i have to create a table that contain Autonumber field
but when i insert element in this table by query
String query1 = "insert into Forum (Subject,Author,Date,Reply) values('"+param1+"','"+username+"','"+dateformat+"',"+reply+")";
st1 = con1.createStatement(); it gives sql exception but when i remove
autonumber field and make it simple field it works ok but i want to keep autonumber field and thn want to insert it
is it possible to create a dynamic table in ms-access through java query like
String query3 = "create table"+"topicId"+"( message varchar(1000) NOT NULL,author varchar(50) NOT NULL, date varchar(30) NOT NULL)";
here topic id some variable that contain table name
i think problem is that MS-ACCESS has no varchar data type plz help me
The complete code i written is as follow
<html>
<%@ page language="java" import="java.sql.*,java.text.*" %>
<head>
<title> Processing the post request </title>
</head>
<body background ="images/modbkgnd.jpg" bgproperties="fixed" >
<%
String param1="",param2="",topicId="";
Connection con1=null;
Statement st1=null;
ResultSet rs1=null;
int a=2,reply=0;
java.util.Date date = new java.util.Date();
DateFormat df ;
df = DateFormat.getDateInstance(DateFormat.FULL ,java.util.Locale.UK);
String dateformat = df.format(date);
String username = (String)session.getAttribute("forumlogin");
param1=request.getParameter("Subject");
param2 =request.getParameter("message");
try
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
con1 = DriverManager.getConnection("jdbc:odbc:lingua");
String query1 = "insert into Forum (Subject,Author,Date,Reply) values('"+param1+"','"+username+"','"+dateformat+"',"+reply+")";
st1 = con1.createStatement();
out.print("hello i am here");
boolean posubject = st1.execute(query1);
out.print("hello i am here");
String query2 = "select *from Forum";
rs1 = st1.executeQuery(query2); //retriving table id for creating
out.print("hello i am here"); // message table
while(rs1.next())
topicId = rs1.getString(1);
String query3 = "create table"+"topicId"+"( message varchar(1000) NOT NULL,author varchar(50) NOT NULL, date varchar(30) NOT NULL)";
boolean createtable = st1.execute(query3);
out.print("hello i am here");
if(createtable)
String query4 = "insert into"+"topicId"+"values('"+param2+"','"+username+"','"+dateformat+"')";
boolean insertmess = st1.execute(query4);
}catch(SQLException ex){
out.print("sql exception");
finally
st1.close();
con1.close();
%>
</body>
</html>hello experts
first i change my Date to date and thn try but it was not working.
and thn i try as dinesh_tcs said
i change my query as
String query3 = "create table"+"topicId"+"( message string NOT NULL,author string NOT NULL, date string NOT NULL)";
but nothing help me
one more thing actually i don,t want to insert manually the field of autonumber what i want that my query work when i leave the autonumber field to insert values in the table ( or whatever way i want to insert values in that table by keeping autonuber given by MS_ACCESS)
plz do the change in code i have maintained above or if not possible thn write the query that u have tested -
Problem with tables -- need help!
I am having problems with table formatting, when using
Preformatted text. The tables look fine in the WYSIWYG editor, but
have lots of extra space above and below the text when looking at
the output files.
I will attach the code from one of the HTML files from my
project, so you can see what I'm talking about.
Thanks.Well, if you're talking about the single-celled table with
the line:
<p class=Preformatted>[assembly:
Ace.AceAssembly]</p>
</pre>
... you can eliminate the <P> tags. that will give you
one line less. Otherwise, your remaining space is the result of the
<PRE> tag. It, like the <XMP> tag, gives it one line of
space beneath as well.
Your alternative beyond that would be to, when needed, wrap
up the script in Javascript. That line, for instance, wouldn't need
it. -
I faced a difficult problem with sysdba. The thing is, I don't have a user name " 1/2@3 ". But the moment I connected as 1/2@3 as sysdba, then it connected automatically and to utter surprise I could drop a user.
If it is so, then how the database will remain secure.
Definitely there is a solution and I need it urgently.Hi
c:\> sqlplus "/ as sysdba"
After logging into SQL, check the username using:
SQL> Show user
If the above command returns "sys", change the password of the user "sys" using:
SQL> Alter user sys identified by "yourpassword";
Thank You -
Big problems with IMac-need help
I have an older model iMac G5 that my daughter has been using on week-ends when she comes home from the local college. She said that she was having a lot of problems with Safari quitting, getting weird messages with MS Office and kernel panics. I decided that the best thing to do would be to erase and install Leopard. During the installation process I got a message that Leopard could not install due to a problem with the base system. I then tried to install from the restore discs (which were backups that I had on hand since I couldn't find the originals) and from a Tiger install disc. I got errors each time. Now there was no longer an operating system on the iMac. I took it to the local genius bar. The genius seemed kind of frazzled since he was helping several people, but he seemed sure that it was the hard drive because of the kernel panics and the fact that he couldn't install anything onto the computer from an external firewire drive.
I purchased a new hard drive from Amazon and a friend who is very knowledgeable about these things installed it for me. We still couldn't install an operating system. We then installed it using Target Mode by putting the Tiger DVD on a Powerbook. I then proceeded with Software Update. I had no problems with applications like iTunes and DVD player. However, whenever I tried to upgrade the operating system I got this message "The digital signature for this package is incorrect. The package may have been tampered with or corrupted since being signed by "Apple". I used Disc Utility with the Tiger DVD and it showed no problems.
So, there is obviously something really wrong. I have no idea what it is. Any ideas out there? Should I take the iMac back to the genius bar? I don't want to spend a lot more money on it, since it is just used on week-ends when my daughter is home. Thanks.It could be any of those things, but likely is the motherboard. Take it in and have Apple look at it.
Let us know what they say, please. -
Problem with routing - Need help
Hello,
I need a little direction with what I think is a routing problem. Any help will be appreciated. My setup is as follows:
Cable Modem
27.177.21.9
WAN - Gi0/0
27.177.21.10
Cisco 2901
LAN - Gi0/1
192.168.1.250
Client
192.168.1.10
The Problem
Router can ping LAN interface
Router cannot ping WAN interface -X
Router can ping Cable Modem
Client
Client can ping LAN interface
Client can ping WAN interface
Client cannot ping Cable Modem -X
Here is my routing table:
Gateway of last resort is 27.177.21.9 to network 0.0.0.0 (this is my cable modem)
S* 0.0.0.0/0 [1/0] via 27.177.21.9
is directly connected, GigabitEthernet0/0
27.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
C 27.177.21.8/30 is directly connected, GigabitEthernet0/0
L 27.177.21.10/32 is directly connected, GigabitEthernet0/0
192.168.1.0/24 is variably subnetted, 2 subnets, 2 masks
C 192.168.1.0/24 is directly connected, GigabitEthernet0/1
L 192.168.1.250/32 is directly connected, GigabitEthernet0/1
Here is a portion of my configuration:
interface GigabitEthernet0/0
description Cable Internet$FW_OUTSIDE$$ETH-WAN$
ip address 27.177.21.10 255.255.255.252
zone-member security out-zone
duplex auto
speed auto
interface GigabitEthernet0/1
description hbc_staff$FW_INSIDE$$ETH-LAN$
ip address 192.168.1.250 255.255.255.0
zone-member security in-zone
duplex auto
speed auto
no mop enabled
ip default-gateway 27.177.21.9
ip forward-protocol nd
ip http server
ip http access-class 23
ip http authentication local
ip http secure-server
ip http timeout-policy idle 600 life 86400 requests 10000
ip route 0.0.0.0 0.0.0.0 27.177.21.9
ip route 192.168.1.0 255.255.255.0 27.177.21.9
Thanks in advanceHello Jon,
I continue to try different configurations to get my router to connect without success. I am now trying NAT and this is where we stand now. Any help will be much appreciated.
The problem
Router now pings everything by ip address or name
Client PC from inside the LAN cannot ping modem or Internet
Relevant parts of configuration:
ip domain name mydomain.org
ip name-server 24.247.15.53
ip name-server 66.189.0.100
interface GigabitEthernet0/0
description Internet$FW_OUTSIDE$ETH-WAN$
ip address 27.177.21.10 255.255.255.252
ip nat outside
ip virtual-reassembly in
duplex auto
speed auto
interface GigabitEthernet0/1
description hbc_staff$FW_INSIDE$$ETH-LAN$
ip address 192.168.1.250 255.255.255.0
ip nat inside
ip virtual-reassembly in
zone-member security in-zone
duplex auto
speed auto
no mop enabled
ip nat pool HBC-I 27.177.21.10 27.177.21.10 prefix-length 24
ip nat inside source list 7 pool HBC-I overload
ip route 0.0.0.0 0.0.0.0 27.177.21.9
ip route 192.168.1.0 255.255.255.0 GigabitEthernet0/1
access-list 7 permit 192.168.1.0 0.0.0.255
#show ip route
Gateway of last resort is 27.177.21.9 to network 0.0.0.0
S* 0.0.0.0/0 [1/0] via 27.177.21.9
27.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
C 27.177.21.8/30 is directly connected, GigabitEthernet0/0
L 27.177.21.10/32 is directly connected, GigabitEthernet0/0
192.168.1.0/24 is variably subnetted, 2 subnets, 2 masks
C 192.168.1.0/24 is directly connected, GigabitEthernet0/1
L 192.168.1.250/32 is directly connected, GigabitEthernet0/1
When pinging the modem from a client inside the LAN this is what I get from NAT translations and statistics:
#sho ip nat translations ver
Pro Inside global Inside local Outside local Outside global
icmp 27.177.21.10:40709 192.168.1.8:40709 27.177.21.9:40709 27.177.21.9:40709
create 00:00:05, use 00:00:00 timeout:60000, left 00:00:59, Map-Id(In): 1,
flags:
extended, use_count: 0, entry-id: 4, lc_entries: 0
#sho ip nat statistics
Total active translations: 2 (0 static, 2 dynamic; 2 extended)
Peak translations: 2, occurred 00:00:04 ago
Outside interfaces:
GigabitEthernet0/0
Inside interfaces:
GigabitEthernet0/1
Hits: 104 Misses: 0
CEF Translated packets: 104, CEF Punted packets: 0
Expired translations: 7
Dynamic mappings:
-- Inside Source
[Id: 1] access-list 7 pool HBC-I refcount 2
pool HBC-I: netmask 255.255.255.0
start 27.177.21.10 end 27.177.21.10
type generic, total addresses 1, allocated 1 (100%), misses 0
Total doors: 0
Appl doors: 0
Normal doors: 0
Queued Packets: 0 -
Having problems with burning - need help please!
when I try and burn a disk itunes says no recording
software found. Everytime I start up itunes it says the drivers associated with burning are missing. It ask me to
reinstall the software which I do and I have the same
problem. I have other burning software but cant burn any
itunes Ive purchased do to the format. Any help would be greatly appreciated.
The german note is:
Achtung
Die Registrierungseinträge für die iTunes Treiber zum Import und Brennen von CDs und DVDs fehlen. Diese kann Folge der Installation einer anderen Software zum Brennen von CDs sein. Bitte installieren sie iTunes erneut.
Could anybody please help me??I need more information about your hardware configuration. Run the iTunes Help menu -> Run CD Diagnostics... command and post the results here.
I'm assuming that you're not running 64-bit windows.
It sounds like the driver didn't get installed. You could try doing a repair install on iTunes --
Windows Start menu -> Settings -> Control Panels -> Add or Remove Programs
Select iTunes, Select Change/Remove button, Select "Repair" radio button, click OK.
If that doesn't work, you might try downloading just the CD drivers from :
http://www.gearsoftware.com/support/drivers.cfm
Get the first link, not the second one that talks about gearsec compatibility. -
Problem with ReplaceALL-- Need Help
I want to replace "Â" with "& n b s p;" ...
Here is my code
String content = "Â checking Â";
content = content.replaceAll("\u00C2", "& n b s p;");
or
*content = content.replaceAll("[Â]", "& n b s p;");*
*or*
*content = content.replaceAll("Â", "& n b s p;");*
All the above cases works fine in JAVA 1.6 but in JAVA 1.5 its not working so please help
The only case working for me is the below one
*content = content.replaceAll("^\\p{ASCII}","& n b s p;");*
but this code will replace all the ASCII characters which will not solve my problem....Works fine on JRockit 1.5_015
-
Problem with ichat, need help reinstalling.
Hey guys, I'm new to mac so I need a little help.
I did something last night to my comp and I'm not sure what it was. But when I click on the iChat icon it just comes up with a ? I search in spotlight and it's not there. I must have deleted it while getting rid of some other things. I don't have time machine and I need some help reinstalling. When I bought the mac it had Tiger and I still have those disc, but right now I have upgraded to Leopard. Where can I find iChat to reinstall? I looked on the iLife section of the Tiger discs but I couldn't find it. Any info will help.
Thanksupdate
I downloaded pacifist and got ichat to reinstall from my Tiger 10.4.9 disc, however, now when I try to open iChat it says, You cannot use the application “iChat” with this version of Mac OS X. I have leopard 10.5.2. Does anyone know how to update the version I have? I use the mac updater but it doesn't find anything. -
Blacklight Problem with z61t - Need help!
I'm at my wit's end with this, so I would appreciate some help.
I cracked the LCD of my z61t a few weeks ago and I've gone through a number of ebay vendors trying to get a good LCD. The first one I'm 90% sure had a bad backlight. I plugged in the panel and the backlight didn't turn on. I plugged the cracked panel back in and its backlight worked. Returned it. The second panel I ordered was some generic panel even though the seller sold it as genuine. Returned it. The third panel just came in and when I plugged in the panel the backlight didn't turn on. I plugged the cracked panel in and its backlight didn't work.
So now I ask, what's the problem? When your backlight doesn't work the causes are (1) bad CCFL tube (2) bad inverter (3) bad display cable (4) bad motherboard. All 4 were working fine a week ago, and the laptop has just been sitting on my desk for the last week, so what happened?
One of the causes of bad motherboard is a fuse pops, which I guess could have happened.
Another idea is that the laptop thinks the screen is closed. Older laptops had a physical switch for open/closed panel, but I haven't seen it on the z61t. Does anyone know what/where the switch is? I painted the lid and bezels (posted on thinkpads.com), so I'm wondering if the switch is covered or stuck.
I'd appreciate any thoughts! Thanks!It was the inverter. Not sure what happened to it, but I cannibalized my girlfriend's z61t for a working one.
-
Problems with G5-Need Help Narrowing Down Issue
I have I PowerMac G5 dual 2.0 GHz from the June 2004 bracket and am having issues getting it to turn on. When I press the power button I will get one of three results. One: the light will come on when pressed, the fans will rev and I can hear the hear drive start to work, but the power light will go back out after a second or two while the fans still spin. Second: the power button is depressed and no light comes on but the fans, hard drive start up, etc. Third but least common is that the power button is depressed and it will come on as normal, boot up just fine and I'm able to use the computer-going as far as running apps and games with no problem. I've taken the steps mentioned in other threads such as resetting the PSU, swapping batteries, reseating video card/RAM but the results with start up are varied so much as to I can't tell what (if anything) is helping. I don't know if it's power supply issue (because the fans and other things seem to work fine) or a motherboard issue (but that wouldn't explain why it works fine when it wants to). I'm stuck. Any help is greatl appreciated.
Hi fiveinchwrench-
Usually this problem is either a power supply or mother board. It sounds more like a power supply to me but there is no way to tell from here.
It may be worth taking it to an Authorized Apple Repair Center for a diagnosis. Both a power supply and a mother board will probably be in short supply, but the power supply will by far be the cheaper component.
Luck-
-DaddyPaycheck -
Serious and Sudden Problem with Z10 NEED HELP PLEASE
I have a z10, one of the first that came out in Toronto (if it makes a
difference), a couple of hours ago I came across a serious and sudden
problem.
I was able to swipe left and right between pages of apps, even drop down
from the top, but I cannot open anything, not even make a call or settings
options.
Any time I try to, for a split second it looks like its about to load
something then nothing. (image slides to the right quickly and goes back on
every attempt)
So I first did a reset, same problem, then I did a battery pull (about 15 minutes) and problem presisted.
I tried through USB to do a backup on blackberry manager and perhaps do a
re-install of everything, however when I was prompted for the password of
my device on my PC it kept telling me it was an incorrect password (I use
this blackberry on my computer 4-7 days a week, twice a day sometimes for a
year and I have never miss typed my password nor have i changed it)
After trying everything to make sure the first letter maybe was upper/lower
case, even my other possible phone password, nothing worked..
On the 5th failed attempt my phone prompted me to type 'blackberry', which
i did, then i typed my password on my phone which i type in about 15 times
a day becuase I set my phone to a 5 minute lock and still said it was incorrect.... I am no on 9/10 attempts and lost
for options.
Please if anyone can give me any suggestions, or even how to backup my phone
and whipe it now, or I have an earlier backup form 4 months ago that I
wouldnt mind going back to in worst case scenario.
Thank you for your help in advance,
Solved!
Go to Solution.Sorry, no I haven't experienced that. It could be from an app you downloaded but that's just a guess. Wiping the device will tell us a lot. If the device still doesn't work you'll want to reload the OS using BB Link. if it still doesn't work after that then warranty support will be necessary through Rogers.
1. Please thank those who help you by clicking the "Like" button at the bottom of the post that helped you.
2. If your issue has been solved, please resolve it by marking the post "Solution?" which solved it for you! -
Problem with script – NEED HELP
HELP!!! why isn't the script working?
on adding folder items to thefolder after receiving theAddedItems
repeat with eachitem in theAddedItems
set theSender to "me<[email protected]>"
set recipCommon to "Files"
set recipAddress to (choose from list {"User 1", "User 2", "User 3"} with prompt "Select a recipient :") as text
if result is "User 1" then
set recipAddress to {"User 1 <[email protected]>"}
else if result is "User 2" then
set recipAddress to {"User 2 <[email protected]>"}
else if result is "User 3" then
set recipAddress to {"User 3 <[email protected]>", "[email protected]>"}
end if
set msgText to " type body copy here "
tell application "Mail"
set newmessage to make new outgoing message with properties {content:msgText & return}
tell newmessage
set sender to theSender
tell application "Finder" to set theSubject to name of eachitem
set subject to theSubject
repeat with eachRecipient in recipAddress
make new to recipient at end of to recipients with properties {name:recipCommon, address:eachrecipAddress}
end repeat
end tell
send newmessage
end tell
end repeat
end adding folder items toHELP......
!!!Everything works in the below script except it doesn't send the email?!!!
on adding folder items to thefolder after receiving theAddedItems
repeat with eachitem in theAddedItems
set theSender to "me<[email protected]>"
set recipCommon to "Files"
set recipAddress to (choose from list {"User 1", "User 2", "User 3"} with prompt "Select a recipient :") as text
if result is "User 1" then
set recipAddress to {"User 1 <[email protected]>"}
else if result is "User 2" then
set recipAddress to {"User 2 <[email protected]>"}
else if result is "User 3" then
set recipAddress to {"User 3 <[email protected]>", "[email protected]>"}
end if
set msgText to " type body copy here "
tell application "Mail"
set newmessage to make new outgoing message with properties {content:msgText & return}
tell newmessage
set visible to true
set sender to theSender
tell application "Finder" to set theSubject to name of eachitem
set subject to theSubject
repeat with eachRecipient in recipAddress
make new to recipient at end of to recipients with properties {name:recipCommon, address:eachRecipient}
end repeat
repeat with eachRecipient in recipAddress
make new to recipient at end of to recipient with properties {name:recipCommon, address:recipAddress}
set eachRecipient to contents of eachRecipient
end repeat
end tell -
Major Safari Problems...Need Help ASAP
I am not able to quite Safari and it kept freezing on me today and it has been really slow lately...what's up with that and what can I do? I want to upgrade my software but I can't because I need to quite Safari to update my computer in order to restart it and it won't quite.
Hi ReenJeens,
Welcome to the Apple Support Communities!
I understand how frustrating it can be when an application becomes unresponsive. You can force quit any application that becomes unresponsive either by using the shortcut Command-Option-Escape or by selecting the Apple logo in the top left corner of the Menu bar.
OS X: How to quit an unresponsive application using Force Quit
Cheers,
Joe -
First problem is since I ran the new updates my laptop will not enter sleep mode by pressing the power button. It used to before now it wont. Ive checked my setting and they are still set to sleep when power button is pressed on the windows setting.
Second, Ive been noticing that my Internet connection keeps disconnecting at random times for no reason, then it will re-connect. I never had this problem before with other laptops and my router and modem are fine.First, Check for updates manually to see if there's any other new updates that is not yet available in ThinkVantage System Update, if possible, update your BIOS.
Second, try to look for new Wireless or LAN driver. Try to get newer driver from Intel.com if your wireless or LAN card is from Intel.
Best Regards -
Need help ASAP...iPhone activation problems
Today i bought two verizon iPhones from the apple store. I activated one just fine but I'm having problems with the other one. I used the upgrade for one of my lines on the account to purchase the other phone. I actually bought this for a friend who will use the iPhone on her own personal account. When I went to the apple store they "activated" the phone but didn't hook it up to the computer for iTunes or anything. Are there any steps I need to take before I give the phone to her so she can have a smooth transition in activating the phone because she lives in another state than I do? Do I have to hook the phone up to iTunes and activate it on my line or no? then switch back to old phone? Phone has never been hooked up to the computer. Need help ASAP please.
What kind of problems?
Maybe you are looking for
-
How do i download a version of itunes that will allow me to have the apple software
I have Windows 7 and I'm unable to download the new iTunes. The discussion boards tell me to uninstall "Apple Software" or repair it but I don't even have it in my computer. I'm trying to find another option but all it keeps bringing me back to is to
-
Hi, When I try to upload photos to any website, using their upload feature, my Aperture librar does not show up. The iPhoto library, which I don't use, is the only available library. While in Aperture, my library seems fine. However, when I look at
-
I'm not sure what jail breaking is, however one of my friends insisted on jail breaking my iPod, 4th generation. Now it is stuck in recovery mode and everything has been wiped out. I had backed my iPod up to my computer before everything happened. Th
-
I have an APEX application that multiple URL's access. ex: www.compA.com/pls/apex?f=100 & www.compB.com/pls/apex?f=100. Is there a way I can pull the URL that is being displayed in the browser? I need to show different information on the page based o
-
My LaserJet CP1215 installed regularly in windows 8 consumer preview ...
... but doesn't appear connected! And doesn't work at all. What shell i do ? I'm using it on a HP-Pavilion System Model KC887AA-ABZ a6270.it System Type X86-based PC Processor AMD Athlon(tm) 64 X2 Dual Core Processor 5000+, 2600 Mhz, 2 Core(