Issues with processing on 64bit (java)

Anyone running processing (http://processing.org) on a 64bit machine?
I'm having some issues getting it running, works fine on my 32bit system though.
My error is:
./processing: line 100: /home/action-owl/dev/processing/processing-1.0.9/java/bin/java: No such file or directory
The file does exist, and it's executable, the processing forums have been a bit quiet lately.
Thanks

carlosgottberg wrote:Looking at /usr/bin/processing found out that you have to symlink /usr/bin/java to /usr/share/processing/java/bin/java .
This doesn't seem to work for me, but maybe I'm doing it wrongly... Is this close to what you meant?:
sudo ln -s /usr/bin/java /usr/share/processing/java/bin/java

Similar Messages

  • Having a weird issue with my assign after java embedding

    hi,
    I'm having a weird issue with my assign activity, i am using a Java Embedding wherin i access a variable and assign it some data, later in next step when i try to assign some other data to this same variable in assign activity i get a Error message as below.
    com.oracle.bpel.client.BPELFault: faultName: {{http://schemas.xmlsoap.org/ws/2003/03/business-process/}selectionFailure} parts: {{ summary=Invalid to part type. When performing the assign operation, the to node THIS,IS,,TEST is invalid. The node named in the error message was either null or an empty node set, and it was not an instance of org.w3c.Element. Verify the node value at line number 795 is not null and is an instance of org.w3c.Element. } .
    i'm using soa 11.1.1.5
    Can anyone please help ?
    - Thanks
    Shirish

    Shirish,
    It's a bug and you will need to apply a patch for that.
    You can find all explanation in Oracle Support Id ID 1194228.1.
    Arik

  • Issue with processing time of JDBC receiver adapter

    Hi all,
    We are using PI 7.1 EHP1.
    We have an issue with JDBC receiver adapter taking too much time to process messages.
    We are using XML SQL format message protocol with INSERT_UPDATE as the document format.
    Each message can contain multiple records, i.e. 1 single message can result in many updates/inserts.
    Currently, time taken to process in 6-12 secs which is quite high considering the messages are not very large in size.
    We sent the statements to Oracle DBA to see if anything about the queries being used is causing issues. Awaiting inputs.
    In the mean time, wanted to check if there is anything that can be done from PI side that will help us improving the processing time.
    Thanks in Advance,
    Sailaja.

    Hi,
           i think the main cause is  query taking long time to execute in DataBase.
          -> increase the read time and response time in the JDBC receiver adapter.
      In the advanced mode table section of sender channel and receiver channel configurations, we can set driver properties for each DB connection. Any such property would have to contain prefix 'driver:'(with out quotes).
    For Oracle Database JDBC thin driver 10.2.0.3 version, the property oracle.jdbc.ReadTimeout helps to set read timeout while reading from the socket. Also for setting login time out in Oracle, we use oracle.net.CONNECT_TIMEOUT. To set these two properties use as follows: driver:oracle.jdbc.ReadTimeout 1000 driver:oracle.net.CONNECT_TIMEOUT 1000 The TimeOut Driver properties like ReadTimeout and CONNECT_TIMEOUT are in milliseconds.
    Refer note 1078420 for more details
    please go through this blog i hope it will help you.
        http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/c059d583-a551-2c10-e095-eb5d95e03747
    regards,
      ganesh
    Edited by: ganesh.nijampudi on Oct 25, 2011 12:00 PM

  • Image size issues with processing

    New to Adobe, I have had several issues with consumers images. I can not find how to save as jpeg and keep photo intergrity. Either the processer (local pharmacy, big name store.. etc) is cropping my images badly. I have been told this is my problem when I save in jpeg format. How do i protect my image? Resize with the pixels? Please help

    Hi,
    The most likely problem is that your camera is shooting in a different aspect ratio that you are trying to print in. This usually shows up by either cutting the tops/bottoms off or by cutting the sides off. Alternatively you may get a border top/bottom or sides.
    If that is the problem, you will need to crop the photo before getting it printed.
    So that we can help, can you please answer some questions.
    1) What operating system are you using?
    2) What version of PSE are you using?
    3) What are the pixel dimensions of the photo or what camera are you using?
    4) What size of photo are you trying to print (6" x 4"?) ?
    Brian

  • Safari issues with Tabs, Video, and Java

    Hi.  I updated to Lion and Safari 5.1 and did all the software updates.  I have a MacBook from 2008.  For some reason, I am having a lot of issues with Safari.  I hope someone knows what I am doing wrong.
    1.  Every time I open Safari after I turn on my computer or it wakes up from sleep, I have to do an internet test to get the computer to realize I am still connected to my house WiFi.
    2. The computer goes to sleep after 30 secs.  Can I change this somehow?
    3. I cannot open any videos from YouTube or vidoes my friends have posted on Facebook.
    4. I used to be able to drag a link over an existing tab and it would automatically go there.  Now I have to drag it to the + sign to get it to open.  (command click still works)
    5.  I tried to check my plug-ins to see if that was the problem.  I put all of my internet plug-ins in the trash and added them one by one.  Safari seemed to work a lot faster, but then as soon as it went to sleep, I had the same issues.  Also, I can't find Java anymore (not in my trash, didn't delete anything from the trash) and I did the java test on a website and it's not showing what it's supposed to.  All the software updates say it is fine, but obviously it isn't.
    I know this is a lot of stuff, and most of it is probably due to me not really understanding how my mac works.  I've been looking through the forums to see if anyone else has all of these issues; after an hour and a half of reading discussions, I gave up.  Any advice would be really appreciated.  Thank you.

    So, while waiting for some help, I've been continuing my own research. 
    3. It turned out that it wasn't Java messing with my videos.  I just needed version 10,3,181,34 of Adobe Flash and now all videos are working.   Hope that helps if anyone else was having similar issues.  Here's the link if you need to find out which version you have: http://www.adobe.com/software/flash/about/
    4.  It turns out that there are several other discussions regarding people who can't drag and drop links into Tabs on Safari.  My solution was to write to Apple to ask if they can put that feature back in.
    5. I'm not sure if I am still having Java issues, but so far everything I am needing to upload and watch is fine.
    One and two are still annoying, so I'll continue to look for solutions.  If anyone has any suggestions, I'd appreciate them.  Hope this helps someone as much as it helped me.  I don't want to throw my computer against a wall every 5 seconds now.

  • Wifi Sync issue with Windows 7 64bit

    Hi, having an issue with wifi sync for some reason.  I am running Win 7 64bit, and I have tried everything on these forums with not luck.  It is not my router because it works on another computer with no problem.  I have enabled all ports, syncserver, etc. and nothing is working.  I have done a complete uninstall, registry clean, and reinstall with no luck.  I have noticed though on my computer when I check the box to allow my wifi sync to be enabled, all the box says is "Sync with this Iphone over....."  It does not say "sync with this Iphone over wifi".  The other computer I tried wifi sync with that worked said "sync with this Iphone over Wifi"  Any thoughts on what would cause my itunes to not display the full message?  I am using Itunes 10.6

    I don't like using wifi sync at all. Even with my iMac often does not detect my iPhone or my iPad when they both have Wifi turned on all the time. Even when it does work the sync speed is pretty horrendous. Anyways I'd recommend physically plugging it in whenever you can. Save you some time and trouble.

  • If you are facing issues with AutoVue after upgrading Java

    Oracle periodically releases security updates (CPU see Oracle Critical Patch Update - July 2014 for latest)  for all its software, Java is no exception to it.
    At every CPU, the AutoVue team monitors the impact and documents the steps required to have AutoVue working properly with your integrations
    For your reference, we attach the latest KM note here.  It is a highly recommended reading for customers using AutoVue Client/Server Deployment.
    KM Note 1615032.1 - AutoVue Client Usage with Java 7u51
    (https://support.oracle.com/epmos/faces/DocumentDisplay?id=1615032.1)
    Feel free to post any questions through this Community thread.

    Now, do you have to disconnect your printer everytime that you want to use it? If so, this is just a temporary fix and that's not something that you should have to do with regularity.
    It's GLARING, the amount of people who are having issues with this software. Is APPLE listening to its customers? I'm to the point where I'm about to NOT recommend an I-Pod to anyone that asks. If they do, that's what I'm recommending. I'll also steer them to this website so that they can see with their own eyes, the problems that everyone is having.
    This is totally ridiculous. I've been trying for THREE weeks to get my POS I-Pod Shuffle to download songs through I-Tunes 7.0. It's clear to me that these designers of this software haven't got a clue.
    Sorry for the rant but I've had it with this junk.

  • Issue with XSL transformation in Java Stored Procedure

    Hi,
    Am having issue applying XSL transformation in Java Stored procedure. I have loaded the java class as well as .XSL files through loadjava uility and their status in DB is VALID.
    Below is the code in the java stored procedure:
    public static String tranform(String strInputXML ){
    URL url = ClassLoader.getSystemClassLoader().getResource(first.xsl);
    DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
    DocumentBuilder builder = factory.newDocumentBuilder();
    Document document = builder.parse(new ByteArrayInputStream (strInputXML.getBytes("UTF-8")));
    TransformerFactory tFactory = TransformerFactory.newInstance();
    StreamSource stylesource = new StreamSource(url.openStream());
    Transformer transformer = tFactory.newTransformer(stylesource);
    When I run this procedure, am getting following errors:
    {color:#ff0000}*ERROR: 'No such file or directory'*
    FATAL ERROR: 'Could not compile stylesheet'{color}
    My first.xsl file has reference to other excel file (Ex: <xsl:include href="second.xsl"/>) which seems to be causing this error. When I remove the reference, procedure is working fine.
    Pls let me know how to resolve this and read the .XSL file with references.
    Thanks,

    Hello,
    Thanks for the reply. Actually I have seen that post before creating this thread. I thought that I could make use of java mail to work around this problem. I created a java class that succesfully sends mail to SSL host. I tried to call this java class from pl-sql through java stored procedure. That did not work
    So, is this not supported in Oracle ? Please note that I have tested this in both 9i and 11g , in both the versions I got the error. You can refer to the code in the above post.
    Thanks
    Srikanth
    Edited by: user12050615 on Jan 16, 2012 12:17 AM

  • Issue with Bookmark functionality (using java script) in WAD.

    Hi,
    I am working on a WAD report and instead of using the default bookmark functionality within WAD, i use a java code to get the bookmark url in a new window.
    But the problem is the java code is not working consistently at all times.
    Issue1: If i click on the bookmark button on the report for the first time, it will open up a new window with the bookmark link. But if i close that new bookmark url window and again click on the bookmark button, a new window is opened which displays the template corresponding to the bookmarkk generated earlier (the report in its executed form), instaed of the bookmark url.
    Can anyone help me to correct this issue. At any time i click the bookmark button i want to get the bookmark url opened in the new window, instead of the template.
    Issue2: The bookmark is not at all working at particular times. It will show error message at the bottom the page. What I am  thinking is, this is because of the misalignment of the java code when you sava the WAD report. The java code is so sensitive that it gets realigned each time you save the WAD report. But sometimes even without making any changes also it is not working.
    If anyone has any suggestion or inputs for solving these issues pleese help ASAP. The java code i used is given below.
    function createBookmark()
    var bwUrl="<SAP_BW_URL CMD='BOOKMARK'>";
    child1=window.open(bwUrl,'win1','width=1,height=1,alwaysLowered=0');
    window.focus();
    //Ensure that BW completed generation of the bookmark url.
    now = new Date();
    startTime = now.getTime();
    delayTime = 3000;
    //Set timeout to 3 seconds
    waitTime = startTime;
    //check if the bookmark url is ready and timeout after the specified time (delayTime).
    while (waitTime<(startTime+delayTime))
    now = new Date();
    waitTime = now.getTime();
    //BW identifies a bookmark using BOOKMARK_ID. The presence of this string
    //in the url is used to identify creation of the bookmark. If bookmark
    //is created on the server, proceed to the next step.
    if (child1.location.href.indexOf("BOOKMARK_ID") >0) 
    break;
    bookmark_url = escape(child1.location.href);
    bookmark_url = bookmark_url.replace(/%3A/g, ":");
    bookmark_url = bookmark_url.replace(/%3F/g, "?");
    bookmark_url = bookmark_url.replace(/%26/g, "&");
    bookmark_url = bookmark_url.replace(/%3D/g, "=");
    var base_url = window.location+"";
    var base_index = base_url.indexOf("?");
    base_index = base_index + 1;
    var book_link = base_url.substring(0,base_index);
    if (book_link.indexOf("sapdbi")!=-1)
    book_link = "http://dep.xxx.com/sso/index.jsp?target=BW&";
    if (book_link.indexOf("sapqbia1")!=-1)
    book_link = "http://qep.xxx.com/sso/index.jsp?target=BW&";
    if (book_link.indexOf("sapqbia2")!=-1)
    book_link = "http://qep.xxx.com/sso/index.jsp?target=BW&";
    if (book_link.indexOf("sappbia1")!=-1)
    book_link = "https://portal.xxx.com/sso/index.jsp?target=BW&";
    if (book_link.indexOf("sappbia2")!=-1)
    book_link = "https://portal.xxx.com/sso/index.jsp?target=BW&";
    if (book_link.indexOf("sapqbi")!=-1)
    book_link = "http://qep.xxx.com/sso/index.jsp?target=BW&";
    if (book_link.indexOf("sappbi")!=-1)
    book_link = "https://portal.xxx.com/sso/index.jsp?target=BW&";
    var book_index = bookmark_url.indexOf("?");
    book_index =   book_index +   1; 
    var book_length = bookmark_url.length;
    var temp_link= bookmark_url.substring(book_index,book_length);
    portal_bwUrl = book_link+temp_link;
    child1.close();
    // The below two lines are not necessary, it is left for reference.
    // https://portal.xxx.com/sso/index.jsp?target=BW&SAP-               //LANGUAGE=EN&language=EN&cmd=LDOC&TEMPLATE_ID=IPUWT_FRAME
    bookmark_window=window.open("",'_blank','width=1000px,height=30px,status=0');
    bookmark_window.moveTo(50,500);
    var body_tag = '<body leftmargin=3 topmargin=3 bgcolor=#cad4e3 class=&amp;SAPBEXTbsBdyEdg&amp;>';
    var body_text ='<p><font face=Arial size=2>
    This bookmark can be copied and pasted to Internet Explorer-Favourites, mail or other documents:
    </p>';
    bookmark_window.document.write('<title name="SAP_BW_TITLE_!IID_171">Bookmark</title>',body_text, body_tag, portal_bwUrl, '</body>');
    Thanks in Advance.

    Hi Danny
    Thanks for the update
    Hi Danny
      Thanks for the update.
      I can't find any code in the attachment.Its a Web Page.
      Rightclick on webpage and View Source
      Then i can find Code.
      Still it is not working
    Issues: Which object i have to replace with the URL in the code
    Value = 'Weekly'
    or
    fun(WEEKLY REPORT)
    and
    when i paste that code in the XHTML tab of template and tried to save it,The scripted is changed
    Please update how to proceed
    Thanks

  • Issue with passing parameters through Java-JSP in a report with cross tab

    Can anyone tell me, if there's a bug in Java SDK in passing the parameters to a report (rpt file) that has a cross tab in it ?
    I hava report that works perfectly fine
       with ODBC through IDE and also through browser (JSP page)
    (ii)    with JDBC in CR 2011 IDE
    the rpt file has a cross tab and accpts two parameters.
    When I run the JDBC report through JSP the parameters are never considered. The same report works fine when I remove the cross tab and make it a simple report.
    I have posted this to CR SDK forum and have not received any reply. This have become a blocker and because of this our delivery has been postponed. We are left with two choices,
       Re-Write the rpt files not to have cross-tabs - This would take significant effort
    OR
    (ii)  Abandon the crystal solution and try out any other java based solutions available.
    I have given the code here in this forum posting..
    CR 2011 - JDBC Report Issue in passing parameters
    TIA
    DRG
    TIA
    DRG

    Mr.James,
    Thank you for the reply.
    As I stated earlier, we have been using the latest service pack (12) when I generated the log file that is uploaded earlier.
    To confirm this further, I downloaded the complete eclipse bundle from sdn site and reran the rpt files. No change in the behaviour and the bug is reproducible.
    You are right about the parameters, we are using  {?@Direction} is: n(1.0)
    {?@BDate} is: dt(d(1973-01-01),t(00:00:00.453000000)) as parameters in JSP and we get 146 records when we directly execute the stored procedure. The date and the direction parameter values stored in design time are different. '1965-01-01' and Direction 1.
    When we run the JSP page, The parameter that is passed through the JSP page, is displayed correctly on the right top of the report view. But the data that is displayed in cross tab is not corresponding to the date and direction parameter. It corresponds to 1965-01-01 and direction 1 which are saved at design time.
    You can test this by modifying the parameter values in the JSP page that I sent earlier. You will see the displayed data will remain same irrespective of the parameter.
    Further to note, Before each trial run, I modify the parameters in JSP page, build them and redeploy so that caching does not affect the end result.
    This behaviour, we observe on all the reports that have cross-tabs. These reports work perfectly fine when rendered through ODBC-ActiveX viewer and the bug is observable only when ran through Java runtime library. We get this bug on view, export and print functionalities as well.
    Additionally we tested the same in
        With CR version 2008 instead of CR 2011.
    (ii)   Different browsers ranging from IE 7 through 9 and FF 7.
    The complete environment and various softwares that we used for this testing are,
    OS      : XP Latest updates as on Oct 2011.
    App Server: GlassFish Version 3 with Java version 1.6 and build 21
    Database server ; SQL Server 2005. SP 3 - Dev Ed.
    JTds JDBC type 4 driver version - 1.2.5  from source forge.
    Eclipse : Helios along with crystal libraries directly downloaded from SDN site.
    I am uploading the log file that is generated when rendering the rpt for view in IE 8
    Regards
    DRG

  • G530-44463​8U Sleep/Hibe​rnate issue with windows7 Ultimate 64Bit with 4GB ram

    I have a problem with Lenovo G530-444638U. I upgraded to 4Gb ram and installed a fresh copy of Windows 7 Ultimate 64bit and I’m facing sleep and hibernation problems. When I try to put laptop to sleep mode and I try to resume from sleep, it restarts by itself. I tried every single option in my power management and every command leads to restart. I also have the same problem with hibernate mode. When I try to resume from hibernate, it restarts and I have option on the screen to delete restoration data in order to continue,  
    Reading on Lenovo forums and Google search, it looks like it is a known issue.  I have the latest graphic and WAN drivers from Intel for win 7 and still I can’t solve issue. Is anyone has same model and expediting this problem, any help would be appreciated. 
    When I downgraded my ram form 4gb to 3gb then sleep and hibernate works fine.  i installed vista ultimate 64bit and had same sleep/hibernate issue. I called lenovo tech support and they told me to call software support, which is provided by third part and it is not free, i don't think it is software issue. I tried diffrent ram and had same issue.
    T6500(2.10GHz), 4GB ram 16HTF25664HY-667E1, BIOS Version     6GET19WW(for NON-HDMI), Lenovo Energy Management 4.4.1.1 2009-10-22 7.67 MB Windows 7 64bit 

    also one more issue i had... is when i try to boot up... somtimes it will go into a loop for a couple times. it will try to load windows(no blue screen)-->reboot--> and ask me if i want to use system recovery/start windows normally.
    any help will be greatly appreciated.
    Thanks very much.

  • Issues with processing messages on one receive port causes problems on all the receive ports that are on the same handler

    Greetings,
    An integrator installed biztalk in our environment to process the hl7 message flow between their source application(s) and several receiving applications. We've had problems with this set-up for a while now because some receiving applications sometimes have
    problems processing the messages. Be it either because there's problems with the server that processes the messages of a certain port or because there's problems with the software/daemon/service that needs to process these messages.
    The main problem with this, is that the receiving end of this isn't under our control nor under control of the integrator, but when one receive port isn't processing their messages for a while it causes a problem with all the receive ports that are on the
    same handler. So other receive ports start noticing a slow-down of their incoming messages until after a while nothing gets through anymore.
    What is the best practice to prevent these kind of problems? Should we just create a handler for every receive port? Because that seems a bit overkill.
    Thanks in advance.

    What do you mean exactly with this question?
    "Can you provide some more detail like BizTalk the receiver? "
    The adapters are mainly file and MLLP, the MLLP adapters are already seperated from the file adapters (a handler for MLLP and a handler for file).
    The problem with all the receive ports is that when one receive port isn't processing its messages (usually caused by the software processing the messages) the other receive ports on the same handler receive their messages/files a lot slower. If for any
    reason the problem isn't fixed soon, the other receive ports on the same handler actually stop receiving any messages at all.
    Isolating the receive port that causes the problems like la Cour suggested can work, but next time it might be another port that experiences this issue. So we are looking for a way to make sure the whole message flow isn't hindered by one port (whichever
    port) that can't process its messages. Or rather by one receiving software that can't process its messages.

  • Having an issue with event handling - sql & java

    HI all am trying to construct this hybrid of java and mysql. the data comes from a mysql database and I want it to display in the gui. this I have achieved thus far. However I have buttons that sort by surname, first name, ID tag etc....I need event handlers for these buttons but am quite unsure as to how to do it. any help would be much appreciated. Thanks in advance.
    /* Student Contact Database GUI
    * Phillip Wells
    import java.awt.BorderLayout;     
    // imports java class. All import class statements tell the compiler to use a class that is defined in the Java API.
    // Borderlayout is a layout manager that assists GUI layout.
    import javax.swing.*;               // imports java class. Swing enables the use of a GUI.
    import javax.swing.JOptionPane;     // imports java class. JOptionPane displays messages in a dialog box as opposed to a console window.
    import javax.swing.JPanel;          // imports java class. A component of a GUI.
    import javax.swing.JFrame;          // imports java class. A component of a GUI.
    import javax.swing.JButton;          // imports java class. A component of a GUI.
    import javax.swing.JScrollPane;     // imports java class. A component of a GUI.
    import javax.swing.JTable;          // imports java class. A component of a GUI.
    import java.awt.*;               // imports java class. Similar to Swing but with different components and functions.
    import java.awt.event.*;          // imports java class. Deals with events.
    import java.awt.event.ActionEvent;     // imports java class. Deals with events.
    import java.awt.event.ActionListener;     // imports java class. Deals with events.
    import java.sql.*;               // imports java class. Provides API for accessing and processing data stored in a data source.
    import java.util.*;               // imports java class. Contains miscellaneous utility classes such as strings.
    public class studentContact extends JFrame {     // public class declaration. The �public� statement enables class availability to other java elements. 
        private JPanel jContentPane;    // initialises content pane
        private JButton snam, id, fname, exit;     // initialises Jbuttons
        String firstname = "firstname"; //initialises String firstname
         String secondname = "secondname"; //initialises String
        public studentContact() {
            Vector columnNames = new Vector();      // creates new vector object. Vectors are arrays that are expandable.
            Vector data = new Vector();
            initialize();
            try {
                // Connect to the Database
                String driver = "com.mysql.jdbc.Driver"; // connect to JDBC driver
                String url = "jdbc:mysql://localhost/Studentprofiles"; //location of Database
                String userid = "root"; //user logon information for MySQL server
                String password = "";     //logon password for above
                Class.forName(driver); //reference to JDBC connector
                Connection connection = DriverManager.getConnection(url, userid,
                        password);     // initiates connection
                // Read data from a table
                String sql = "Select * from studentprofile order by "+ firstname;
                //SQL query sent to database, orders results by firstname.
                Statement stmt = connection.createStatement
                (ResultSet.TYPE_SCROLL_SENSITIVE, ResultSet.CONCUR_UPDATABLE);
                //statement to create connection.
                //Scroll sensitive allows movement forth and back through results.
                //Concur updatable allows updating of database.
                ResultSet rs = stmt.executeQuery(sql); // executes SQL query stated above and sets the results in a table
                ResultSetMetaData md = rs.getMetaData();     // used to get the properties of the columns in a ResultSet object.
                int columns = md.getColumnCount(); //
                for (int i = 1; i <= columns; i++) {
                    columnNames.addElement(md.getColumnName(i));     // Get column names
                while (rs.next()) {
                    Vector row = new Vector(columns);          // vectors data from table
                    for (int i = 1; i <= columns; i++) {     
                        row.addElement(rs.getObject(i));     // Get row data
                    data.addElement(row);     // adds row data
                rs.close();     
                stmt.close();
            } catch (Exception e) {     // catches exceptions
                System.out.println(e);     // prints exception message
            JTable table = new JTable(data, columnNames) {     //constructs JTable
                public Class getColumnClass(int column) {     
                    for (int row = 0; row < getRowCount(); row++) {
                        Object o = getValueAt(row, column);
                        if (o != null) {
                            return o.getClass();
                    return Object.class;
            JScrollPane scrollPane = new JScrollPane( table );          // constructs scrollpane 'table'
            getContentPane().add(new JScrollPane(table), BorderLayout.SOUTH);   //adds table to a scrollpane
        private void initialize() {
            this.setContentPane(getJContentPane());
            this.setTitle("Student Contact Database");     // sets title of table
            ButtonListener b1 = new ButtonListener();     // constructs button listener
            snam = new JButton ("Sort by surname");      // constructs Jbutton
            snam.addActionListener(b1);     // adds action listener
            jContentPane.add(snam);          //adds button to pane
            id = new JButton ("Sort by ID");      // constructs Jbutton
            id.addActionListener(b1);     // adds action listener
            jContentPane.add(id);          //adds button to pane
            fname = new JButton ("Sort by first name");      // constructs Jbutton
            fname.addActionListener(b1);     // adds action listener
            jContentPane.add(fname);          //adds button to pane
            exit = new JButton ("Exit");     // constructs Jbutton
            exit.addActionListener(b1);     // adds action listener
            jContentPane.add(exit);          //adds button to pane
        private JPanel getJContentPane() {
            if (jContentPane == null) {
                jContentPane = new JPanel();          // constructs new panel
                jContentPane.setLayout(new FlowLayout());     // sets new layout manager
            return jContentPane;     // returns Jcontentpane
        private class ButtonListener implements ActionListener {     // create inner class button listener that uses action listener
            public void actionPerformed (ActionEvent e)
                if (e.getSource () == exit)     // adds listener to button exit.
                   System.exit(0);     // exits the GUI
                if (e.getSource () == snam)
                if (e.getSource () == id)
                if (e.getSource () == fname)
        public static void main(String[] args) {     // declaration of main method
            studentContact frame = new studentContact();     // constructs new frame
            frame.setDefaultCloseOperation(EXIT_ON_CLOSE);     //exits frame on closing
            frame.setSize(600, 300);          // set size of frame
            frame.setVisible(true);     // displays frame
    }p.s. sorry about the untidy comments!

    OK, so you've got this code here:
    private class ButtonListener implements ActionListener {
      public void actionPerformed (ActionEvent e) {
        if (e.getSource () == exit) {
          System.exit(0); // exits the GUI
        if (e.getSource () == snam) {
        if (e.getSource () == id) {
    }Perfect fine way to do this; although I think creating anonymous would be a bit cleaner:
    snam.addActionListener(new actionListener() {
      public void actionPerformed(ActionEvent ae) {
    });But I think that the real question you have is "what do I put for logic when the JButtons are hit?", right?
    I would answer that you want to dynamically build your SQL statement changing your ordering based on the button.
    So you'd have a method that builds the SQL based on what you pass in - so it takes one argument perhaps?
    private static final int NAME = 1;
                             ID = 2;
    /* ... some code ... */
    snam.addActionListener(new actionListener() {
      public void actionPerformed(ActionEvent ae) {
        buildSQL(NAME);
    /* ... some code ... */
    private void buildSQL(int type) {
      if ( type == NAME ) {
    /* ... build SQL by name ... */
      else if ( type == ID ) {
    /* ... build SQL by id ... */
    }That kind of thing.
    Or you might choose to have several build methods with no parameter type; each building the SQL differently, and calling whichever one you need. I did not read your entire pgm, so I don't know how you'd want to organize it. You need to ask more specific questions at that point.
    ~Bill

  • Issue with Process Overview Action in E-separation Request application

    Hello All,
    We are using Portal 7.4 version.
    And ECC 6 EHP 7.
    With respect to E-separation request , we are facing the issue as enclosed  in the attachment.
    Please suggest whether any  BASIS configuration  like ADS RFC connection is required for this application to display Process overview.
    BR,
    Harthi

    I see some message about a proxy. Have you checked that you can use the proxy from you network?
    If not you should turn the proxy off.
    Timo

  • Are there Color issues with Gifs in Personal Java?

    I am using the pjavawince-1_1-beta-arm implementation of Personal Java.(because that's the only one that seems to actually be readily available, but that's a different issue...)
    I have a program that displays gif's, some with and some without transparency.
    The gif's look fine when I run the program in emulation on my laptop, both in JSE JDK1.1.8_009 and in JME PJEE3.1. However when I run the program on my Pocket PC 2002 PDA, the images appear with a lower resolution or number of colors. When I load the same images into PocketIE on the PDA, they appear fine.
    It appears that Personal Java is doing some sort of translation of the palette. For example, if a gif contains thirty shades of red, the personal java renders it with eight. Like the images are being remapped to a more generalized palette.
    It doesn't appear to be a transparency issue, because the same problem occurs with both.
    Does this problem occur for anyone else? Is it an issue of the Personal Java version or does it happen in both Personal Java 1.1.3 and 1.2? Is it an issue specific to Sun's Beta Personal Java VM? Does it happen in the Jeode JVM?

    Could you please tell me where to find pjavawince-1_1-beta-arm? I can't find it on the personal java page.. just the ones for mips and sh3.. Thanks

Maybe you are looking for

  • Trouble with video quality AFTER render

    why is it that AFTER i render out what is on my timeline (command - r) does my canvas view look all rough and not nearly as smooth as before i rendered it out? the situation: i am rendering out comps from after effects 6.5 pro. the quicktimes look be

  • Triple Monitor on T500 with RC and beta drivers...

    Hello all I was running a beta driver from the beta Lenovo website and was able to run triple monitors. Now with the RTM I cannot... I was hoping that someone might have the old version of the beta drivers that Lenovo had on the beta site last year a

  • Export Problems - PLZ HELP!!!

    HELP!!!  This is driving me CRAZY! I am trying to export my sequence to an FLV at 720x480.  You would think this wouldn't be hard since my source video is already 720x480.  When I click Export and it goes into the Export Settings, I click "FLV - Same

  • DOS attack affected BIOS ACPI - need DOS BIOS for Satellite P60

    Help!!!! I am looking for the DOS version of the latest BIOS for the Satellite P60(C), but it seems it is not available for any users on any Toshiba site. I installed the latest (1.9 for windows) but have the feeling that it still was not good enough

  • Named Parameters in Queries - the spec vs the Java EE 5 Tutorial

    Hi, I've been studying the topic about the named parameters in JPA and found one inconsistency between the spec and the Java EE 5 Tutorial. Could anyone lend me a helping hand understanding it? The Java Persistence API spec (ejb-3_0-fr-spec-persisten