(PS5) Required Components are Disabled ? Who can help me?(install problem)
I try to download 3 time PS5 for trial, but i can't select programlist on checkbox.
and I try to download Creative Suit 5 and can't select ADOBE PHOTOSHOP CS5
for install too.
My OS Windows XP SP3 32Bit.
Disk space 9GB
Pls tell me,How i can to this slove problem?
Thank you for every asnwer.
Not sure why this is happening but can be couple of reasons:
1) Your download is not proper , while installing it is trying to find some required components which are not there and showing that they are disabled.
2) Which language have you selected for install.
There must be logs created kept at this location: Program Files/Common Files/Adobe/Installers by the name of Adobe Photoshop CS5. Can you please share that.
Similar Messages
-
Required components are disabled
Hello,
I am trying install AE CS5.5 on my computer:
Windows 7 Professional
srv pck 1
Intel(R) Core(TM) i3 CPU M 370 @ 2.40GHz
Installed memory (RAM): 8.00 GB (7.80 GB usable)
System Type: 64-Bit
Once I get to the actual install portion of the setup is states "required components are disabled" and I am unable to check the box to install. I have 12.8 GB of available space on my computer and the install box indicates that the install will only use 433 MB? Is that correct, seems small. Either way I have plenty of memory, and the box states that I have the 64-bit compatible AE, and it appears I have all the requirements from the back of the box as well. So what gives? Why could it be saying this? Mabe I don't have enough "cache"? Not even really sure what cache is or if it's applicable here but I at this point I'm just taking shots in the dark. Any help would be appreciated. Thank you!!I'm running a Macbook Pro i7 2.66Ghz 2010 model (6.2) with 8GB of RAM and ~18GB of space remaining.
A few possibilities looking over the list:
- These models come with NVIDIA GeForce GT 330M video card, which I see is not in your supported GPU-accelerated list. Is GPU acceleration a hard requirement?
- I'm running off of a OCZ Vertex 3 solid-state drive. The requirements state a 7200RPM drive. While my drive more than meets that limit, I'm wondering if it's being detected incorrectly.
- I have swapped out my DVD drive for a second hard drive. It would not seem a necessary system requirement to have a DVD drive for the Premiere Pro functionality, but if this is a hard requirement then this may be the problem.
I can't do much about the first, but if it's either of the latter two I might. It'd be nice if the installer could tell me this directly. -
'Required components are disabled' error during trial install
I've downloaded the CS5.5 trial for the first time. When I install, I see three checkboxes for install: Encore, OnLocation, and Premiere Pro. The first two are checked, but the third is unchecked with a red X to the right of its name. If I try to select Premiere Pro, I see on the right side the message: 'Required compnents are disabled'. I have no idea what this means, but it unfortunately is immutable and prevents me from installing.
Older forum posts mention this phrase and that you need to run CS5Clean. I've done this and while I have some software installed (Flash Builder, , I've never installed Premiere before. Here is the output of my cleanup.xml:
<?xml version="1.0" encoding="UTF-8"?>
<Products>
<Properties>
<Property name="eulaAccepted">1</Property>
</Properties>
<CS5>
<!--<Product productName="Adobe Flash Catalyst CS5.5" version="1.5"/>-->
<!--<Product productName="Adobe Flash Media Live Encoder" version="3.1"/>-->
<!--<Product productName="Adobe Flash Builder 4" version="4.0"/>-->
<!--<Product productName="Adobe Flash Builder" version="4.5"/>-->
<!--<Product productName="Adobe Illustrator CS5.1" version="15.1"/>-->
<!--<Product productName="Adobe Audition" version="4.0"/>-->
</CS5>
<CS4>
<!--<Product productName="Adobe SwitchBoard 1.0" version="1.0.0"/>-->
</CS4>
<CS3>
<!--<Product productName="Adobe Update Manager CS3" version="5.1.0"/>-->
</CS3>
</Products>
Any ideas?I'm running a Macbook Pro i7 2.66Ghz 2010 model (6.2) with 8GB of RAM and ~18GB of space remaining.
A few possibilities looking over the list:
- These models come with NVIDIA GeForce GT 330M video card, which I see is not in your supported GPU-accelerated list. Is GPU acceleration a hard requirement?
- I'm running off of a OCZ Vertex 3 solid-state drive. The requirements state a 7200RPM drive. While my drive more than meets that limit, I'm wondering if it's being detected incorrectly.
- I have swapped out my DVD drive for a second hard drive. It would not seem a necessary system requirement to have a DVD drive for the Premiere Pro functionality, but if this is a hard requirement then this may be the problem.
I can't do much about the first, but if it's either of the latter two I might. It'd be nice if the installer could tell me this directly. -
Who can help me :)--a problem with java program(reset problem in java )
I do not know how to make the button reset,my program only could reset diagram but button.If any one who could help me to solve this problem.The problem is When the reset button is pressed, the image should immediately revert to the black square, and the 4 widgets listed above should show values that
correspond to the black square.The code like this,first one is shapes:
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import javax.swing.event.*;
public class shapes extends JFrame {
private JPanel buttonPanel; // panel for buttons
private DrawPanel myPanel; // panel for shapes
private JButton resetButton;
private JComboBox colorComboBox;
private JRadioButton circleButton, squareButton;
private ButtonGroup radioGroup;
private JCheckBox filledButton;
private JSlider sizeSlider;
private boolean isShow;
private int shape;
private boolean isFill=true;
private String colorNames[] = {"black", "blue", "cyan", "darkGray", "gray",
"green", "lightgray", "magenta", "orange",
"pink", "red", "white", "yellow"}; // color names list in ComboBox
private Color colors[] = {Color.black, Color.blue, Color.cyan, Color.darkGray,
Color.gray, Color.green, Color.lightGray, Color.magenta,
Color.orange, Color.pink, Color.red, Color.white, Color.yellow};
public shapes() {
super("Draw Shapes");
// creat custom drawing panel
myPanel = new DrawPanel(); // instantiate a DrawPanel object
myPanel.setBackground(Color.white);
// set up resetButton
// register an event handler for resetButton's ActionEvent
resetButton = new JButton ("reset");
resetButton.addActionListener(
// anonymous inner class to handle resetButton events
new ActionListener() {
// draw a black filled square shape after clicking resetButton
public void actionPerformed (ActionEvent event) {
// call DrawPanel method setShowStatus and pass an parameter
// to decide if show the shape
myPanel.setShowStatus(true);
isShow = myPanel.getShowStatus();
shape = DrawPanel.SQUARE;
// call DrawPanel method setShape to indicate shape to draw
myPanel.setShape(shape);
// call DrawPanel method setFill to indicate to draw a filled shape
myPanel.setFill(true);
// call DrawPanel method draw
myPanel.draw();
myPanel.setFill(true);
myPanel.setForeground(Color.black);
}// end anonymous inner class
);// end call to addActionListener
// set up colorComboBox
// register event handlers for colorComboBox's ItemEvent
colorComboBox = new JComboBox(colorNames);
colorComboBox.setMaximumRowCount(5);
colorComboBox.addItemListener(
// anonymous inner class to handle colorComboBox events
new ItemListener() {
// select shape's color
public void itemStateChanged(ItemEvent event) {
if(event.getStateChange() == ItemEvent.SELECTED)
// call DrawPanel method setForeground
// and pass an element value of colors array
myPanel.setForeground(colors[colorComboBox.getSelectedIndex()]);
myPanel.draw();
}// end anonymous inner class
); // end call to addItemListener
// set up a pair of RadioButtons
// register an event handler for RadioButtons' ItemEvent
squareButton = new JRadioButton ("Square", true);
circleButton = new JRadioButton ("Circle", false);
radioGroup = new ButtonGroup();
radioGroup.add(squareButton);
radioGroup.add(circleButton);
squareButton.addItemListener(
// anonymous inner class to handle squareButton events
new ItemListener() {
public void itemStateChanged (ItemEvent event) {
if (isShow==true) {
shape = DrawPanel.SQUARE;
myPanel.setShape(shape);
myPanel.draw();
}// end anonymous inner class
);// end call to addItemListener
circleButton.addItemListener(
// anonymous inner class to handle circleButton events
new ItemListener() {
public void itemStateChanged (ItemEvent event) {
if (isShow==true) {
shape = DrawPanel.CIRCLE;
myPanel.setShape(shape);
myPanel.draw();
else
System.out.println("Please click Reset button first");
}// end anonymous inner class
);// end call to addItemListener
// set up filledButton
// register an event handler for filledButton's ItemEvent
filledButton = new JCheckBox("Filled", true);
filledButton.addItemListener(
// anonymous inner class to handle filledButton events
new ItemListener() {
public void itemStateChanged (ItemEvent event) {
if (isShow==true) {
if (event.getStateChange() == ItemEvent.SELECTED) {
isFill=true;
myPanel.setFill(isFill);
myPanel.draw();
else {
isFill=false;
myPanel.setFill(isFill);
myPanel.draw();
else
System.out.println("Please click Reset button first");
}// end anonymous inner class
);// end call to addItemListener
// set up sizeSlider
// register an event handler for sizeSlider's ChangeEvent
sizeSlider = new JSlider(SwingConstants.HORIZONTAL, 0, 300, 100);
sizeSlider.setMajorTickSpacing(10);
sizeSlider.setPaintTicks(true);
sizeSlider.addChangeListener(
// anonymous inner class to handle sizeSlider events
new ChangeListener() {
public void stateChanged(ChangeEvent event) {
myPanel.setShapeSize(sizeSlider.getValue());
myPanel.draw();
}// end anonymous inner class
);// end call to addChangeListener
// set up panel containing buttons
buttonPanel = new JPanel();
buttonPanel.setLayout(new GridLayout(4, 1, 0, 50));
buttonPanel.add(resetButton);
buttonPanel.add(filledButton);
buttonPanel.add(colorComboBox);
JPanel radioButtonPanel = new JPanel();
radioButtonPanel.setLayout(new GridLayout(2, 1, 0, 20));
radioButtonPanel.add(squareButton);
radioButtonPanel.add(circleButton);
buttonPanel.add(radioButtonPanel);
// attach button panel & draw panel to content panel
Container container = getContentPane();
container.setLayout(new BorderLayout(10,10));
container.add(myPanel, BorderLayout.CENTER);
container.add(buttonPanel, BorderLayout.EAST);
container.add(sizeSlider, BorderLayout.SOUTH);
setSize(500, 400);
setVisible(true);
public static void main(String args[]) {
shapes application = new shapes();
application.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
}second one is drawpanel:
import java.awt.*;
import javax.swing.*;
public class DrawPanel extends JPanel {
public final static int CIRCLE = 1, SQUARE = 2;
private int shape;
private boolean fill;
private boolean showStatus;
private int shapeSize = 100;
private Color foreground;
// draw a specified shape
public void paintComponent (Graphics g){
super.paintComponent(g);
// find center
int x=(getSize().width-shapeSize)/2;
int y=(getSize().height-shapeSize)/2;
if (shape == CIRCLE) {
if (fill == true){
g.setColor(foreground);
g.fillOval(x, y, shapeSize, shapeSize);
else{
g.setColor(foreground);
g.drawOval(x, y, shapeSize, shapeSize);
else if (shape == SQUARE){
if (fill == true){
g.setColor(foreground);
g.fillRect(x, y, shapeSize, shapeSize);
else{
g.setColor(foreground);
g.drawRect(x, y, shapeSize, shapeSize);
// set showStatus value
public void setShowStatus (boolean s) {
showStatus = s;
// return showstatus value
public boolean getShowStatus () {
return showStatus;
// set fill value
public void setFill(boolean isFill) {
fill = isFill;
// set shape value
public void setShape(int shapeToDraw) {
shape = shapeToDraw;
// set shapeSize value
public void setShapeSize(int newShapeSize) {
shapeSize = newShapeSize;
// set foreground value
public void setForeground(Color newColor) {
foreground = newColor;
// repaint DrawPanel
public void draw (){
if(showStatus == true)
repaint();
}If any kind people who can help me.
many thanks to you!4 widgets???
maybe this is what you mean.
add this inside your actionPerformed method for the reset action
squareButton.setSelected(true);
colorComboBox.setSelectedIndex(0);
if not be more clear in your post. -
The two classes are similar,who can help me to reduce the duplicate code
/./DoubleFilter Class
public class DoubleFilter {
private Vector data = null;
private String symbol = null;
private Vector filterData = null;
public DoubleFilter(Vector _data, String _symbol) {
data = _data;
symbol = _symbol;
filterData = new Vector();
public Vector filter(Double _value){
if(_value==null){
return null;
if(symbol.equals(Symbol.LESS)){
return less(_value);
}else if(symbol.equals(Symbol.GREATER)){
return greater(_value);
}else if(symbol.equals(Symbol.EQUAL)){
return equals(_value);
}else if(symbol.equals(Symbol.NOT_EQUAL)){
return notEquals(_value);
}else if(symbol.equals(Symbol.NOT_LESS)){
return notLess(_value);
}else if(symbol.equals(Symbol.NOT_GREATER)){
return notGreater(_value);
}else{
return null;
private Vector less(Double _value) {
for (int i = 0; i < data.size(); i++) {
Double baseValue = (Double) data.get(i);
if (baseValue.compareTo(_value) < 0) {
filterData.add(data.get(i));
return filterData;
private Vector greater(Double _value) {
for (int i = 0; i < data.size(); i++) {
Double baseValue = (Double) data.get(i);
if (baseValue.compareTo(_value) > 0) {
filterData.add(data.get(i));
return filterData;
private Vector equals(Double _value) {
for (int i = 0; i < data.size(); i++) {
Double baseValue = (Double) data.get(i);
if (baseValue.compareTo(_value) == 0) {
filterData.add(data.get(i));
return filterData;
private Vector notLess(Double _value) {
for (int i = 0; i < data.size(); i++) {
Double baseValue = (Double) data.get(i);
if (baseValue.compareTo(_value) <= 0) {
filterData.add(data.get(i));
return filterData;
private Vector notGreater(Double _value) {
for (int i = 0; i < data.size(); i++) {
Double baseValue = (Double) data.get(i);
if (baseValue.compareTo(_value) >= 0) {
filterData.add(data.get(i));
return filterData;
private Vector notEquals(Double _value) {
for (int i = 0; i < data.size(); i++) {
Double baseValue = (Double) data.get(i);
if (baseValue.compareTo(_value) > 0
|| baseValue.compareTo(_value) < 0) {
filterData.add(data.get(i));
return filterData;
//IntegerFilter Class
public class IntegerFilter {
private Vector data = null;
private String symbol = null;
private Vector filterData = null;
public IntegerFilter(Vector _data, String _symbol) {
data = _data;
symbol = _symbol;
filterData = new Vector();
public Vector filter(Integer _value) {
if (_value == null) {
return null;
if (symbol.equals(Symbol.LESS)) {
return less(_value);
} else if (symbol.equals(Symbol.GREATER)) {
return greater(_value);
} else if (symbol.equals(Symbol.EQUAL)) {
return equals(_value);
} else if (symbol.equals(Symbol.NOT_EQUAL)) {
return notEquals(_value);
} else if (symbol.equals(Symbol.NOT_LESS)) {
return notLess(_value);
} else if (symbol.equals(Symbol.NOT_GREATER)) {
return notGreater(_value);
} else {
return null;
private Vector less(Integer _value) {
for (int i = 0; i < data.size(); i++) {
Integer baseValue = (Integer) data.get(i);
if (baseValue.compareTo(_value) < 0) {
filterData.add(data.get(i));
return filterData;
private Vector greater(Integer _value) {
for (int i = 0; i < data.size(); i++) {
Integer baseValue = (Integer) data.get(i);
if (baseValue.compareTo(_value) > 0) {
filterData.add(data.get(i));
return filterData;
private Vector equals(Integer _value) {
for (int i = 0; i < data.size(); i++) {
Integer baseValue = (Integer) data.get(i);
if (baseValue.compareTo(_value) == 0) {
filterData.add(data.get(i));
return filterData;
private Vector notLess(Integer _value) {
for (int i = 0; i < data.size(); i++) {
Integer baseValue = (Integer) data.get(i);
if (baseValue.compareTo(_value) <= 0) {
filterData.add(data.get(i));
return filterData;
private Vector notGreater(Integer _value) {
for (int i = 0; i < data.size(); i++) {
Integer baseValue = (Integer) data.get(i);
if (baseValue.compareTo(_value) >= 0) {
filterData.add(data.get(i));
return filterData;
private Vector notEquals(Integer _value) {
for (int i = 0; i < data.size(); i++) {
Integer baseValue = (Integer) data.get(i);
if (baseValue.compareTo(_value) > 0
|| baseValue.compareTo(_value) < 0) {
filterData.add(data.get(i));
return filterData;
}additionally I'd remove all but one of the for-loops and call a filter() method on a Filter object that chooses wether to select this item or not
public interface Filter {
public boolean select(Object o);
public abstract class ComparableFilter {
private Comparable base;
public ComparableFilter(Comparable base) {
this.base=base;
public class EqualComparableFilter {
public EqualComparableFilter(Comparable base) {
super(base);
public boolean select(Object o) {
return base.compareTo(o) == 0;
} -
I wish to speak to adviser who can help with my problem , not start a discussion about it
I wish to speak to an advisor about my problem nor start a discussion about it
If it is to do with your PSE9 error though be aware you will probably need to pay for support (both installation support and complimentary incidents for PSE are current version only), defects covered only for current (v12) and previous (v11) versions. :
Unlimited installation support for the current version of the software product, including trials.
Unlimited installation support for the previous version of the software product. (Not available for Adobe Photoshop Elements and Adobe Premiere Elements.)
For two versions back, installation support is provided for 90 days after the current version has been released. For example, installation support for CS4 is available up to 90 days after the release of CS6. (Not available for Adobe Photoshop Elements and Adobe Premiere Elements.)
How-to and product usage support for the current shipping version. This type of support is also provided for the previous version for 90 days after a new full version has been released.
Product defect support for the current and previous version of the software product, including trials.
A limited number of complimentary technical support incidents. Technical support incidents cover basic "how-to" questions and troubleshooting unexpected behavior related to documented features. Your complimentary incidents are available for 90 days after you contact support for the first time:
<snipped> ...
Photoshop Elements and Adobe Premiere Elements: two complimentary incidents, current version only
Cheers,
Neale
Insanity is hereditary, you get it from your children
If this post or another user's post resolves the original issue, please mark the posts as correct and/or helpful accordingly. This helps other users with similar trouble get answers to their questions quicker. Thanks. -
Hi are there some who can help i am trying to update my programs in app store
hi are there some who can help i am trying to update garageband ,iphoto and iMovie on my iMac, but it´s not my apple id it will use to the update, so i dont now the email and the password for the email used, and i cant change it to my apple id
my problem started after i updated to maverick
i hope there are someone who can help ???hi are there some who can help i am trying to update garageband ,iphoto and iMovie on my iMac, but it´s not my apple id it will use to the update, so i dont now the email and the password for the email used, and i cant change it to my apple id
my problem started after i updated to maverick
i hope there are someone who can help ??? -
I have installed ios7 on my iPad 4. After installation it asked me a pass code which I have never set. After multiple attempts it is disabled. I don't have backup on my iCloud or iTunes. Is there anyone who can help to enable it or to reverse iPad to ios6. I asked Apple store & tech said to format it but I will lose all the data..!
Thanks for that. Much more constructive than the last comment. It's only the restriction code I can't recall, not the access passcode. So I can currently access the device, just not age restricted content. Does that's make a difference? I also wondered if anyone knew how many attempts you get to try to get it right. Now tried 21 times and so far nothing bad has happened but I am concerned I'll eventually be completely locked out of the device. That doesn't seem in the spirit of things though. Surely it's foreseeable that a child could repeatedly try to guess the code so I can't see that it would be right to lock the device down completely in that circumstance, particularly if the access code is being typed in correctly every time.
Thanks -
I have an iPhone4 and require the latest software update 4.3.5 every time i try to get it i get a message error 3194 appears yet i have the latest software of everything it is annoying me cause i cant restore my phone either
! who can help?look around the forum tons of people repport that they can't update
makes you suspect that apples update servers can't meet the depand of too many users
trying to update at once -
ratings and picks are not shown in the pictures in the filmstrip, although marked in the LR presets. Who can help?
found the solution: the filmstrip was to small !!!
-
Use Mac. I phone 4 and i Pad all latest software switched to i Cloud, works fine except entries in the Calender of the I Phone are not pushed to I Pad and Mac. reverse (from Mac to I phone and Ipad) it works ok. I pad entries in calender are pushed to Mac and IPhone Who can help me??
On the iPhone open the Calendar app and on the top left conner tap the Calendar button and confirme that the calendars on your iPhone are under iCloud.
If not that is the reason why they are not going.
If they are under iCloud try to toggle off and back on iCloud calendar options. -
We have a powermac PC G5, softwareversion 10.5.8. We need a dongel for internet. Who can help us?
You will have to do the checking for what is available in The Netherlands, or else be very, very patient for somebody else in your area to come by who can tell you which store to go to. I suggest looking for models similar to the one I indicated in the link. Do make sure they are specified as being Mac compatible. Mac drivers are usually built into a device so don't buy one one for a PC in the hope that you can find a Mac driver online. Only in a few cases are Mac drivers featured as separate files.
-
Why the apple store taken more amount more than the amount written on their prices? Is there any one who can help me to contact the apple customer services. Thanks!
Some country's might not include tax in their prices, and if you changed or added your credit card details whilst making the purchase then a small temporary holding charge may also have been placed - in which case that should disappear within a few days (http://support.apple.com/kb/HT3702). Some apps also then allow you to make in-app purchases (though you can disable that via Settings > General > Restrictions)
-
My login option turned to disabled ,according to the tips ,i've changed my passwords many times, but i still can't login my itunes store ,who can help me to solve the problem?
Try here > Can't connect to the iTunes Store
Try disabling anti virus software and turning off the Firewall. -
I will pay for who can help me with this applet
Hi!, sorry for my english, im spanish.
I have a big problem with an applet:
I�ve make an applet that sends files to a FTP Server with a progress bar.
Its works fine on my IDE (JBuilder 9), but when I load into Internet Explorer (signed applet) it crash. The applet seems like blocked: it show the screen of java loading and dont show the progress bar, but it send the archives to the FTP server while shows the java loading screen.
I will pay with a domain or with paypal to anyone who can help me with this problematic applet. I will give my code and the goal is only repair the applet. Only that.
My email: [email protected]
thanks in advance.
adios!thaks for yours anwswers..
harmmeijer: the applet is signed ok, I dont think that is the problem...
itchyscratchy: the server calls are made from start() method. The applet is crashed during its sending files to FTP server, when finish, the applet look ok.
The class I use is FtpBean: http://www.geocities.com/SiliconValley/Code/9129/javabean/ftpbean/
(I test too with apache commons-net, and the same effect...)
The ftp is Filezilla in localhost.
This is the code, I explain a little:
The start() method calls iniciar() method where its is defined the array of files to upload, and connect to ftp server. The for loop on every element of array and uploads a file on subirFichero() method.
Basicaly its this.
The HTML code is:
<applet
codebase = "."
code = "revelado.Upload.class"
archive = "revelado.jar"
name = "Revelado"
width = "750"
height = "415"
hspace = "0"
vspace = "0"
align = "middle"
>
<PARAM NAME="usern" VALUE="username">
</applet>
package revelado;
import java.awt.*;
import java.awt.event.*;
import java.applet.*;
import javax.swing.*;
import java.io.*;
import javax.swing.border.*;
import java.net.*;
import ftp.*;
public class Upload
extends Applet {
private boolean isStandalone = false;
JPanel jPanel1 = new JPanel();
JLabel jLabel1 = new JLabel();
JLabel jlmensaje = new JLabel();
JLabel jlarchivo = new JLabel();
TitledBorder titledBorder1;
TitledBorder titledBorder2;
//mis variables
String DIRECTORIOHOME = System.getProperty("user.home");
String[] fotos_sel = new String[1000]; //array of selected images
int[] indice_tamano = new int[1000]; //array of sizes
int[] indice_cantidad = new int[1000]; //array of quantitys
int num_fotos_sel = 0; //number of selected images
double importe = 0; //total prize
double[] precios_tam = {
0.12, 0.39, 0.60, 1.50};
//prizes
String server = "localhost";
String username = "pepe";
String password = "pepe01";
String nombreusuario = null;
JProgressBar jProgreso = new JProgressBar();
//Obtener el valor de un par�metro
public String getParameter(String key, String def) {
return isStandalone ? System.getProperty(key, def) :
(getParameter(key) != null ? getParameter(key) : def);
//Construir el applet
public Upload() {
//Inicializar el applet
public void init() {
try {
jbInit();
catch (Exception e) {
e.printStackTrace();
//Inicializaci�n de componentes
private void jbInit() throws Exception {
titledBorder1 = new TitledBorder("");
titledBorder2 = new TitledBorder("");
this.setLayout(null);
jPanel1.setBackground(Color.lightGray);
jPanel1.setBorder(BorderFactory.createEtchedBorder());
jPanel1.setBounds(new Rectangle(113, 70, 541, 151));
jPanel1.setLayout(null);
jLabel1.setFont(new java.awt.Font("Dialog", 1, 16));
jLabel1.setText("Subiendo archivos al servidor");
jLabel1.setBounds(new Rectangle(150, 26, 242, 15));
jlmensaje.setFont(new java.awt.Font("Dialog", 0, 10));
jlmensaje.setForeground(Color.red);
jlmensaje.setHorizontalAlignment(SwingConstants.CENTER);
jlmensaje.setText(
"Por favor, no cierre esta ventana hasta que termine de subir todas " +
"las fotos");
jlmensaje.setBounds(new Rectangle(59, 49, 422, 30));
jlarchivo.setBackground(Color.white);
jlarchivo.setBorder(titledBorder2);
jlarchivo.setHorizontalAlignment(SwingConstants.CENTER);
jlarchivo.setBounds(new Rectangle(16, 85, 508, 24));
jProgreso.setForeground(new Color(49, 226, 197));
jProgreso.setBounds(new Rectangle(130, 121, 281, 18));
jPanel1.add(jlmensaje, null);
jPanel1.add(jlarchivo, null);
jPanel1.add(jProgreso, null);
jPanel1.add(jLabel1, null);
this.add(jPanel1, null);
nombreusuario = getParameter("usern");
//Iniciar el applet
public void start() {
jlarchivo.setText("Start() method...");
iniciar();
public void iniciar() {
//init images selected array
fotos_sel[0] = "C:/fotos/05160009.JPG";
fotos_sel[1] = "C:/fotos/05160010.JPG";
fotos_sel[2] = "C:/fotos/05160011.JPG";
// etc...
num_fotos_sel=3; //number of selected images
//conectar al ftp (instanciar clase FtpExample)
FtpExample miftp = new FtpExample();
miftp.connect();
//make the directory
subirpedido(miftp);
jProgreso.setMinimum(0);
jProgreso.setMaximum(num_fotos_sel);
for (int i = 0; i < num_fotos_sel; i++) {
jlarchivo.setText(fotos_sel);
jProgreso.setValue(i);
subirFichero(miftp, fotos_sel[i]);
try {
Thread.sleep(1000);
catch (InterruptedException ex) {
//salida(ex.toString());
jlarchivo.setText("Proceso finalizado correctamente");
jProgreso.setValue(num_fotos_sel);
miftp.close();
//Detener el applet
public void stop() {
//Destruir el applet
public void destroy() {
//Obtener informaci�n del applet
public String getAppletInfo() {
return "Subir ficheros al server";
//Obtener informaci�n del par�metro
public String[][] getParameterInfo() {
return null;
//sube al ftp (a la carpeta del usuario) el archivo
//pedido.txt que tiene las lineas del pedido
public void subirpedido(FtpExample miftp) {
jlarchivo.setText("Iniciando la conexi�n...");
//make folder of user
miftp.directorio("www/usuarios/" + nombreusuario);
//uploads a file
public void subirFichero(FtpExample miftp, String nombre) {
//remote name:
String nremoto = "";
int lr = nombre.lastIndexOf("\\");
if (lr<0){
lr = nombre.lastIndexOf("/");
nremoto = nombre.substring(lr + 1);
String archivoremoto = "www/usuarios/" + nombreusuario + "/" + nremoto;
//upload file
miftp.subir(nombre, archivoremoto);
class FtpExample
implements FtpObserver {
FtpBean ftp;
long num_of_bytes = 0;
public FtpExample() {
// Create a new FtpBean object.
ftp = new FtpBean();
// Connect to a ftp server.
public void connect() {
try {
ftp.ftpConnect("localhost", "pepe", "pepe01");
catch (Exception e) {
System.out.println(e);
// Close connection
public void close() {
try {
ftp.close();
catch (Exception e) {
System.out.println(e);
// Go to directory pub and list its content.
public void listDirectory() {
FtpListResult ftplrs = null;
try {
// Go to directory
ftp.setDirectory("/");
// Get its directory content.
ftplrs = ftp.getDirectoryContent();
catch (Exception e) {
System.out.println(e);
// Print out the type and file name of each row.
while (ftplrs.next()) {
int type = ftplrs.getType();
if (type == FtpListResult.DIRECTORY) {
System.out.print("DIR\t");
else if (type == FtpListResult.FILE) {
System.out.print("FILE\t");
else if (type == FtpListResult.LINK) {
System.out.print("LINK\t");
else if (type == FtpListResult.OTHERS) {
System.out.print("OTHER\t");
System.out.println(ftplrs.getName());
// Implemented for FtpObserver interface.
// To monitor download progress.
public void byteRead(int bytes) {
num_of_bytes += bytes;
System.out.println(num_of_bytes + " of bytes read already.");
// Needed to implements by FtpObserver interface.
public void byteWrite(int bytes) {
//crea un directorio
public void directorio(String nombre) {
try {
ftp.makeDirectory(nombre);
catch (Exception e) {
System.out.println(e);
public void subir(String local, String remoto) {
try {
ftp.putBinaryFile(local, remoto);
catch (Exception e) {
System.out.println(e);
// Main
public static void main(String[] args) {
FtpExample example = new FtpExample();
example.connect();
example.directorio("raul");
example.listDirectory();
example.subir("C:/fotos/05160009.JPG", "/raul/foto1.jpg");
//example.getFile();
example.close();
Maybe you are looking for
-
Regarding: link for download "Oracle Application Express"
hi all Please tell me the link for download the Oracle Application Express Thank you Regards s
-
Why optimizer prefers nested loop over hash join?
What do I look for if I want to find out why the server prefers a nested loop over hash join? The server is 10.2.0.4.0. The query is: SELECT p.* FROM t1 p, t2 d WHERE d.emplid = p.id_psoft AND p.flag_processed = 'N' AND p.desc_poo
-
Can't open PS CS6 after updating iMac to 10.9.5
After I updated my iMac to 10.9.5, I can no longer open PS CS6. When I try to open it, i get a pop up asking me to subscribe to CC for $29.99 p/ month. Also, when the pop up comes up, Adobe Application Manager opens with the CC request. I've been u
-
With the new update all the applications crashed what do I do?
help me!
-
How do I get my lime wire files onto my Z
I have lime wire, and recently downloadeda few songs i wanted to add to my Zen. I've saved the playlist in lime wire into dri've D under my downloads and also many other places i thought i could open the file. Im using the import wizard to transfer t