Results 1 to 5 of 5
  1. #1
    Levian is offline Senior Member
    Join Date
    Jun 2011
    Posts
    109
    Rep Power
    0

    Default java.beans or java.sql or

    I'm new to java n as I viewed the API list, I thought java.sql is the one to use, however when I tried one of netbeans build-in package I see that it's using java.beans instead, so now I wonder which one to use...more to what advantage n disadvantage of using the both or maybe using other than those two if there's more.

    Thanks n regards,

  2. #2
    Norm's Avatar
    Norm is online now Moderator
    Join Date
    Jun 2008
    Location
    Eastern Florida
    Posts
    17,816
    Rep Power
    25

    Default

    I wonder which one to use
    Would that depend on what you are trying to do?

  3. #3
    Levian is offline Senior Member
    Join Date
    Jun 2011
    Posts
    109
    Rep Power
    0

    Default

    I want to make a program that calls on database tables and perform CRUD process.
    I found that the package creation by netbeans contain parameter to connect to database with inbound persistence.xml

    Anyway I think I went with the set provided by netbeans, but I found that I can't edit the table properties...my db table contains 7 columns n upon creation it only show 4 columns n I can't add the other 3 columns despite editing the table property in the design itself...the ColumnBinding in the source seems not updated to what the design is.

  4. #4
    Levian is offline Senior Member
    Join Date
    Jun 2011
    Posts
    109
    Rep Power
    0

    Default

    OK I do some find-out n I get a post as
    "The lines that have a grey background are not editable.
    The UI Designer needs to have them untouched so the results reflect what you graphically designed.
    You can edit such a file only in those places where the background is not greyed out."

    So basically I can edit the design appearance but not linked with the code ? or I do it the wrong way ?
    I use the package creation linked to database, selected all 7 columns upon creation but it shows only 4 columns.
    Then I open the table properties of the master table n add 3 more columns. It shows changes in the design, saved...
    Reopen n it shows back 4 columns...add 3 more in the properties n check the source to see that it's only 4 seen in the source.
    That's how I did.

    Just want to know if it's true cause I think designing is easier with it, but if the change doesn't linked with the codes...then it's practically useless, isn't it ? But again maybe I made mistake in doing it.

  5. #5
    Levian is offline Senior Member
    Join Date
    Jun 2011
    Posts
    109
    Rep Power
    0

    Default

    It seems I find the problem...with the database, so this is no longer a question for now

Similar Threads

  1. how do i get elements from java beans from list?
    By anthrax in forum New To Java
    Replies: 5
    Last Post: 12-24-2009, 10:56 AM
  2. Create XML with Java Beans
    By Szdnez in forum XML
    Replies: 0
    Last Post: 03-09-2009, 06:23 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •