Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
S

Shubhashish_Mandal

@Shubhashish_Mandal
About
Posts
25
Topics
0
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • How to establish connection between JAVA & MS SQL Server ?
    S Shubhashish_Mandal

    Very poor info. Lots of glitch : 1. What happen if Connection return as null. 2. What happen if ResultSet return as null. 3. Finally if all run good, then where is the code to close the resources.

    Regards Shubhashish

    Java database java sql-server com sysadmin

  • JScrollPane is not showing the frame properly
    S Shubhashish_Mandal

    To add anything in scrollPane , try this

    jscrollpane.setViewPortView(...)

    Regards Shubhashish

    Java question

  • Adding more than one JPanel to my JFrame(North,South)
    S Shubhashish_Mandal

    I didn't see any layout set against the JPanel jP1. see this http://docs.oracle.com/javase/7/docs/api/java/awt/BorderLayout.html[^]

    Regards Shubhashish

    Java docker help

  • Using the Observer and Observable Class
    S Shubhashish_Mandal

    few things that you have to know. Role of the Observer is to notify each subscriber if any changes happen. If you see in your code there is a recursive call exist. In your main class , at the end, you are setting value in Observer. So Observer value changed and it convey the notify message to the subscriber.Again If you see in doAction() ,you can see that each Subscriber receive the notify message and again set the Observer value with new one. There for this action again update the Observer value and again Observer doing the above thing and thus fall in recursive call.

    Regards Shubhashish

    Java java data-structures testing beta-testing performance

  • Using the Observer and Observable Class
    S Shubhashish_Mandal

    Please update the code with your changes. May be there are some memory leak. This may help you http://www.java2s.com/Code/Java/Design-Pattern/AsimpledemoofObservableandObserver.htm[^]

    Regards Shubhashish

    Java java data-structures testing beta-testing performance

  • Using the Observer and Observable Class
    S Shubhashish_Mandal

    I think you failed to understand the publisher-subscriber framework. Publisher has many subscriber .i.e one to many relation ship with subscriber.Publisher post the new event(if any), and all the subscriber which have the subscription, will catch the event. So this is pretty much concept. In java , publisher as Observable and subscriber as Observer. Now, in your app you create an Observable (CValue). Then you create Observer which is again an Observable(CData extends Observable) and register this with the Observable, means you register an Observable with another Observable. So fixed this things before moving forward

    Regards Shubhashish

    Java java data-structures testing beta-testing performance

  • Addding multiple jTables in jTextArea
    S Shubhashish_Mandal

    you may try this http://www.activetree.com/jreport/docs/smartjreport_tutorial.html#can_i_automatically_print_or_pdf[^]

    Regards Shubhashish

    Java

  • Addding multiple jTables in jTextArea
    S Shubhashish_Mandal

    TextArea does not support any html content. You can use a JEditorPane to display HTML or a JTextPane,

    Regards Shubhashish

    Java

  • Synchronize JSP
    S Shubhashish_Mandal

    I guess you want something like user hit count of any web site. If yes then you have think about the init() of the servlet . Because its only executed when the servlet is called for the first time.So if you define a variable inside this block , and increment that value in processRequest(), you will get the hit count.

    Regards Shubhashish

    Java java html database help tutorial

  • java media player with Java Media Frmework
    S Shubhashish_Mandal

    Currently JMF support the several format. Check this http://www.oracle.com/technetwork/java/javase/formats-138492.html[^]

    Regards Shubhashish

    Java java help question

  • Login process Always false..cannot find the error
    S Shubhashish_Mandal

    welcome :-D

    Regards Shubhashish

    Java java help html mysql tutorial

  • Login process Always false..cannot find the error
    S Shubhashish_Mandal

    Cross post.

    Regards Shubhashish

    Java java help html mysql tutorial

  • actionPerformed in another class
    S Shubhashish_Mandal

    You can only register an event handler to an event source. So your first class is an event handler. And there fore you can use this to any of the event source which trigger that event. Something like this.

    class Handler implements ActionPerformed{

    public void actionPerformed(ActionEvent e) {}
    }
    }
    class Source {
    p s v main(){
    JButton bt = new Jbutton("Ok");
    bt.addActionListener(new Handler());
    }
    }

    Regards Shubhashish

    Java question java database docker

  • Login process Always false..cannot find the error
    S Shubhashish_Mandal

    The problem is here. Your ResultSet return one row. First rs.next() point to the actual row returned. Again in while loop you use rs.next() so your resultSet move to the next row, and which has no row value(first row already read) so it return false and thus skip the while loop.

    System.out.println("sssssssssssssssss" + rs.next());
    while(rs.next()) {

    Remove the sout.

    <pre lang="java">
    while(rs.next()) {
    </pre>

    Regards Shubhashish

    Java java help html mysql tutorial

  • JList is returning null value
    S Shubhashish_Mandal

    "TorstenH" want to say you that you have to check the "index" value before using it to set the selected item. You should check "index" value whether it is in the range of your image list size.

    Regards Shubhashish

    Java question database help discussion

  • Perform -> key press Event on GUI programmatically
    S Shubhashish_Mandal

    As "Rechard" suggest, add KeyListener to your imageList and put your logic on KeyPress event to move the next item on the list on up/down arrow key.

    Regards Shubhashish

    Java question java

  • netbeans error main class
    S Shubhashish_Mandal

    This is a common error. Its told you that classes ,you have used in your application, not in project classpath. So make sure that you have add the location of your .class file to your classpath.

    Regards Shubhashish

    Java help java

  • JSP StyleID clarification
    S Shubhashish_Mandal

    You should read this. This might help you to understand how "tld" works.

    Regards Shubhashish

    Java java html css tools help

  • JSP StyleID clarification
    S Shubhashish_Mandal

    styleId is similar as id in normal HTML, to uniquely identified the element

    Regards Shubhashish

    Java java html css tools help

  • CardLayout in AWT
    S Shubhashish_Mandal

    This should come at the end

    frm.setSize(300,300);
    frm.setVisible(true);

    Regards Shubhashish

    Java linux java help
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups