Help with PhotoAlbum programm using swings (editing)

i have the pictures ready and are place in the correct workshop folder*
but when i click on the labels, nothing show up
Please help :)
import javax.swing.;
import java.awt.*;
import java.awt.event.*;
public class photoAlbum extends JFrame implements ActionListener
private static Container contentPane;
private static String[] buttonLabel;
private static Color[] color;
ImageIcon[] image=*new* ImageIcon[9];
JLabel[] picture= new JLabel[9];
JLabel[] label= new JLabel[9];
JPanel picturePanel = new JPanel();
public photoAlbum()
super();
setSize(900, 700);
setTitle(" *B-CC BFF Album* ");
contentPane = getContentPane();
contentPane.setBackground(Color.+black+);
contentPane.setLayout(*new* BorderLayout());
JPanel buttonPanel = new JPanel();
buttonPanel.setBackground(Color.+white+);
buttonPanel.setLayout(*new* GridLayout(10,1));
buttonLabel = new String[10];
buttonLabel[0] = "Shawte";
buttonLabel[1] = "Mehak";
buttonLabel[2] = "Sonali";
buttonLabel[3] = "Meena";
buttonLabel[4] = "Alanna";
buttonLabel[5] = "Nicole";
buttonLabel[6] = "Amalia";
buttonLabel[7] = "Me";
buttonLabel[8] = "BFF 4evr";
buttonLabel[9] = "Exit Photo Album";
color = new Color[10];
color[0] = new Color(255,255,224);
color[1] = new Color(255,239,219);
color[2] = new Color(240,255,255);
color[3] = new Color(238,224,229);
color[4] = new Color(224,255,255);
color[5] = new Color(240,255,255);
color[6] = new Color(227,227,227);
color[7] = new Color(240,255,255);
color[8] = new Color(216,191,216);
color[9] = new Color(152,251,125);
image = new ImageIcon[9];
for (*int* i = 0; i<image.length; i++)
image= new ImageIcon ("picture"+(i+1)+".jpg");
picture[i]=*new* JLabel();
picture[i].setLayout(*new* BoxLayout(picture[i],BoxLayout.+Y_AXIS+));
Font fontType = new Font("AbcBulletin", Font.+BOLD+, 15);
label[i]= new JLabel("Friend "+(i+1));
label[i].setFont(fontType);
label[i].setForeground(*new* Color(138,43,226));
picturePanel.setLayout(*new* GridLayout(2,2));
picturePanel.setBackground(*new* Color(255,250,205));
picture[i].setIcon(image[i]);
picture[i].add(label[i]);
picturePanel.add(picture[i]);
JButton[] button = new JButton[10];
for (*int* x=0; x<button.length; x++)
button[x] = new JButton(+buttonLabel+[x]);
button[x].addActionListener(*this*);
button[x].setBackground(+color+[x]);
buttonPanel.add(button[x]);
contentPane.add(buttonPanel, BorderLayout.+WEST+);
public void actionPerformed(ActionEvent event)
if(event.getActionCommand().equals("Exit Photo Album"))
System.+exit+(0);
else
for (*int* i = 0; i<+buttonLabel+.length; i++)
if (event.getActionCommand().equals(+buttonLabel+[i]))
contentPane.add(picturePanel);
public static void main(String[] args)
photoAlbum pictureGui = new photoAlbum();
pictureGui.setVisible(*true*);

On the toolbar of the forum post form, you could see eight icons:
B I]/i] U .. ABC "" CODE (?)
When you write a code in your post, push the CODE icon and sandwich your code with the { code }{ code } pair. And,
Post a small demo code that is generally compilable, runnable and could reproduce your problem. See: http://homepage1.nifty.com/algafield/sscce.html and http://www.yoda.arachsys.com/java/newsgroups.html

Similar Messages

  • Help for a begginer using swing

    Basically I need help with a program for a school project. i am not looking for a quick answer but rather some pointers in the right direction. This is my first time using swing and my first project is to create a blackJack game. I am having trouble with functionality. there are problems on tab 2 with almost all the buttons. any help would be greatly appreciated. since i didnt have enough room for all my code i posted it online to be accessed at this site: [https://code.google.com/p/blackjackgui-alpha/]

    private void jTextField2ActionPerformed(java.awt.event.ActionEvent evt) {
    String betString = jTextField2.getText();
    betString = Integer.toString(bet);// TODO add your handling code here:
    total = total - bet;
      private void jMenuItem1ActionPerformed(java.awt.event.ActionEvent evt) {                                          
        System.exit(0);        // TODO add your handling code here:
      private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {                                        
        String name = jTextField1.getText();
        String prefix = (String)jComboBox1.getSelectedItem();
        jLabel2.setText("Hello " + prefix + name + " and welcome to blackJack please press the tab labeled BlackJack");
          jLabel3.setText("Welcome to you personal blackJack game " + prefix + name + " your cards are" + card1 + "(" + card1s + ") and " + card2 + "(" +card2s + ")  your hand total is " + handTotal);
        jLabel5.setText("This is where you may see the Dealers information " + prefix + name);
      private void jButton2ActionPerformed(java.awt.event.ActionEvent evt) {                                        
              handTotal = card1 + card2;
              if(handTotal > 21)
                  jLabel3.setText("You busted press hit");
                  handTotal = 0;
              handTotal = card1+card2;
              dealerHandTotal = 0;
              dealerHandTotal = dealerCard1 + dealerCard2;
              handTotal = handTotal + card3;
          jLabel3.setText("You have hit and recieve " + card3 +   "your total is " + handTotal);
                jLabel5.setText("Dealer hits and recieves " + dealerCard1 + "(" + dealerCard1s + ") and " + dealerCard2 + "(" + dealerCard2s + ")  Dealer total is " + dealerHandTotal);
        if(handTotal > 21)
          jLabel3.setText("I am sorry, you busted with: " + handTotal + "Please press hit to begin a new round");
    handTotal = 0;
          card1=card1;
          card2 = card2;
        else if( handTotal == 21)
              total =  total + (bet*2);
          jLabel3.setText("BLACKJACK!!! your total is now: " + total);
          handTotal = 0;
          dealerHandTotal = 0;
        else if(handTotal == dealerHandTotal)
            jLabel3.setText("PUSH ...house automatically wins");
                       jLabel5.setText("PUSH ...house automatically wins");
                       handTotal = 0;
                       dealerHandTotal = 0;
        else if(dealerHandTotal < 17 || handTotal > dealerHandTotal) {
                    dealerHandTotal = dealerHandTotal + dealerCard1;
        else if(dealerHandTotal == 21)
            jLabel5.setText("DEALER GETS BLACKJACK!!")
                    dealerHandTotal = 0;
            dealerHandTotal = dealerCard1+dealerCard2;
            handTotal = 0;
            handTotal = card1 + card2;
      private void jButton3ActionPerformed(java.awt.event.ActionEvent evt) {                                        
        jLabel3.setText("You have stood at " + handTotal);   // TODO add your handling code here:
      private void jButton4ActionPerformed(java.awt.event.ActionEvent evt) {                                        
        jLabel3.setText("You have folded at your total of: " + handTotal);
        jLabel5.setText("You have folded at you total of:" + handTotal)
        handTotal = 0;
        dealerHandTotal = 0;
      }                  Sorry i thought it would be more convenient for the code to be on another page..my bad
    Edited by: rightWingNutJob on Mar 4, 2010 2:07 PM
    Edited by: rightWingNutJob on Mar 4, 2010 2:30 PM

  • Help with Photo Gallery using XML file

    I am creating a photo gallery using Spry.  I used the Photo Gallery Demo (Photo Gallery Version 2) on the labs.adobe.com website.  I was successful in creating my site, and having the layout I want.  However I would like to display a caption with each photo that is in the large view.
    As this example uses XML, I updated my file to look like this:
    <photos id="images">
                <photo path="aff2010_01.jpg" width="263" height="350" thumbpath="aff2010_01.jpg" thumbwidth="56"
                   thumbheight="75" pcaption="CaptionHere01"></photo>
                <photo path="aff2010_02.jpg" width="350" height="263" thumbpath="aff2010_02.jpg" thumbwidth="75"
                   thumbheight="56" pcaption="CaptionHere02"></photo>
                <photo path="aff2010_03.jpg" width="350" height="263" thumbpath="aff2010_03.jpg" thumbwidth="75"
                   thumbheight="56" pcaption="CaptionHere03"></photo>
    </photos>
    The images when read into the main file (index.asp) show the images in the thumbnail area and display the correct image in the picture pain.  Since I added the pcaption field to the XML file, how do I get it to display?  The code in my index.html file looks like this:

    rest of the code here:
            <div id="previews">
                <div id="controls">
                    <ul id="transport">
                        <li><a href="#" class="previousBtn" title="Previous">Previous</a></li>
                        <li><a href="#" class="playBtn" title="Play/Pause" id="playLabel"><span class="playLabel">Play</span><span class="pauseLabel">Pause</span></a></li>
                        <li><a href="#" class="nextBtn" title="Next">Next</a></li>
                    </ul>
                </div>
                <div id="thumbnails" spry:region="dsPhotos" class="SpryHiddenRegion">
                    <div class="thumbnail" spry:repeat="dsPhotos"><a href="{path}"><img alt="" src="{thumbpath}"/></a><br /></div>
                    <p class="ClearAll"></p>
                </div>
            </div>
            <div id="picture">
                <div id="mainImageOutline"><img id="mainImage" alt="main image" src=""/><br /> Caption:  {pcaption}</div>
            </div>
            <p class="clear"></p>
        </div>
    Any help with getting the caption to display would be greatly appreciated.  The Caption {pcaption} does not work,

  • Help with Switch statements using Enums?

    Hello, i need help with writing switch statements involving enums. Researched a lot but still cant find desired answer so going to ask here. Ok i'll cut story short.
    Im writing a calculator program. The main problem is writing code for controlling the engine of calculator which sequences of sum actions.
    I have enum class on itself. Atm i think thats ok. I have another class - the engine which does the work.
    I planned to have a switch statement which takes in parameter of a string n. This string n is received from the user interface when users press a button say; "1 + 2 = " which each time n should be "1", "+", "2" and "=" respectively.
    My algorithm would be as follows checking if its a operator(+) a case carry out adding etc.. each case producing its own task. ( I know i can do it with many simple if..else but that is bad programming technique hence im not going down that route) So here the problem arises - i cant get the switch to successfully complete its task... How about look at my code to understand it better.
    I have posted below all the relevant code i got so far, not including the swing codes because they are not needed here...
    ValidOperators v;
    public Calculator_Engine(ValidOperators v){
              stack = new Stack(20);
              //The creation of the stack...
              this.v = v;          
    public void main_Engine(String n){
           ValidOperators v = ValidOperators.numbers;
                    *vo = vo.valueOf(n);*
         switch(v){
         case Add: add();  break;
         case Sub: sub(); break;
         case Mul: Mul(); break;
         case Div: Div(); break;
         case Eq:sum = stack.sPop(); System.out.println("Sum= " + sum);
         default: double number = Integer.parseInt(n);
                       numberPressed(number);
                       break;
                      //default meaning its number so pass it to a method to do a job
    public enum ValidOperators {
         Add("+"), Sub("-"), Mul("X"), Div("/"),
         Eq("="), Numbers("?"); }
         Notes*
    It gives out error: "No enum const class ValidOperators.+" when i press button +.
    It has nothing to do with listeners as it highlighted the error is coming from the line:switch(v){
    I think i know where the problem is.. the line "vo = vo.valueOf(n);"
    This line gets the string and store the enum as that value instead of Add, Sub etc... So how would i solve the problem?
    But.. I dont know how to fix it. ANy help would be good
    Need more info please ask!
    Thanks in advance.

    demo:
    import java.util.*;
    public class EnumExample {
        enum E {
            STAR("*"), HASH("#");
            private String symbol;
            private static Map<String, E> map = new HashMap<String, E>();
            static {
                put(STAR);
                put(HASH);
            public String getSymbol() {
                return symbol;
            private E(String symbol) {
                this.symbol = symbol;
            private static void put(E e) {
                map.put(e.getSymbol(), e);
            public static E parse(String symbol) {
                return map.get(symbol);
        public static void main(String[] args) {
            System.out.println(E.valueOf("STAR")); //succeeds
            System.out.println(E.parse("*")); //succeeds
            System.out.println(E.parse("STAR")); //fails: null
            System.out.println(E.valueOf("*")); //fails: IllegalArgumentException
    }

  • I want to make a VBIDE-Like drag and drop programm using Swing

    I am using swing am able to display no.of JInternalFrames on JDesktopPane to achieve an senario as in the VB-IDE we can easy resize and move the VB-components like Label ,Button ...But i want to drag a JButton or JLabel from any JToolBar and when i draw a rectangle,with dotted lines , on some container (may be JDeskTopane) and when i realese the Mouse then that JButton or JLabel will be displayed on the container.Please give me any idea,code,links or hints so that i can complete it.i.e How i can develope a VB-Ide like drag and ide in Java..
    Thanks in advance....

    Hey there buddy!
    You may like to check out the code for some projects on sourceforge if you wish to build something like this. Firstly, it is no easy task you are undertaking, but a good one none the less!
    The projects I have in mind are the following ones:
    Abacus GUI builder:
    http://sourceforge.net/projects/abaguibuilder
    JUIE
    http://sourceforge.net/projects/juie
    Have a look at the code to see how it is done. JUIE uses AWT but is in the process of being upgraded to swing. Abacus is currently Swing based.
    As far as I know, you are going to have to learn about Mouse handlers, in particular public void mousePressed();mouseDragged() etc... You will also need to learn about the layered pane architechture of Swing. When you click on your button it would (presumably) create a new button, add it to one of the thousands of possible layers you can have, and when you drag that component, the mouseDragged event will constantly send updates to the component to re-position it in the GUI...
    Good luck with it and I would be very interested to see how you went about it in the end.
    Take care
    Jason Barraclough.

  • Help with swap images using rollovers

    I have a website created using DW CS5. Recently purchased FW CS5 to help with web graphics and design. I am trying to create a list of numbers that will swap with images. The intial page would simply be a list of numbers and 1 static image. Each number, when hovered will change the image with another. I've attempted this by first using DW and not having much success with FW either.
    If able to complete this using FW, is it possible to export the file for use in DW? Then insert into an AP Div?

    You're over-complicating it.
    Simply hit File>Save once you're done in photoshop.
    ian

  • Need Help With Military DTD Using FrameMaker 8

    Fellow Forum Members,
    I hope someone out there with experience in using Department of Defense DTDs with FrameMaker can contribute to this thread.
    Attached is the MIL STD 400051-2 DTD that needs to play with FrameMaker. Does anyone out there know where I could find FrameMaker templates already setup that comply and play with the MIL STD 400051-2 DTD standard? If the Department of Defense is freely distributing the MIL STD 400051-2 DTD, shouldn't somebody in the Department of Defense also be providing MIL STD 400051-2 FrameMaker Templates for free that are already setup?  I would greatly appreciate if anyone out there could provide an online source where I could download MIL STD 400051-2 FrameMaker templates.
    Lastly, can anyone out there clarify what the purpose of the entities are inside the "Charant" and "Boilerplate" folders?  The Department of Defense does not provide a readme file that define what the "Charant" and "Boilerplate" folders are about.
    Any info will be greatly appreciated. Thanks.

    I'll answer the specifics that I know about your questions, but please look at the post from Srini for additional info:
    1) Do i need to do full export using SYS/SYSTEM user.
    exp80 system/manager file=c:full.dmp log=c:\full.txt full=y consistent=yA full export will move as much information (metadata/data) as possible. In order to do a full export/import, you need to do this from a
    privileged account. A privileged account is one with EXP_FULL_DATABASE for export and IMP_FULL_DATABASE for import.
    2) Will there be any data corruption while export.The data in the objects that you are exporting is being read, nothing is written to user data. I'm not sure what this is available in 8.0.6,
    but if you need a consistent export, look to see if consistent=y is available in 8.0.6. All this means is that the dump file created will have
    consistent data in it.
    3) Is export/import the only method of migration/upgradation.If you are changing hardware, the only supported way from 8.0 to 10.2.0.4, that I know of, is using exp/imp.
    Hope this helps.
    Dean

  • Help with display glith using JList

    Hi, first post so bit of background - I'm teaching Java at the moment, am fine with command line but am dabbling more with Swing, despite certain glitches I always get ( e.g. the 7-segment display last year) but anyway....
    I've been trying to develop a little app that picks random boxers for a computer game. My current problem is that i am trying to add custom boxers and then update the JList and repaint the frame. When I add a boxer i can see it adding to the list, however it is unreadable and displayed too small.
    Forgive any bad coding etiquettes - its very much a work in progress from a relatively poor programmer ;)
    theBoxers is a JPanel containing the JLists, aWindow is the JFrame, customButton is a button to add a custom fighter - this gets a name from a field, and a weight from a combo box, adds it to an array and then attempts to add it to an array, then re-generate the lists
    customButton.addActionListener(new ActionListener()
                public void actionPerformed(ActionEvent e)
                        addCustom(customCombo.getSelectedIndex(),addCustomName.getText());
                             System.out.println(customCombo.getSelectedIndex() + addCustomName.getText());
                             theBoxers.repaint();
                             aWindow.repaint();
    public void addCustom(int theWeight, String theName)
              switch(theWeight)
                   case 0:          featherCustoms[featherCustomsSize]=theName;
                                  featherFighters = new JList(featherCustoms);
                                  featherCustomsSize++;
                                  break;
                   case 1:          lightCustoms[lightCustomsSize]=theName;
                                  lightFighters = new JList(lightCustoms);
                                  lightCustomsSize++;
                                  break;
                   case 2:          welterCustoms[welterCustomsSize]=theName;
                                  welterFighters = new JList(welterCustoms);
                                  welterCustomsSize++;
                                  break;
                   case 3:          middleCustoms[middleCustomsSize]=theName;
                                  middleFighters = new JList(middleCustoms);
                                  middleCustomsSize++;
                                  break;
                   case 4:          lightHeavyCustoms[lightHeavyCustomsSize]=theName;
                                  lightHeavyFighters = new JList(lightHeavyCustoms);
                                  lightHeavyCustomsSize++;
                                  break;
                   case 5:          heavyCustoms[featherCustomsSize]=theName;
                                  heavyFighters = new JList(heavyCustoms);
                                  heavyCustomsSize++;
                                  break;
                   default:     System.out.println("Not Added");
                                  break;
         }

    Awww, its nice that DB has someone to comeback and carry on a discussion.....long after its over.
    The problem here seems to be your lack of understanding between what a teacher or what an 'instructor' is.
    From the way you speak, an instructor appears to be someone who is technically skilled in both coding and teaching Java as a programming language, designed for people who wish to code in Java.
    A Teacher is someone who must deliver a wide range of subject knowledge to a wide range of abilities, including those who were unable to pass High-School exams. They are responsible for pitching the subject at the correct level for the student, whilst also teaching towards passing the exam, and ultimately gaining a qualification.
    The computing course i am currently teaching does not require OOP, but as Java is the language i was taught at University, and is still often used in our University's, I chose it. I don't pretend to be the best programmer in the world. But I do know that I am teaching the pupils the correct basics, at a higher level than is probably required, to give them the right approach at university. also, this is whilst teaching a large amount of theory.
    Whether you agree, or disagree, matters not to me as I think you would be unfamilier with the specification I am currently teaching to, or what area's of study need to be taught. The exam board appears happy, as do past students who are now well into their university course, as did my marker when i achieved my degree.
    The code posted in the OP (as stated earlier) had nothing to do with displaying my coding abilities, nor did it display the technique's I use when teaching students. It was a small sample of a program which included a JList which was not displaying properly. I tried to include the whole code but it was too big, therefore it was cut down.
    It was a work in progress which i now have working. So now i can look at it again in terms of programming structure. It appears I have made a mistake asking for assistance on here, as instead I got a lecture, with very little insight on your part as to my situation or the nature of the problem/solution.
    At the end of the day, each to his/her own opinion. What I will say is that when someone requests help, positive feedback/criticism is well recieved along with instructions/guidance on how the problem can be solved. I feel that I received none of this on here, but this is what I will always provide to the students I teach.
    Not everyone is a full-time Java programmer or has the time to hit the highest expectations.

  • Help with printing text to Text Edit

    -- Here is a applescript that generates prime numbers up to a certain number. I tried to get the script to print out every number up to the number defined in a text edit document. I got a -1700 error that says (error "Can’t make result of 3 into type Unicode text." number -1700 from result of 3 to Unicode text). If anyone has any help that they can offer me it will be greatly appreciated.
    Heres the Script
    local min, max, neverZero, maxDiv, divTry, res
    set {min, max} to {1, 503}
    set res to {}
    if min = 1 then set min to 2
    if min = 2 then set {res, min} to {{2}, 3}
    if min mod 2 = 0 then set min to min + 1
    repeat until min > max
        set maxDiv to intsqrt(min)
        set {neverZero, divTry} to {true, 3}
        repeat until divTry > maxDiv
            if min mod divTry = 0 then
                set neverZero to false
                exit repeat
            end if
            set divTry to divTry + 2
        end repeat
        if neverZero then
            set res to res & min
            log min
            set resultinfo to "" & result of min
            tell application "TextEdit"
                activate
                set nme_file to ""
                set the_file to (open for access nme_file with write permission)
                write "" & resultinfo to the_file
                write return & resultinfo to the_file starting at eof
                close access the file
            end tell
        end if
        set min to min + 2
    end repeat
    on intsqrt(N)
        return (do shell script "echo 'sqrt (" & N & " )' | /usr/bin/bc")
    end intsqrt

    You're confusing two different steps.  If you want to write the data to an open textedit window, you build a text string of the integers and then write it out to the window like this:
    tell application "TextEdit"
              set text of document 1 to text_string
    end tell
    After that you'll have to save the document.  On the other hand, if you want to write directly to the file on disk, don't use a textedit tell block - just write to the file at the script level (i.e. your code looks correct, but shouldn't be in a tell block).  then you'll have to convince the open textedit window to refresh (which might be a bit tricky).

  • Help with FCP and long project editing - Thanks!

    I have posted several questions in this discussion group and in the iMovie group to no avail. I get a lot of answers, but not from anyone who has actually done any of the editing I am seeking. So if anyone has actually done the editing I am describing below -- I appreciate your help. Yes, I have searched the archives -- but again, I see a lot of confusing feedback. I have been working on this for three days now and it's driving me crazy! I have discovered that iMoive is $#@% -- and does not work with a long project, (40 minutes) so I am thinking about switching to FCP-HD. Thanks.
    Here goes:
    1: I need to transfer original master footage, 1080i HDV from a Sony HDR-FX1 to an editing program, edit the tapes (over 5 hours total) into a 50 minute "program". I then need to "share" or export the footage back to a new tape, using the Sony HDR-FX1 as the receiving camera. Simple enough.
    2: I need to make sure the outgoing footage is of equal quality as the original footage taken from the camera. I am guessing here, that the footage can be edited in FCP-5 as "native" -- then transferred back to the Sony?
    3: I am assuming that the native footage is just that -- and will not require the long process of converting to another format, e.g., ASI that takes hours to
    render. (as in iMovie).
    4: I am assuming I can edit and view HDV as native footage in FCP in real time, like iMovie, via firewire from the camera?
    I really appreciate any assistance.
    Chance

    Welcome to the family, you'll be joining us soon.
    The FCP product page says: > It features powerful new multicamera editing, native HDV support, ... edit everything from DV and SD to DVCPRO HD and fully uncompressed 10-bit high-definition video. Or work with new formats like native HDV (long-GOP MPEG2) and 50Mbps IMX... HD editing requires a 1GHz or faster PowerPC G4 or G5 and 1GB of RAM (2GB recommended).<
    You seem to have the hardware including the Flux-o-pator, but, really, you want to talk to an Apple reseller who handles FCP and understands HDV via Sony. I don't like the way you're using "I am assuming..." You can't assume anything. Give them a chance to sell you FCP or Studio and go demo your camera on their system. You will have concrete evidence of the minimum machine specs and how well you can get your files in and out of the application.
    Call you local Mac user group and try to locate other FCP users.
    Try also the creativecow.net forums for Sony HD products.
    Google your camera model for support groups.
    bogiesan

  • Help with windows Prcesses  - using "com.jniwrapper.win32.process.Process"

    Hi everybody,
    I'm trying to get a list of running processes, and for each process I need its Process ID, Process Name, and the command line that run this process.
    I found a way to get everything but the command-line, by JNI wrappers (below are links to their documentation).
    com.jniwrapper.win32.process.CurrentProcess (has the method - getCOmmanLine() ) :
    http://www.teamdev.com/downloads/jniwrapper/winpack/javadoc/com/jniwrapper/win32/process/Process.html -
    com.jniwrapper.win32.process.Process
    http://www.teamdev.com/downloads/jniwrapper/winpack/javadoc/com/jniwrapper/win32/process/Process.html
    I wrote the following code :
    String a, b;
    List processes = Process.getProcesses();
    for (int i = 0; i < processes.size(); i++) {
    Process process = (Process)processes.get(i);
    a = "process: FileName = " process.getProcessImageFileName();
    b = "id = " process.getProcessID();
    But I need to create an object of "CurrentProcess" (that extends Process class) in order to get the command-line. However, this class only has an empty constructor:
    CurrentProcess() - Creates an instance that corresponds to currently running process.
    and I don't understand what does "corresponds to currently running process" means (Cause there are many running processes) , and how to use it in my code.
    I would appreciate you help very much!
    Thanks,
    Nofar.
    Edited by: Nofarb on Jul 11, 2010 2:38 AM
    Edited by: Nofarb on Jul 11, 2010 2:41 AM

    I'm trying that as well, :)
    I was hoping maybe one of you have some experience with that.
    Thanks anyway.

  • New user - need help with PC Suite use

    Hello. I have a new Nokia 6233, and have installed the current version of PC Suite (6.84.10.4), but can't figure out how to make certain things work that seem like they should. I'm using Windows XP with Service Pack2, and am connecting my phone with my PC via Bluetooth.
    1) I have installed an application using the Install Applications component of PC Suite, and it now shows that the new app is on the phone -- but how do I actually get it from showing up in that category on PC suite to the actual phone?
    2) I have hundreds of phone numbers that migrated over poorly from my old Sony Ericsson via SIM, and would like to edit them on the PC instead of on the phone. However, I see nothing under Contacts in PC Suite. How do I get the PC to recognise the contacts on the phone? If I enter new ones on the PC, how do I get them to the actual phone?
    Thanks in advance if you can help!
    //Albie

    Hi,
    1) Do you mean that you can not find installed application from phone (or what)?
    2) Try to update Contacts folder -> open Nokia Phone Browser > "phone name" > Contacts > and press F5 button.
    Contacts folder includes also button for create a new contact and when you click "Save", it saves that in phone.
    BTW: if you contacts are in SIM card -> you have to copy those first in phone memory.

  • I am Stuck! Need Help With Multicast Streaming Using VLC Player

    I have a Multicast network topology shown below
    and my configs
    HUB ROUTER
    no ip domain lookup
    ip domain name primestarhotel.com
    ip multicast-routing
    interface Loopback0
    ip address 5.5.5.5 255.255.255.255
    ip pim sparse-dense-mode
    interface FastEthernet0/0
    ip address 200.0.0.2 255.255.255.240
    ip pim sparse-dense-mode
    ip virtual-reassembly
    speed 100
    full-duplex
    interface FastEthernet0/1.65
    description "Server Vlan"
    encapsulation dot1Q 65
    ip address 10.1.65.1 255.255.255.0
    ip pim sparse-dense-mode
    ip virtual-reassembly
    router ospf 200
    log-adjacency-changes
    network 5.5.5.5 0.0.0.0 area 0
    network 10.1.65.0 0.0.0.255 area 0
    network 200.0.0.0 0.0.0.15 area 0
    ip route 200.1.1.0 255.255.255.252 200.0.0.1
    ip route 200.2.2.0 255.255.255.252 200.0.0.1
    no ip http server
    no ip http secure-server
    ip pim send-rp-announce Loopback0 scope 6
    ip pim send-rp-discovery Loopback0 scope 6
    ISP ROUTER
    interface FastEthernet1/0
    interface FastEthernet1/1
    no switchport
    ip address 200.0.0.1 255.255.255.240
    ip pim sparse-dense-mode
    duplex full
    speed 100
    interface FastEthernet1/2
    no switchport
    ip address 200.1.1.1 255.255.255.252
    ip pim sparse-dense-mode
    duplex full
    speed 100
    interface FastEthernet1/3
    no switchport
    ip address 200.2.2.1 255.255.255.252
    ip pim sparse-dense-mode
    duplex full
    speed 100
    router ospf 200
    log-adjacency-changes
    network 200.0.0.0 0.0.0.15 area 0
    network 200.1.1.0 0.0.0.3 area 0
    network 200.2.2.0 0.0.0.3 area 0
    SPOKE 1 Router
    interface FastEthernet0/0
    ip address 200.1.1.2 255.255.255.252
    ip pim sparse-dense-mode
    speed 100
    full-duplex
    interface FastEthernet0/1
    no ip address
    ip pim sparse-dense-mode
    ip virtual-reassembly
    speed 100
    full-duplex
    interface FastEthernet0/1.12
    description "Workstation pc"
    encapsulation dot1Q 12
    ip address 10.1.12.1 255.255.255.0
    ip pim sparse-dense-mode
    router ospf 200
    log-adjacency-changes
    network 10.1.12.0 0.0.0.255 area 0
    network 200.1.1.0 0.0.0.3 area 0
    ip route 0.0.0.0 0.0.0.0 200.1.1.1
    SPOKE 2
    interface FastEthernet0/0
    ip address 200.2.2.2 255.255.255.252
    ip pim sparse-dense-mode
    speed 100
    full-duplex
    interface FastEthernet0/1
    ip address 10.2.22.1 255.255.255.0
    ip pim sparse-dense-mode
    speed 100
    full-duplex
    router ospf 200
    log-adjacency-changes
    network 10.2.22.0 0.0.0.255 area 0
    network 200.2.2.0 0.0.0.3 area 0
    ip route 0.0.0.0 0.0.0.0 200.2.2.1
    ip route 200.2.2.0 255.255.255.252 200.0.0.1
    I have implemented multicast on the network in a hub and spoke topology. i have set up ospf routing protocol and broadcast all network and can successfully ping.
    I am currently using VLC player as my media streaming server and client. i have set up rtp streaming from the HUb router using multicast ip 224.2.2.2 and unable to broadcast the multicast traffic across the spokes 1 and 2 PC's
    I have never used vlc player  never set up multicast network before and i am struggling with this and need help.
    these are my router configs below
    http://dl.dropbox.com/u/20145606/ip%20video%20config.txt
    Message was edited by: Louis Ojuwu

    I have edited the message and the configs and topology are visible above now. instead of the links i provided

  • Help with an error message: This edit cannot be done...

    "This edit cannot be done because a transition would be cut or an item to one side of a transition would become too short."
    Can someone please help me understand this one? I have a project with self made lower thirds from a .tif graphic on V2 and a text track on V3. Each track has a 15 frame Edge Wipe on both ends. Within the sequence I have no problem either drag copying both tracks together or even copy/pasting them further down the sequence.
    The error pops up when I try to copy/paste to a different sequence. Regardless of whether I try to paste it above my video on V1 or past the video's end I still get that error message.
    If I delete the transitions, I can copy/paste just fine and re-add them, but it's so frustrating. I really just want to understand what's going on here. Could someone explain this in layman's terms?
    Edit: I should also add that if I Option-Click the Toggle Auto Select for track two, I can paste just fine. Which might lead me to believe that it's trying to paste to track V1 where video is already laid down, except that even if I try to paste after the video it still won't work. If I'm copying track V2 and V3, shouldn't paste automatically past to V2 and V3?
    Message was edited by: The Bundok

    I had this problem before. I like to disable extra services to speed up my computer and I disabled the Apple Mobile Device service and had to re-enable this.
    You can do that by going Control Panel>Administrative Tools>Services. Once you have gone to the services window, look for Apple Mobile Device and right-click. Select "Properties". There should be some information about the service as well as the label "Startup Type" with a drop-down menu beside it. If it says "disabled", that is your problem; Change the selection to anything except disabled (Automatic is easier and ensures that you can sync as soon as itunes opens).
    If this doesn't work, I would look into your anti-virus' settings. Good Luck!

  • Help with InDesign and using MacBook Pro with 2.4 GHz Intel Core 2 Duo with 2GB

    Have a Mac Book Pro running 2.4 GHz Intel Core 2 Duo with 2GB RAM is there anyway to use InDesign and if so what version would run on this machine and would I still be able to interface with a printer to produce a magazine?  Or is it possible to upgrade/gut this machine for a new processor and RAM, if that is even possible, and could I then run a CS program say 5.5?

    Thanks for all the help - it is confusing though. I tried to download the trial version of CS5.5 to explore before buying the student version and the program download froze. I have deleted the doadload assistant and spoke with Adobe who told me my machine would not be compatible unless I upgraded - maybe the RAM to 4GB.
    You got bad (wrong) advice.
    If the download didn't work, it has nothing to do with the performance characteristics of your machine. You could download CS5.5 on a low-end PC from 10 years ago, it doesn't take much.
    Unfortunately Adobe's download manager is a bit flakey. Best advice is to use Firefox and try the download again.
    It doesn't have anything to do with the power of your computer, be it speed, processor type, or RAM.
    Make sure you're using FIrefox (if not, download and install it first), and then try the download again.
    Also, the download manager depends on Java. Make sure you have Java installed (but I think you must, because otherwise the download would not have started?).
    If it still doesn't work, give us some more detail. Error message? Screenshot?

Maybe you are looking for