Search:

Type: Posts; User: jocdrew21

Page 1 of 16 1 2 3 4

Search: Search took 0.31 seconds.

  1. No qualifying bean of type [java.lang.String] found for dependency: expected at least 1 bean which qualifies as autowire candidate for this dependency. Dependency annotations: {}

    I cannot seem to understand why I am getting this error. It straight forward error but why it is occurring is. I will post my bean and XML file below.



    package com.learnspring.beans;

    import...
  2. [SOLVED] Re: Has anyone had an issue with the Maven GUI

    right click the interface while you are in the Beans.xml file and select open with Spring Config..... That was very annoying...
  3. [SOLVED] Has anyone had an issue with the Maven GUI

    I am having an issue with maven. I am using Eclipse and have the configuration on this computer that I have on the other. However when I right click the file->new-> other-> Spring -> Spring Bean...
  4. Replies
    1
    Views
    156

    Storing images to a mySQL database:

    This question is not about syntax but a best way to handle something. What is the best way to store a image into a database? For example converting it into binary etc. I just wanted to get some...
  5. Replies
    0
    Views
    137

    [SOLVED] SPEL Practice

    I am making a simple practice program but my main method keeps printing out "A person says null and is: null". I am trying to set default values to my beans via annotations and autowire them...
  6. Re: unable to conect to MS SQL server from other network except my home network through java program

    You cannot access you network from another unless you bridge them. Treating you PC as a server does not quite have the same logistic support as a server you would pull a page from.
  7. Replies
    7
    Views
    307

    Re: what is wrong with my code- Multithread

    One common mistake with garbage collected languages such as Java or C# is to keep around references to objects that you no longer are using, or allocating many objects when you could reuse them...
  8. Re: How can the program identify the "modified contents" that it is supposed to return?

    I am not sure the format of your file and if you will be able to do this but here is a suggestion. If you could sort them alphabetically or numerically you might be able to use the divide and concur...
  9. Re: how do I change the JLabel text by clicking on the JButton?

    Why are you adding a new Action Listener to each button?
  10. Re: How to load xml file inside of java class file in a netbeans project

    Please add the proper code tags. Is this a maven project?
  11. Re: if statement not running when ResultSet is null

    Thank you. This is how I solved it...



    finally {
    if (!found) {

    System.out.println("Nope, not found");
    frame = new JFrame("Query Message");
    pane = new JOptionPane();
  12. if statement not running when ResultSet is null

    The below method shows that a JOptionPane should display when the result is null, meaning it has not found what I was trying to look for. However only the if statement that finds the query runs:

    ...
  13. Replies
    1
    Views
    168

    [SOLVED] Re: Unable to delete row from database

    Did the following and the error is gone but still not deleting:



    public void delete(Person person) {

    String query = "DELETE from employee WHERE last LIKE\'"+person.getLast()+"\'";
    try...
  14. Replies
    1
    Views
    168

    [SOLVED] Unable to delete row from database

    I read the the java docs, looked at examples and for some reason I cannot delete a row from the database. I posted two small snippets below:



    public void delete(Person person) {

    String...
  15. Re: Weird syntax error (Syntax error on token ";", , expected)

    Questions 1)
    It is one issue after another with this thing but I am learning a lot. I have found where the issue is. When I try to get an instance of the database connection it causes the line above...
  16. Re: Weird syntax error (Syntax error on token ";", , expected)

    I seems I have a null error but that still confuses me about the NULL error. I tested this program all the way through creating it and seem my issue lays in the MySQLDataBase class. Here is a snippet...
  17. Weird syntax error (Syntax error on token ";", , expected)

    I am getting a weird error that makes no sense to me. I am getting a (Syntax error on token ";", , expected) on the below line:



    private static MySQLDataBaseDAO instance = new...
  18. Replies
    11
    Views
    190

    [SOLVED] Re: undefined error in swing:

    I think I found the issue but it did led to other.

    1.) First issue was I was passing into the values into the database constructor, now I simply just create getter and setter methods in my...
  19. Replies
    11
    Views
    190

    [SOLVED] Re: undefined error in swing:

    I might have to scrap this whole project and start from scratch. Do you have any suggestions?

    This is what I want to do.

    Log in to a database.

    Then show a user interface that can add,...
  20. Replies
    11
    Views
    190

    [SOLVED] Re: undefined error in swing:

    So if I create a new DataBaseConnection won't that create an actual new database connection?
    I just see collisions with this and I am trying to implement the DAO pattern.

    The worst part is I...
  21. Replies
    11
    Views
    190

    [SOLVED] Re: undefined error in swing:

    Maybe I am so frustrated I am blind. Get this:

    When I create a new connection via:




    public class AddUserPanelController {

    MainMenuGUI main;
  22. Replies
    11
    Views
    190

    [SOLVED] Re: undefined error in swing:

    Oh my god... I am so ashamed of myself right now!!!!!!
  23. Replies
    11
    Views
    190

    [SOLVED] undefined error in swing:

    I have had several issue with the program but I am fighting threw them. This one however is rather confusing:

    The method MySQLDataBaseDAO(Connection) is undefined for the type...
  24. Replies
    17
    Views
    269

    [SOLVED] Re: Controller for JPanels in a Tabbed pane:

    Where am I missing a constructor?

    Error are gone and the program is running. However I still am trying to figure out how to access the a JPanels fields. Here is what I have so far:


    package...
  25. Replies
    17
    Views
    269

    [SOLVED] Re: Controller for JPanels in a Tabbed pane:

    The main issue is adding a ActionListener to a JPanel. The JPanels which are on a TabbedPane has fields that I need access to in order to set the model.

    I am using the Observer Method / Classic...
Results 1 to 25 of 386
Page 1 of 16 1 2 3 4