Help for a begginer using swing

Basically I need help with a program for a school project. i am not looking for a quick answer but rather some pointers in the right direction. This is my first time using swing and my first project is to create a blackJack game. I am having trouble with functionality. there are problems on tab 2 with almost all the buttons. any help would be greatly appreciated. since i didnt have enough room for all my code i posted it online to be accessed at this site: [https://code.google.com/p/blackjackgui-alpha/]

private void jTextField2ActionPerformed(java.awt.event.ActionEvent evt) {
String betString = jTextField2.getText();
betString = Integer.toString(bet);// TODO add your handling code here:
total = total - bet;
  private void jMenuItem1ActionPerformed(java.awt.event.ActionEvent evt) {                                          
    System.exit(0);        // TODO add your handling code here:
  private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {                                        
    String name = jTextField1.getText();
    String prefix = (String)jComboBox1.getSelectedItem();
    jLabel2.setText("Hello " + prefix + name + " and welcome to blackJack please press the tab labeled BlackJack");
      jLabel3.setText("Welcome to you personal blackJack game " + prefix + name + " your cards are" + card1 + "(" + card1s + ") and " + card2 + "(" +card2s + ")  your hand total is " + handTotal);
    jLabel5.setText("This is where you may see the Dealers information " + prefix + name);
  private void jButton2ActionPerformed(java.awt.event.ActionEvent evt) {                                        
          handTotal = card1 + card2;
          if(handTotal > 21)
              jLabel3.setText("You busted press hit");
              handTotal = 0;
          handTotal = card1+card2;
          dealerHandTotal = 0;
          dealerHandTotal = dealerCard1 + dealerCard2;
          handTotal = handTotal + card3;
      jLabel3.setText("You have hit and recieve " + card3 +   "your total is " + handTotal);
            jLabel5.setText("Dealer hits and recieves " + dealerCard1 + "(" + dealerCard1s + ") and " + dealerCard2 + "(" + dealerCard2s + ")  Dealer total is " + dealerHandTotal);
    if(handTotal > 21)
      jLabel3.setText("I am sorry, you busted with: " + handTotal + "Please press hit to begin a new round");
handTotal = 0;
      card1=card1;
      card2 = card2;
    else if( handTotal == 21)
          total =  total + (bet*2);
      jLabel3.setText("BLACKJACK!!! your total is now: " + total);
      handTotal = 0;
      dealerHandTotal = 0;
    else if(handTotal == dealerHandTotal)
        jLabel3.setText("PUSH ...house automatically wins");
                   jLabel5.setText("PUSH ...house automatically wins");
                   handTotal = 0;
                   dealerHandTotal = 0;
    else if(dealerHandTotal < 17 || handTotal > dealerHandTotal) {
                dealerHandTotal = dealerHandTotal + dealerCard1;
    else if(dealerHandTotal == 21)
        jLabel5.setText("DEALER GETS BLACKJACK!!")
                dealerHandTotal = 0;
        dealerHandTotal = dealerCard1+dealerCard2;
        handTotal = 0;
        handTotal = card1 + card2;
  private void jButton3ActionPerformed(java.awt.event.ActionEvent evt) {                                        
    jLabel3.setText("You have stood at " + handTotal);   // TODO add your handling code here:
  private void jButton4ActionPerformed(java.awt.event.ActionEvent evt) {                                        
    jLabel3.setText("You have folded at your total of: " + handTotal);
    jLabel5.setText("You have folded at you total of:" + handTotal)
    handTotal = 0;
    dealerHandTotal = 0;
  }                  Sorry i thought it would be more convenient for the code to be on another page..my bad
Edited by: rightWingNutJob on Mar 4, 2010 2:07 PM
Edited by: rightWingNutJob on Mar 4, 2010 2:30 PM

Similar Messages

  • Search help for Web Dynpro using the SAP-search help

    Hi,
    I’m trying to create a generic search help for Web Dynpro using the SAP-search help. It should working so, that I construct a Web Dynpro-component, that gets the data of the search help from the SAP-system, interpreted it and creates the ui-elements and the needed context generic.
    The mapping between the Input field of the customerview and the right search help is to be made with an xml-file, which contains the information: name of the view, the input field, the search-help-name and the name of the field that will be returned.
    The xml-file is reading from a helper-class. That helper-class contains any information, witch need the search help-component as well as the customer-component.
    The initialization takes place in the method wdDoModify of the customer. The call of the search help from the customer should be implement with an Action, witch is bound to a Button(create dynamic in the helper-class behind the input field).
    In a second foot should be create a plugin for eclipse, witch insert the used files (search help component, helper class, …) in the project. In addition it should create the call in the customer generic.
    It would be great if someone can give me a feedback!

    Hi Mike,
    The BlanketAgreement.exe is a reference to the executable that will be created when you compile the solution you created in Part II - Part III. I think there is a mistake in the tutorial because it asks you to name the project 'Blanket' which means that by default the executable will be called Blanket.exe and not BlanketAgreement.exe. The tutorial also misses the step asking you to compile the Blanket project before you go on to create an installer. You should compile your Blanket project in Release mode before creating an installer. By compiling the project you'll get a Blanket.exe file in the bin folder of your Blanket project which you then need to add to the installer per the instructions.
    SAP do offer development courses in some areas and there is training material here on the SDN and on the SAP partner portal (and maybe the customer portal as well). Try searching this forum for 'training' or 'tutorial' and you should get a few links. There's also a development certification.
    Personally I'd recommend you give yourself a little project to work on and just get stuck in
    Kind Regards,
    Owen

  • How  to write code for font family using swing?

    how to write code for font family using swing?
    i tried this code.but i got only font styles.but i need font family.observ this code
    import java.awt.*;
    import java.awt.event.*;
    public class fontSelect extends java.awt.Dialog implements AdjustmentListener, ItemListener, TextListener, ActionListener {
    public Font selectedFont; //to get result
    public boolean isSelected = false;
    public Color selectedBackground, selectedForeground;
         public fontSelect(Frame parent, boolean modal) {
              super(parent, modal);
         String fntName[] = getToolkit().getFontList();
    GraphicsEnvironment ge = GraphicsEnvironment.getLocalGraphicsEnvironment();
    String[] names = ge.getAvailableFontFamilyNames();
              //{{INIT_CONTROLS
              setLayout(null);
              setVisible(false);
    //setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
              setSize(insets().left + insets().right + 380,insets().top + insets().bottom + 282);
              setBackground(java.awt.Color.lightGray);
    fontList = new java.awt.Choice();
              //fontList = new java.awt.List(0,false);
              add(fontList);
              fontList.setBounds(insets().left +25,insets().top + 50,137,144);
              //label1 = new java.awt.Label("Example:-");
              //label1.setBounds(insets().left + 220,insets().top + 36,84,30);
              //add(label1);
              exampleText = new java.awt.TextField();
              //exampleText.setText("sample string ");
              //exampleText.setBounds(insets().left + 40,insets().top + 50,84,21);
              //add(exampleText);
              label2 = new java.awt.Label("Font Family:-");
              label2.setBounds(insets().left + 25,insets().top + 30,70,19);
              add(label2);
              isBold = new java.awt.Checkbox("Bold");
              isBold.setBounds(insets().left + 320,insets().top + 90,60,18);
              isBold.setFont(new Font("Times New Roman", Font.BOLD, 12));
              add(isBold);
              isItalic = new java.awt.Checkbox("Italic");
              isItalic.setBounds(insets().left + 250,insets().top + 90,48,17);
              isItalic.setFont(new Font("Times New Roman", Font.ITALIC, 12));
              add(isItalic);
              showFont = new java.awt.Label("samplestring ",Label.CENTER);
              showFont.setBounds(insets().left + 240,insets().top +50,120,30);
              showFont.setBackground(java.awt.Color.white);
              add(showFont);
    label11 = new java.awt.Label("Size:-");
              label11.setBounds(insets().left + 290,insets().top + 120,70,19);
              add(label11);
              fontSize = new java.awt.Choice();
    add(fontSize);
              //label11 = new java.awt.Label("Example string");
              fontSize.setBounds(insets().left + 290,insets().top + 140,60,23);
              fontSize.setBackground(java.awt.Color.white);
              btnSelect = new java.awt.Button();
              btnSelect.setLabel("Select");
              btnSelect.setBounds(insets().left + 280,insets().top + 190,87,24);
              add(btnSelect);
              btnCancel = new java.awt.Button();
              btnCancel.setLabel("Cancel");
              btnCancel.setBounds(insets().left + 280,insets().top + 230,91,24);
              add(btnCancel);
              label3 = new java.awt.Label("Background:-");
              label3.setBounds(insets().left + 24,insets().top + 90,94,18);
              add(label3);
              rBackground = new java.awt.Scrollbar(Scrollbar.HORIZONTAL,255,0,0,255);
              rBackground.setBounds(insets().left + 24,insets().top +110 ,197,21);
              add(rBackground);
              gBackground = new java.awt.Scrollbar(Scrollbar.HORIZONTAL,255,0,0,255);
              gBackground.setBounds(insets().left + 24,insets().top + 135,197,21);
              add(gBackground);
              bBackground = new java.awt.Scrollbar(Scrollbar.HORIZONTAL,255,0,0,255);
              bBackground.setBounds(insets().left + 24,insets().top + 160,197,21);
              add(bBackground);
              label4 = new java.awt.Label("R");
              label4.setBounds(insets().left + 12,insets().top + 110,12,18);
              label4.setFont(new Font("Times New Roman", Font.BOLD, 12));
              label4.setForeground(java.awt.Color.red);
              add(label4);
              label5 = new java.awt.Label("G");
              label5.setBounds(insets().left + 12,insets().top + 135,12,18);
              label5.setFont(new Font("Times New Roman", Font.BOLD, 12));
              label5.setForeground(new Color(-16744448));
              add(label5);
              label6 = new java.awt.Label("B");
              label6.setBounds(insets().left + 12,insets().top + 160,12,18);
              label6.setFont(new Font("Times New Roman", Font.BOLD, 12));
              label6.setForeground(java.awt.Color.blue);
              add(label6);
              rBackValue = new java.awt.Label("255");
              rBackValue.setBounds(insets().left + 225,insets().top + 110,24,12);
              rBackValue.setFont(new Font("Times New Roman", Font.BOLD, 12));
              rBackValue.setForeground(java.awt.Color.red);
              add(rBackValue);
              gBackValue = new java.awt.Label("255");
              gBackValue.setBounds(insets().left + 225,insets().top + 135,24,12);
              gBackValue.setFont(new Font("Times New Roman", Font.BOLD, 12));
              gBackValue.setForeground(new Color(-16744384));
              add(gBackValue);
              bBackValue = new java.awt.Label("255");
              bBackValue.setBounds(insets().left + 225,insets().top + 160,24,12);
              bBackValue.setFont(new Font("Times New Roman", Font.BOLD, 12));
              bBackValue.setForeground(java.awt.Color.blue);
              add(bBackValue);
              label7 = new java.awt.Label("Foreground:-");
              label7.setBounds(insets().left + 20,insets().top + 185,94,18);
              add(label7);
              rForeground = new java.awt.Scrollbar(Scrollbar.HORIZONTAL,0,0,0,255);
              rForeground.setBounds(insets().left + 20,insets().top + 205,197,21);
              add(rForeground);
              gForeground = new java.awt.Scrollbar(Scrollbar.HORIZONTAL,0,0,0,255);
              gForeground.setBounds(insets().left + 20,insets().top + 230,197,21);
              add(gForeground);
              bForeground = new java.awt.Scrollbar(Scrollbar.HORIZONTAL,0,0,0,255);
              bForeground.setBounds(insets().left + 20,insets().top + 255,197,21);
              add(bForeground);
              label8 = new java.awt.Label("R");
              label8.setBounds(insets().left + 10,insets().top + 205,12,18);
              label8.setFont(new Font("Times New Roman", Font.BOLD, 12));
              label8.setForeground(java.awt.Color.red);
              add(label8);
              label9 = new java.awt.Label("G");
              label9.setBounds(insets().left + 10,insets().top + 230,12,18);
              label9.setFont(new Font("Times New Roman", Font.BOLD, 12));
              label9.setForeground(new Color(-16744448));
              add(label9);
              label10 = new java.awt.Label("B");
              label10.setBounds(insets().left + 10,insets().top + 255,12,18);
              label10.setFont(new Font("Times New Roman", Font.BOLD, 12));
              label10.setForeground(java.awt.Color.blue);
              add(label10);
              rForeValue = new java.awt.Label("255");
              rForeValue.setBounds(insets().left + 220,insets().top + 205,24,12);
              rForeValue.setFont(new Font("Times New Roman", Font.BOLD, 12));
              rForeValue.setForeground(java.awt.Color.red);
              add(rForeValue);
              gForeValue = new java.awt.Label("255");
              gForeValue.setBounds(insets().left + 220,insets().top + 230,24,12);
              gForeValue.setFont(new Font("Times New Roman", Font.BOLD, 12));
              gForeValue.setForeground(new Color(-16744384));
              add(gForeValue);
              bForeValue = new java.awt.Label("255");
              bForeValue.setBounds(insets().left + 220,insets().top + 255,24,12);
              bForeValue.setFont(new Font("Times New Roman", Font.BOLD, 12));
              bForeValue.setForeground(java.awt.Color.blue);
              add(bForeValue);
              setTitle("Choosing font");
              //{{REGISTER_LISTENERS
              exampleText.addTextListener(this);
              btnSelect.addActionListener(this);
              btnCancel.addActionListener(this);
              isBold.addItemListener(this);
              fontList.addItemListener(this);
              isItalic.addItemListener(this);
              fontSize.addItemListener(this);
              rBackground.addAdjustmentListener(this);
              gBackground.addAdjustmentListener(this);
              bBackground.addAdjustmentListener(this);
              rForeground.addAdjustmentListener(this);
              gForeground.addAdjustmentListener(this);
              bForeground.addAdjustmentListener(this);
    for (int i = 0; i < (int)fntName.length; i++)
    fontList.addItem(fntName);
              showFont.setFont(new Font(fntName[0], Font.PLAIN, 12));
    // GraphicsEnvironment ge = GraphicsEnvironment.getLocalGraphicsEnvironment();
    //String[] names = ge.getAvailableFontFamilyNames();
    for ( int i=0; i<names.length; i++ )
    System.out.println( names[i] );
              selectedBackground = showFont.getBackground();
              selectedForeground = showFont.getForeground();
              int i = 8;
              do {
                   fontSize.addItem(""+i);
                   if (i<=30) i+=2;
                   else if (i<=70) i+=4;
                   else i+=8;
              } while (i<150);
              try {
                   fontSize.select(2);
              } catch (IllegalArgumentException e) { }
         //{{DECLARE_CONTROLS
         //java.awt.List fontList;
    java.awt.Label label11;
         java.awt.Label label1;
         java.awt.TextField exampleText;
         java.awt.Label label2;
         java.awt.Checkbox isBold;
         java.awt.Checkbox isItalic;
         java.awt.Label showFont;
         java.awt.Choice fontSize;
    java.awt.Choice fontList;
         java.awt.Button btnSelect;
         java.awt.Button btnCancel;
         java.awt.Label label3;
         java.awt.Scrollbar rBackground;
         java.awt.Scrollbar gBackground;
         java.awt.Scrollbar bBackground;
         java.awt.Label label4;
         java.awt.Label label5;
         java.awt.Label label6;
         java.awt.Label rBackValue;
         java.awt.Label gBackValue;
         java.awt.Label bBackValue;
         java.awt.Label label7;
         java.awt.Scrollbar rForeground;
         java.awt.Scrollbar gForeground;
         java.awt.Scrollbar bForeground;
         java.awt.Label label8;
         java.awt.Label label9;
         java.awt.Label label10;
         java.awt.Label rForeValue;
         java.awt.Label gForeValue;
         java.awt.Label bForeValue;
    private Font constructFont() {
    int l;
    try {
    l = Integer.parseInt(fontSize.getSelectedItem());
    } catch (NumberFormatException e) {l = 12;}
    selectedFont = new Font(fontList.getItem(fontList.getSelectedIndex()>=0?fontList.getSelectedIndex():0 ), (isBold.getState()?Font.BOLD:0)+(isItalic.getState()?Font.ITALIC:0), l);
    selectedBackground = new Color(rBackground.getValue(), gBackground.getValue(), bBackground.getValue());
    selectedForeground = new Color(rForeground.getValue(), gForeground.getValue(), bForeground.getValue());
    return (selectedFont);
         public void textValueChanged(java.awt.event.TextEvent event) {
              Object object = event.getSource();
              if (object == exampleText) showFont.setText(exampleText.getText());
         public void actionPerformed(java.awt.event.ActionEvent event) {
              Object object = event.getSource();
              if (object == btnSelect) {
    isSelected = true;
    selectedFont = constructFont();
         dispose();
    } else if (object == btnCancel) {
         selectedFont = null;
    selectedBackground = null;
    selectedForeground = null;
    dispose();
         public void itemStateChanged(java.awt.event.ItemEvent event) {
              Object object = event.getSource();
              if (object == isBold) showFont.setFont(constructFont());
              else if (object == fontList) showFont.setFont(constructFont());
              else if (object == isItalic) showFont.setFont(constructFont());
              else if (object == fontSize) showFont.setFont(constructFont());
         public void adjustmentValueChanged(java.awt.event.AdjustmentEvent event)
              Object object = event.getSource();
    constructFont();
    showFont.setBackground(new Color(rBackground.getValue(), gBackground.getValue(), bBackground.getValue()));
    showFont.setForeground(new Color(rForeground.getValue(), gForeground.getValue(), bForeground.getValue()));
    if (object == rBackground) rBackValue.setText(""+rBackground.getValue());
              else if (object == gBackground) gBackValue.setText(""+gBackground.getValue());
              else if (object == bBackground) bBackValue.setText(""+bBackground.getValue());
              else if (object == rForeground) rForeValue.setText(""+rForeground.getValue());
              else if (object == gForeground) gForeValue.setText(""+gForeground.getValue());
              else if (object == bForeground) bForeValue.setText(""+bForeground.getValue());

    Okay, that's better. It would have been nice if the code was formatted, and if there was about 20% of that code. (Your example could have been just one JLabel and nothing else, for example.)
    Anyway, now that you've posted that code, what is your question about it? I see you are calling a "getAvailableFontFamilyNames" method; do you have a question about that? If so, what is the question?

  • Search help for a field using a selection method which has a text table.

    Hello all,
    I am trying to create a search help for one of the fields in a structure say RFCDEST. Now for this i am giving the selection method as the DB table where all the RFCDEST are maintained. However there is a text table which is also comes up for this selection method and the description of the filed RFCDEST is in that text table and the description is not stored in the main table which i specified as the selection method.
    My query is that on F4 now all the rfc destinations are being shown however the description i am not able to show them because there is no field in the table specified in the selectionmethod which hold s the description but instead it is there in the text table, how can i fetch the description from there and display in the search help.
    Warm Regards,
    Naveen M

    look at search help FC_RFCDEST. that problem has already been solved with this search help.

  • How to use search help for UI parameters using 'as search pattren'?

    i want to link a search help created by me to the UI parameters in a report using 'as a serarch pattern,but i am unable to proceed with it.how to proceed with it?

    hi,
    http://help.sap.com/saphelp_nw04/helpdata/en/cf/21ee38446011d189700000e8322d00/content.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/cf/21ee45446011d189700000e8322d00/content.htm
    pls go through this for search help creation
    http://help.sap.com/saphelp_nw2004s/helpdata/en/41/f6b237fec48c67e10000009b38f8cf/content.htm

  • Help with PhotoAlbum programm using swings (editing)

    i have the pictures ready and are place in the correct workshop folder*
    but when i click on the labels, nothing show up
    Please help :)
    import javax.swing.;
    import java.awt.*;
    import java.awt.event.*;
    public class photoAlbum extends JFrame implements ActionListener
    private static Container contentPane;
    private static String[] buttonLabel;
    private static Color[] color;
    ImageIcon[] image=*new* ImageIcon[9];
    JLabel[] picture= new JLabel[9];
    JLabel[] label= new JLabel[9];
    JPanel picturePanel = new JPanel();
    public photoAlbum()
    super();
    setSize(900, 700);
    setTitle(" *B-CC BFF Album* ");
    contentPane = getContentPane();
    contentPane.setBackground(Color.+black+);
    contentPane.setLayout(*new* BorderLayout());
    JPanel buttonPanel = new JPanel();
    buttonPanel.setBackground(Color.+white+);
    buttonPanel.setLayout(*new* GridLayout(10,1));
    buttonLabel = new String[10];
    buttonLabel[0] = "Shawte";
    buttonLabel[1] = "Mehak";
    buttonLabel[2] = "Sonali";
    buttonLabel[3] = "Meena";
    buttonLabel[4] = "Alanna";
    buttonLabel[5] = "Nicole";
    buttonLabel[6] = "Amalia";
    buttonLabel[7] = "Me";
    buttonLabel[8] = "BFF 4evr";
    buttonLabel[9] = "Exit Photo Album";
    color = new Color[10];
    color[0] = new Color(255,255,224);
    color[1] = new Color(255,239,219);
    color[2] = new Color(240,255,255);
    color[3] = new Color(238,224,229);
    color[4] = new Color(224,255,255);
    color[5] = new Color(240,255,255);
    color[6] = new Color(227,227,227);
    color[7] = new Color(240,255,255);
    color[8] = new Color(216,191,216);
    color[9] = new Color(152,251,125);
    image = new ImageIcon[9];
    for (*int* i = 0; i<image.length; i++)
    image= new ImageIcon ("picture"+(i+1)+".jpg");
    picture[i]=*new* JLabel();
    picture[i].setLayout(*new* BoxLayout(picture[i],BoxLayout.+Y_AXIS+));
    Font fontType = new Font("AbcBulletin", Font.+BOLD+, 15);
    label[i]= new JLabel("Friend "+(i+1));
    label[i].setFont(fontType);
    label[i].setForeground(*new* Color(138,43,226));
    picturePanel.setLayout(*new* GridLayout(2,2));
    picturePanel.setBackground(*new* Color(255,250,205));
    picture[i].setIcon(image[i]);
    picture[i].add(label[i]);
    picturePanel.add(picture[i]);
    JButton[] button = new JButton[10];
    for (*int* x=0; x<button.length; x++)
    button[x] = new JButton(+buttonLabel+[x]);
    button[x].addActionListener(*this*);
    button[x].setBackground(+color+[x]);
    buttonPanel.add(button[x]);
    contentPane.add(buttonPanel, BorderLayout.+WEST+);
    public void actionPerformed(ActionEvent event)
    if(event.getActionCommand().equals("Exit Photo Album"))
    System.+exit+(0);
    else
    for (*int* i = 0; i<+buttonLabel+.length; i++)
    if (event.getActionCommand().equals(+buttonLabel+[i]))
    contentPane.add(picturePanel);
    public static void main(String[] args)
    photoAlbum pictureGui = new photoAlbum();
    pictureGui.setVisible(*true*);

    On the toolbar of the forum post form, you could see eight icons:
    B I]/i] U .. ABC "" CODE (?)
    When you write a code in your post, push the CODE icon and sandwich your code with the { code }{ code } pair. And,
    Post a small demo code that is generally compilable, runnable and could reproduce your problem. See: http://homepage1.nifty.com/algafield/sscce.html and http://www.yoda.arachsys.com/java/newsgroups.html

  • Help for views regarding using Liferay for an already developed project.

    Hi all,
    I don't know if I am posting this question in the right place. If I am then extremely sorry. Guide me to post in right place. I have already posted in Liferay forum but still no reply!
    First of all, let me tell you what I am or my company is intended to do. We have already developed a project using Java, JSP and Servlet. We want it to integrate with Liferay so that we can change logo, css, images, themes or any other UI related component at run time using Liferay admin panel. But backend should be what we have developed. In short, UI of our project is controlled by Liferay but control of data displayed on UI or submitted from UI should be from our developed backend code.
    Now I have a few questions regarding above said approach of fulfilling the requirement:-
    1) What we are trying to do is possible?
    2) Is this approach recommendable for what we intended to do?
    3) Or do we need to develop our project from scratch to fit into Liferay? Like developing portlets and deploying in Liferay or other approach that has been given in Liferay documentation.
    4) What about database integration? We have around 15 columns/fields in user table in database of our project which is completely different from that of Liferay's user table.
    Liferay is a very new for us. We have checked the documentation section of Liferay but still few things like above said requirements and its implementation is not clear. Also, we would like to know in what scenarios/requirements Liferay is useful.
    Eagerly waiting for your views. Any help will be very much appreciated.
    Thanks

    Hi all,
    I don't know if I am posting this question in the right place. If I am then extremely sorry. Guide me to post in right place. I have already posted in Liferay forum but still no reply!
    First of all, let me tell you what I am or my company is intended to do. We have already developed a project using Java, JSP and Servlet. We want it to integrate with Liferay so that we can change logo, css, images, themes or any other UI related component at run time using Liferay admin panel. But backend should be what we have developed. In short, UI of our project is controlled by Liferay but control of data displayed on UI or submitted from UI should be from our developed backend code.
    Now I have a few questions regarding above said approach of fulfilling the requirement:-
    1) What we are trying to do is possible?
    2) Is this approach recommendable for what we intended to do?
    3) Or do we need to develop our project from scratch to fit into Liferay? Like developing portlets and deploying in Liferay or other approach that has been given in Liferay documentation.
    4) What about database integration? We have around 15 columns/fields in user table in database of our project which is completely different from that of Liferay's user table.
    Liferay is a very new for us. We have checked the documentation section of Liferay but still few things like above said requirements and its implementation is not clear. Also, we would like to know in what scenarios/requirements Liferay is useful.
    Eagerly waiting for your views. Any help will be very much appreciated.
    Thanks

  • ALV: Search help for editable column using OVS/Input Help Component Usage?

    Hi all,
    Is is possible to assign a value help like OVS or "Input Help Component Usage" to a editable ALV column using Web Dynpro?
    Thanks and regards,
    Ulrich

    Hi Madhu,
    Than I must have made something wrong because this is exactly what I've tried.
    I'll check my freely prgrammed value  and the assigning again.
    Thanks a lot for your quick reply.
    Ulrich

  • Help for a newbie using the SAP tutorial

    Hi All,
    This is the first time i have picked up the SAP SDK and I am following the tutorial that is in the the help document that is installed with the SDK installation. 
    Under the developers guide section > Tutorial: Blanket Agreement Solution
    I have worked down to Part 4 and I am stuck on step 1 (create an installer)
    Towards the end of the page it talks about creating a new project and to opening line is:  "Add the BlanketAgreement.exe file to the project and change its Build Action to Embedded Resource."
    Can somebody give me some help here please because upuntil now there has been no mention of the BlanketAgreement.exe.
    Equally can anybody suggest some more tutorials that will help be get into the SDK.
    Many thanks,
    Mike

    Hi Mike,
    The BlanketAgreement.exe is a reference to the executable that will be created when you compile the solution you created in Part II - Part III. I think there is a mistake in the tutorial because it asks you to name the project 'Blanket' which means that by default the executable will be called Blanket.exe and not BlanketAgreement.exe. The tutorial also misses the step asking you to compile the Blanket project before you go on to create an installer. You should compile your Blanket project in Release mode before creating an installer. By compiling the project you'll get a Blanket.exe file in the bin folder of your Blanket project which you then need to add to the installer per the instructions.
    SAP do offer development courses in some areas and there is training material here on the SDN and on the SAP partner portal (and maybe the customer portal as well). Try searching this forum for 'training' or 'tutorial' and you should get a few links. There's also a development certification.
    Personally I'd recommend you give yourself a little project to work on and just get stuck in
    Kind Regards,
    Owen

  • SQ01 help for listing not used problem codegroup and code in notifications

    Hi ,
    I am making a query through SQ01 to find out how many damage codes created for a particular notification type are not being used .
    In infoset I used QMEL which lists problem code group and problem code  and as a bonus we also get codegroup text . When I test this query , I get damage code group and code used in all the notifications . I want solution for the following
    1)How to list only distinct damage codegroup and damage code (Not per notification wise)
    2)Which second table I have to use to get problem code short text
    3)Which table I have to add in infoset and how join has to be created so that I get list of  Damage codegroups and codes not used in notification .
    NPB

    Hi Pete ,
    1)How to list only distinct damage codegroup and damage code (Not per notification wise)
            I have output like
                      problem code group     Problem code grp text        Problem code    Problem code text
                      MRTR                           Transformer  problems        1                        I need table here
                      MRTR                            Transformer Problem           1
                      MRTR                            Transformer problem         2
    I need distinct output like
      problem code group     Problem code grp text        Problem code    Problem code text
                      MRTR                           Transformer  problems        1                        I need table here
                      MRTR                            Transformer problem         2
    2)Which second table I have to use to get problem code short text
                    I need  problem code table
    3)Which  problem code group and code not used
                Suppose for notification type X I have configured damage catalog Q  and Q has MRTR , MRAM , MRGT as code groups and each of them have their own codes (say 1 to 5)...If notifications are created only for MRTR and code 1 , 5
    I need not used output like
    MRTR 2
    MRTR 3
    MRTR 4
    MRAM *
    MRCT *
    How can I achieve this using  sq01,02 etc
    NPB
    Edited by: Narasimha Bhat on Feb 1, 2011 4:54 PM

  • Can there be help for formatted Ipod using windows by mistake?

    I recently reformatted using windows by mistake. I read through this board and tried the putting Ipod in disc mode, opened Ipod updater, attached Ipod when prompted and reformatted. It would start to reset to factory settings then stop and give a write to disc failure notification. I have the 30 gig Ipod (video). Please help!!

    Disk cannot be Written Too -
    http://docs.info.apple.com/article.html?artnum=301267

  • Problem|Install iTunes problem! help for first time using iPod touch (2G)

    Look i try to install the iTunes, but after press the install button, its write:
    "The installer ecountered errors before iTunes could be configured.
    Your system has not been modifited. To retry these operations at a later time, please run the installer again."
    What to do? ****!250 Dollar on this iPod, not for free! i must have it working.
    Please help me =]

    Have you seen this iPod 101 tutorial? You might want to bookmark it.
    http://www.apple.com/support/ipod/howto/

  • Help for -Generate Report using Word template having company Logo

    HI GUys,
    I am trying to generate a report in PDF using the word template having some company logo as footer to that .
    When user click on print ,the graph should be added to the template and its should output the report in pdf.
    I am able to achive this when I 'm  not using the template,but when I use the template (sample code shown below),its throws the error attached in screenshot.
    pls suggest the possible way to achieve this

    Why are you deleting the file after creating the report? Are you sure that the image exists at the path specified when running?
    Also, in your top screenshot because of data flow there's a high possibility that you actually delete the file before it gets used because there is no connection between the end of writing the report and deleting the picture.
    I also suspect there's a chance there might be a permissions issue - you are trying to get the file from another user's desktop which isn't normally allowed - do the file/folder permissions give you access to that file path? I would try putting the picture on your own desktop just to rule that out.
    Certified LabVIEW Architect, Certified TestStand Developer
    NI Days (and A&DF): 2010, 2011, 2013, 2014
    NI Week: 2012, 2014
    Knowledgeable in all things Giant Tetris and WebSockets

  • Help for F4 help using MVC

    Hello Friends,
         Can anyone help me to implement F4 Help for input field  Using MVC?   I have created 2 views , one for Input field and other for F4 Help Pop-up. This two Views has there respective controllers and one model class.
    can anybody provide some sample code?

    Hi vinay
    Search in sdn you can find solution.
    Check the following link
    [F4 help using MVC|https://help.sap.com/saphelp_sem320bw/helpdata/en/fb/fbb84c20df274aa52a0b0833769057/frameset.htm]
    Hope thi shelps you
    Regards,
    Rajani

  • Search help for business partner ID in segmentation applet

    Hello,
    In CRM 2007 I'm using the segmentation toll. When creating filters for Business Partner ID criterium I'm using a search help functionality to find the desired records. However search help for business partners used in this area is very different from the search help used in any other parts of WEB UI (it is restricted to only few fields, that are not enough for our requirements).
    Segmentation applet is written in Java but the search help looks like normal WEB UI screen. I wonder if any of you could help me with replacing this serach help called by segmentation applet (java application) with a standard search help for business partners (BP_HEAD_SEARCH)?
    Kind reagrds
    Marek

    Hello there,
    I think the requirement/question is not very clear in your post.
    However, the segment Java applet calls a CRM class which has related code and methods.
    Class:  CL_CRM_MKTTG_SEGAP_COM
    Package: CRM_MKTTG_SEG_APPLET.
    Please explain the problem in detail.
    Regards,
    Vinamra.

Maybe you are looking for

  • Mac went blitz while installing Tiger-please help!

    I bought a Tiger OS X software cd off of Ebay. It is a grey cd that arrived in pristine condition, without scrathes, etc. According to the seller, it came from a mac training center. I am a mac rookie, and I know very little about macs. My only reaso

  • Acrobat Pro 9 on winXP will not update or uninstall.

    I have seen posts for this issue for the mac version.  I am on winXP Pro.  I can neither uninstall or re-install.  I have attempted to follow the technote on manually removing Acrobat. However, I get access denied errors even when running as administ

  • Http content Server - putCert specification

    Hello, I am trying to develop a HTTP Content server for connection with SAP but I encounter difficulties while implementing security. The methode putCert stores the certificate from SAP but it seems like it is a X509 v1 certificate and not a V3. like

  • Can't get audio to record

    When I try and record a screen cast, I get no audio - I get a warning "Adobe Captivate must establish audio input and recording sensitivity levels to create the best possible audio quality. Do you want to continue testing audio levels? I click Yes No

  • Using CDC feature

    I am trying to use the CDC feature so that the changed data is transfered from source table to the target table in ODI. I am using the Oracle Simple JKM. I have started CDC --> Start Journal and it works fine. When I insert a few records into the tab