Total newb

Hello :) ,
so Im a total newb :(
I am trying to make this code into a function....
<code>
jd_label.setIcon(new javax.swing.JLabel(){
public javax.swing.Icon getIcon(){
try {
return new javax.swing.ImageIcon(
new java.net.URL("http://ns2.taproot.bz/java/prima_interface/thumbs/02.jpg")
catch (java.net.MalformedURLException e){
return null;
}.getIcon());
</code>
problem is, Im such a new i dont know how to use a var on this line...
jd_label.setIcon(new javax.swing.JLabel(){
I would like jd_label to be a $var but java just wants to update
a label named "var".... i.e.
JLabel jd = new Jlabel();
string fred = jd
fred.setIcon()
but this freaks out... in PERL it seems the vars are a little more
reconazable...
$fred.setIcon();
Could some one please help me :)
Thanks in advance,
jd

You need to study up on what Java is, how it works, syntax, etc. It seems you don't have the first clue how to write a valid Java class. This is fine, and of course that's where you have to start, but I think your time will be better spent reading the tutorials (links to which can be found on your left) than getting piecemeal help here on the forums. When you've gotten a handle on what classes, objects, variables, and methods are, and gotten some idea about syntax, come back with more specific problems and people will be more than willing to help you. Also, post to the New to Java Technology forum rather than this one.

Similar Messages

  • I am using elements 10 and only getting audio not video.  Can anyone please explain why? I am a total newbie to video.

    I am using elements 10 and only getting audio not video.  Can anyone please explain why? I am a total newbie to video.

    greenfrogstone
    Just saw your thread, and it looked like a candidate for the Premiere Elements 10 NVIDIA GeForce Roll Back the Driver issue. If your computer uses a NVIDIA GeForce video card/graphics card, then the following applies to you. You do not want to update the driver. Rather you want to roll back the driver version, probably to about May 2013. For your convenience I have done a copy/paste of the forum announcement which gives all the details and fix of the matter.
    Premiere Elements 10 NVIDIA Video Card Driver Roll Back
    If you are a Premiere Elements 10 user whose Windows computer uses a NVIDIA GeForce video card and you are experiencing Premiere Elements 10 display and/or unexplained program behavior, then your first line of troubleshooting needs to be rolling back the video card driver version instead of assuring that it is up to date.
    Since October 2013 to the present, there have been a growing number of reports about display and unexplained workflow glitches specific to the Premiere Elements 10 user whose Windows computer has a NVIDIA GeForce video card. If this applies to you, then the “user to user” remedy is to roll back the NVIDIA GeForce video card driver as far as is necessary to get rid of the problems. The typical driver roll back has gone back as far as March – July 2013 in order to get a working Premiere Elements 10. Neither NVIDIA nor Adobe has taken any corrective action in this regard to date, and none is expected moving forward.
    Since October 2013, the following thread has tried to keep up with the Premiere Elements 10 NVIDIA reports
    http://forums.adobe.com/thread/1317675
    Older NVIDIA GeForce drivers can be found
    http://www.nvidia.com/Download/Find.aspx?lang=en-us
    A February 2014 overview of the situation as well as how to use the older NVIDIA GeForce drivers for the driver roll back can be found
    http://atr935.blogspot.com/2014/02/pe10-nvidia-video-card-roll-back.html
    This matter has been very specific to the Premiere Elements 10 NVIDIA GeForce card user. So, if your computer is using other than a NVIDIA GeForce card, it is likely that the message does not apply to you, and we can then explore other troubleshooting possibities.
    Looking forward to your follow up. Do not hesitate to ask for clarification on anything written here.
    Thanks.
    ATR

  • Login/password to SQL plus - 100% Totally newbie!

    Dear users,
    I'm a 100% Totally newbie - please bear over with me and forgive that I couldn't find the answer to my question in the arhive although I'm sure somebody else has asked exactly this question. And please don't say RTFM etc, because there are a huge amount of manuals etc for oracle and I'm 100% newbie and never worked with Oracle SQL before.
    Introduction: I've installed Oracle 11.2 Enterprise Edition and want to go through some step-by-step tutorials - e.g. this tutorial: http://download.oracle.com/docs/cd/B10501_01/server.920/a90842/ch1.htm#1005898
    The tutorial says:
    "The Human Resources (HR) Sample Schema is installed as part of the default Oracle9i installation. The HR user is locked by default.
    You need to unlock the HR tables and user before you can use the HR sample schema. To unlock the HR tables and user, log in as the SYSTEM user and enter the following command:"
    Question: I cannot figure out my password, perhaps I entered something during install but how do I get password for the "SYSTEM" user?

    Hi,
    Welcome to the forum!
    There's no way to find out what a password is.
    You can log in as some other user who has DBA privileges (such as SYS), and change SYSTEM's password.
    If you've forgotten the SYS password, too, then log into the server as the same user who installed Oracle, or as some user in the ora_dba group. You should be able to log in as SYS. When asked for a password, just press the enter key, like this:
    C:> SQLPLUS /NOLOG
    SQL> CONNECT SYS AS SYSDBA
    Enter password: <enter>
    Connected.
    SQL>  ALTER USER SYSTEM IDENTIFIED BY new_password;
    User altered
    SQL>  CONNECT  SYSTEM
    Enter password: new_password
    Connected
    SQL>

  • Total newb var question

    Hello :) ,
    so Im a total newb :(
    I am trying to make this code into a function....
    <code>
    jd_label.setIcon(new javax.swing.JLabel(){
    public javax.swing.Icon getIcon(){
    try {
    return new javax.swing.ImageIcon(
    new java.net.URL("http://ns2.taproot.bz/java/prima_interface/thumbs/02.jpg")
    catch (java.net.MalformedURLException e){
    return null;
    }.getIcon());
    </code>
    problem is, Im such a new i dont know how to use a var on this line...
    jd_label.setIcon(new javax.swing.JLabel(){
    I would like jd_label to be a $var but java just wants to update
    a label named "var".... i.e.
    JLabel jd = new Jlabel();
    string fred = jd
    fred.setIcon()
    but this freaks out... in PERL it seems the vars are a little more
    reconazable...
    $fred.setIcon();
    Could some one please help me :)
    Thanks in advance,
    jd

    Thank you :)
    Im still confused...but that will pass in time
    As for the code in the first post... that was from a scrip i wrote
    but the section i posted NetBeans wrote. here is the whole scrip...
    All i really want to do is put pictures on labels...and i thought, why write
    the same code for every button, ill just make a function out of the whole setIcon bit and call it for each label that needs a picture, passing the url of the picture off to the function... Below gets me one pic on one label, so
    how can i reproduce this efffect on other lables using the same code over and over?
    import javax.swing.*;
    import java.awt.*;
    public class HelloWorldSwing {
    public static void main(String[] args) {
    JFrame frame = new JFrame("HelloWorldSwing");
    JLabel label = new JLabel("Hello World");
    JLabel jd_label = new JLabel();
         JTextField tex = new JTextField("sup suka");
         JPanel pan = new JPanel();
         pan.setLayout(new GridLayout(1,3,10,10));
         pan.add(label);
         pan.add(jd_label);
         pan.add(tex);
    // i wanna make this bit into a fuction to reuse
         jd_label.setIcon(new javax.swing.JLabel() {
    public javax.swing.Icon getIcon() {
    try {
    return new javax.swing.ImageIcon(
    new java.net.URL("http://ns2.taproot.bz/java/prima_interface/thumbs/02.jpg")
    } catch (java.net.MalformedURLException e) {
    return null;
    }.getIcon());
         frame.getContentPane().add("Center", pan);
         frame.pack();
    frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    frame.pack();
    frame.setVisible(true);

  • Total newbie for jsp..plz help

    frendz...me a total newbie to jsp.havin some problem in it.i have already installed jdk,jwsdp2.0 wif its tomcat container.Already set the path for both ..such as JAVA_HOME=E:\Program Files\Java\jdk1.5.0_06
    TOMCAT_HOME=E:\tomcat50-jwsdp
    and could execute the sample jsp's perfectly.But having problem wif my jsp tutorials. such as when i wrote this counter codes in notepad..
    <%@ page contentType="text/html; charset=iso-8859-1" language="java" import="java.sql.*" errorPage="" %>
    <html>
    <head>
    <tittle>Jsp Declaration</tittle>
    </head>
    <body>
    <h1>Declarations</h1>
    <%! int j=0;%>
    <h2>Counter</h2>
    <p>This page has been hit <span> <% ++j %> </span> times since it was first loaded.</p>
    </body>
    </html>
    and i paste it in webapps in tomcat folder.
    What should i do to view the jsp file?isaved as counter.jsp.if i right click and view it in IE/firefox it only shows the source code.is there any mistake in the codes?or i did i do anything wrong?how shall i compile these files?help me aout wif my basics please.thanks bro's..

    "I pasted it in webapps in tomcat folder".
    Webapplications need to go in their own subdirectory inside the webapps directory. Say you want a webapp 'test', then you would store your JSP as
    TOMCAT_DIR\webapps\test\counter.jsp
    Now you can open this JSP in your browser. Assuming Tomcat is running on the localhost and the default port 8080, the url would be:
    http://localhost:8080/test/counter.jsp
    If that doesn't work something is horribly misconfigured.

  • Total Newbie Question ... Sorry :-(

    I know it's a windows thing, and I am now converted to Mac but I gotta know this because it's doing my head in. It's a complete stupid green gilled newbie question.
    When installing new programs on a Mac can you create shortcuts to the programs on the Dock? I did what I THOUGHT it would be, i.e I made an Alias and stuck it in the dock, but on rebooting my Mac later on, in place of the shortcuts where 3 question marks which when clicked on did absolutely nothing???
    Help?
    A.L.I
    Windows XP Pro Desktop, Macbook Pro, 60GB iPod Video   Mac OS X (10.4.5)   OS X

    You aren't installing something from a dmg file are you? The dmg is a disk image – kind of a virtual CD. So when you double click the dmg and then get the little disk/hardrive/custom icon on your desktop that is the same as if you had mounted a CD. You then need to drag the application off of that "CD" into your application folder. Then it is truly installed.
    You can then "eject" the icon your your desktop. This is what happens when you shutdown and without remounting the image your dock shortcut can't find the original.
    Just a thought.

  • Help! Total newbie question...

    I want to make a flash form where the viewer/user can watch a video clip of their choice (from a drop-down control or something else if there's a better way).
    I've found myself totally unable to find our how to do this.  I mean, frankly, I don't even know what kind of file to start from the "New..." form at the beginning of Flash (CS 3.0, btw)!
    I know how to create a Flash Player and link it to a single video.  What I envision is that after the page comes up, with a single player component (initially empty), the user chooses a video from the drop-down list and that video starts playing in the player.
    I guess I have these questions-
    What kind of file should I be starting with?  {I kinda assume I'll be making an SWF to put on a web page.}
    Where on earth do I learn how to get the simplest things (e.g., button clicks, etc.) to work?
    Could any of y'all please offer suggestions where I could find a sample of something similar?  -OR-
    Could any of y'all give me an example of how to do (code?) this?!?!
    I apologize for such dumb questions, but while I'm quite experienced with Premiere, Encore, Photoshop, etc., I am definitely NOT used to Flash!
    Thanks in advance!
    Jim 8^)

    This is going to be a pretty big learning curve for someone with no Flash experience. But, sometimes the best way to learn is to just dive in and start the project.
    I'd recommend using the help and tutorials for a while. You'll need to learn how to create buttons, use ActionScript, and more. My best guess is that you'll need to house each video file on your server with a unique location (URL) then create a pull-down button (or some method of selecting the files) that calls each specific video when the user selects it. I'm assuming you'll need to use a browser fscommand to loadMovie, but someone else may set me straight on that. My experience is limited in this specific task, but I think it might give you someplace to start looking.

  • Mounting Time Capsule drive - total newbie question

    I'm a total Mac newbiew, so please bear with me.
    There are alot of threads in this forum that talk about 'manually mounting' a time capsule drive. What is this manual mounting, what's the point of doing it, and how do you do it?
    My Time Capsule shows up under the Shared menu in Finder and I can access it from there. Is access to the disk via this link slower than mounting it or something?
    Lastly, my TC is connected to my Mac Mini via an ethernet cable. How can I check that the Mac is talking to the TC disk via this connection rather than over the wireless network that the TC is providing?

    By "mounting" people are meaning seeing the Time Machine disk icon actually showing on the desktop. I can only think of 2 reasons for this, 1) time saving if people use the disk for other purposes as well as Time Machine and need to access it regularly, and 2) If it mounts, it proves you have connectivity.
    Doing it from the finder sidebar is effectively the same thing, only you are doing it instead of getting the system to do it. Your initial access to the drive may be noticeably slower for a couple of seconds until it mounts is all, nothing worth worrying about
    See here for more info if you are interested in mounting it automatically:
    http://discussions.apple.com/thread.jspa?threadID=1446928
    As for your last question, unless your wireless and wired connection talk to different networks, then turn off your wireless and used the wired connection.

  • A total Newbie asks: "Is anyone else having these problems?!?"

    Hello,
    I am a newbie to iMovie and I have run into a couple of issues that I hope someone can help me with. I can't imagine these are bugs - it has to be not doing something right.
    1) I am trying to build a slide show and I have imported my images into timeline but I can't seem to edit them without double clicking on them. Why does it seem that sometimes I can just click the edge and adjust the length and sometimes I can't? is there a setting that I don't know about? I am tring to adjust these to an audio file so to have to guess at the lengtH just isn't possible.
    2) Also the first few times I imported my images, they imported in their correct numbered order. I got frustrated (see point # 1) and decided to start over and now they don't import in any order at all - just random. IE - if I select images 1-11 to import they will start importing at # 9 then go backwards to 1 and then add 10 and 11.
    Has anyone encountered these issues before? I am about to pull my hair out!
    THANK YOU! WG
    iMac   Mac OS X (10.4.8)  

    Why does it seem that sometimes I can just click the edge and adjust the length and sometimes I can't? is there a setting that I don't know about?
    Note that Direct Trimming of a clip is disabled when the menu command Edit > Show Clip Volume Levels is checked. When checked, we can use the mouse to edit the clip volume. When not checked, we can use the mouse to do Direct Trimming.
    For tips on synching clips to music, see this note:
    http://discussions.apple.com/message.jspa?messageID=607322&ft=y&amp;#607322
    Karl

  • Where do I find itunes 101 for total newbies???

    I am looking for a "how to" for itunes with examples. For instance...I initially made playlists for each of my favorite artists...then noticed that I could search by artist ...so why would I make a playlist for that. What kinds of plalists do people often do?? I'd like to see some examples so I can tailor to my tastes intelligently.
    I have read stuff on this forum that I don't understand because I have no examples of basics. For example...someone talking about radio stations said, "The Smart Playlist should be set to look for any Kind containing "url" or any Kind containing "Stream". That should ensure any stations you have will appear in the Smart Playlist."
    Well, I have a friend who does a radio show in Alaska. I know the URL...but if I set smartplalist to look for URL...how will it fiond the specific URL where Cece's radio show is?
    I don;t think I am totally stupid....but faced witha new and unfamiliar technology...it would sure be handy to see examples of how it works.
    At this point I don't think I know enough to ask specific questions. Where is the simple "how to" and "this is what the term means" manual?? IS there such a thing??

    I have playlists for favorite artists, decade favorites such as the '70's, playlists for "recorded in concert" Cd's, just to name a few. Here is the link that should help.
    http://www.apple.com/support/ipod101/tunes/

  • Total newbie i have drawn some shapes and want to colour them

    Hi i have drawn some basic shapes and want to colour them i have watched a tutorial but must be doing something wrong.  I highlight the shap with my selection tool then click on the fill button, choose a colour then click ok and nothing happens, what am i doing wrong?

    Why not start here:
    http://help.adobe.com/en_US/illustrator/cs/using/WS714a382cdf7d304e7e07d0100196cbc5f-6519a .html

  • Can't get creative hs-300 microphone headset to work(total newbie)

    Alright, I'm not very experienced in this, and probably my computer that's set up right for this. But here goes
    I've bought the creative hs-300 microphone headset so that I could talk with a friend of mine. But it won't work. I can easily hear him, but we both get an echo of what he's saying, like my microphone takes whatever I hear on my headphones and send it back to him.
    Also, when I get a msn message while testing my microphone in the msn guide, it detects the sound as me talking into the microphone, and thinks everything is ok, which it obviously isn't.
    I've also tried just about everything in controle panel -> sound settings, ticking only microphone in recording, but nothing seems to do the trick.
    Some hardware info: ATI WDM Rage Theater Video placed on Sapphire Radeon 9600 Atlantis
    The standard unit when selecting microphone and speaker in the guide to audio interaction is SigmaTel C-Major Audio.
    Would appreciate any help that I can get, as I would really like for this to work.
    Thanks.

    Re: Can't get Mic to work? I'm using the Steelseries Siberias headset, with a standalone Zalman mic. I never unplugged them, I only reformatted from a cracked verion of Windows 7, to a legit version of Windows 7. The versions were actually the exact same, and now I regreat Formatting.
    Here are some of My PC's Specs
    http://img9.imageshack.us/i/specsq.png/
    I'm using the ATI Radeon 4870
    Creative XtremeGamer
    http://img704.imageshack.us/i/sound.png/
    http://img684.imageshack.us/i/drivers.png/
    I've just gottren really frusterated. I'm about ready to go back down to XP just to get this to work, I use my microphone for so many different things.
    I've searched this problem, it seems there are numerous people with the same problems, and I just find that sad, I've been using creative products for a long time now, and have never had a problem like this before.

  • Total Newb Deep in the Water.. please help ah friend Out!!

    greetings everyone,
    i am jumping ship from a windows 2003 server and going to apple. This is the configuration i am going to have to set up... Fiber Switch connecting an xserve,metadata controller,and another x server for a backup metadata controller and also running file maker pro.
    I will have two xserve raids being controlled by xsan software.
    My questions are these. I want all of my 30 macs to get all there user privileges from my xserve not our windows servers.
    This being said how do i set up my xserve within a network that already has a domain controller? I am a new when it comes to going this deep into the technical weeds and need some help.
    any help or places to look for info on this would be fantastic! thanks in advance everyone,
    Jesse

    greetings everyone,
    i am jumping ship from a windows 2003 server and going to apple. This is the configuration i am going to have to set up... Fiber Switch connecting an xserve,metadata controller,and another x server for a backup metadata controller and also running file maker pro.
    I will have two xserve raids being controlled by xsan software.
    My questions are these. I want all of my 30 macs to get all there user privileges from my xserve not our windows servers.
    This being said how do i set up my xserve within a network that already has a domain controller? I am a new when it comes to going this deep into the technical weeds and need some help.
    any help or places to look for info on this would be fantastic! thanks in advance everyone,
    Jesse

  • Total Newbie here.  How to import .dmp.

    I am completely new to Oracle Databases. The only thing I have used in the past is access. I have been given a Oracle Database .dmp file that I need to import into a database to see what is in it. I have installed Oracle Database 11g Express Edition and Oracle SQL Developer. I have read some things about the imp and impdp commands but I don't know how to use them correctly. My questions are:
    Where should I put the .dmp file so that the database can see it?
    What command should I give at the SQL> prompt? I have tried impdp user/password file=NH0339016.dmp This didn't work.. I got the error "unknown command beginning "impdp user..." - reset"
    After importing it, how do I see what is in the database?
    I'm really struggling with this thing and I would appreciate any help that I can get.
    Thanks
    Will

    Hi Will,
    I have been given a Oracle Database .dmp file
    I have read some things about the imp and impdp commands but I don't know how to use them correctly. Did you also get the information how that dump file has been created?
    You've already learned that there are two kinds of "dump" in Oracle: the old (conventional) and the somewhat more recent "data pump". Both use different dump formats, so you have to use the proper import application to get the contents into your database.
    Where should I put the .dmp file so that the database can see it?That depends on the import application. If you have a datapump dump (impdp) there is a default "directory" in the database (*DATA_PUMP_DIR*) and it points to ORACLE_HOME/admin/xe/dpdump . You can also create a new directory that points to the place your dump file resides in and and hand this in as parameter. Make sure the database user you start the import with has the grants needed for the directory you use. For all parameters available, use
    impdp help=yIf you have a convetional dump (imp) you simple give the file with its complete path as parameter or change to that path first. You can query the application for additional parameters by executing
    imp help=y
    After importing it, how do I see what is in the database?Well, you have SQL Developer, right? Create a connection to the schema you've imported the data to (perhaps you have to created it first, depending on how the dump has been created) and browse it.
    Note that Oracle has different semantics than access. "database" is usually a "database instance". Each instance carries several "schemas" (equivalent to database user).
    -Udo
    P.S.: I'd recommend to read the [url http://download.oracle.com/docs/cd/E17781_01/server.112/e18804/toc.htm]2 Day DBA to get to know your database. If you want to quick start and my previous explanation is not sufficient for you, you should at least read the chapter [url http://download.oracle.com/docs/cd/E17781_01/server.112/e18804/impexp.htm#CFHJAHAA]Exporting and Importing Metadata and Data.
    Edited by: Udo on 17.11.2011 20:36

  • Total newbie needs help installing and setting up Solaris 10 as a server

    i'm attempting to set up one computer to act as a file and print server on my home network, so that i can store all of my music and video files on it instead and print to my parallel-only laser printer. 80% of the time i'm using my laptop, so i need the mass storage and printer to be handled by another device - the server!
    i'm not sure if i'm even installing Solaris 10 correctly. how should it be installed to then act as a server? my two (incredibly long, like 3+ hours each) install attempts so far have resulted in an OS that looks like a nice fancy GUI-laden desktop which doesn't appear to show me my 750G SATA storage drive (the OS is on a 40G IDE drive).
    in the end, i'd like to have the system working so that my only interaction with it is the power button - press it once to power it on and it'll boot up and long in automagically and make itself seen over the network (with printer and files stored on drives accessible to my laptop or any other PC that's on the same network), and then press the power button again to shut down the entire system gracefully (so far, when i press the power button, it's a quick kill like pulling the power cord - i'm pretty sure that's a bad way of having the system shut down, so how do i change it?)
    i'm really hoping to use Solaris due to the promising ZFS scheme. my only exposure so far to unix / linux has been with ubuntu, which i usually like but sometimes loathe (primarily file permissions and network manager).

    Let's try step by step rather than asking for setting up a server as a while and I'll try to help you as much as I can.
    For setting up a printer, it's not that easy or quick setting up a printer on Solaris, I mean it's not like plug-n-play. Tell us about your printer and how it's connected to your system (usb, ethernet, parallel, serial).
    As for shutting down the system, it's recommended to use the shutdown commnad like this:
    # shutdown -y -i0 -g0
    --gibb                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

Maybe you are looking for