swings header

swings header

have a string1 it contains 3 parts,for example "123456 service hello" and string2 contains text "change request " like this. and the string3 should contain "123456 +(second string)+ hello" "second string can be dynamic data whatever we give from string2,that should be displayed on the screen. i need logic for this program . i want to apply this to window header part. Thanks in advance

View Answers

September 20, 2011 at 4:08 PM

import java.awt.*;
import javax.swing.*;

class Header{
    public static void main(String []args){
      String st1="123456 service hello";
      String arr[]=st1.split(" ");
      String st2=JOptionPane.showInputDialog(null,"Enter string2: ");
      String st3=st1.replace(arr[1],st2);
      JFrame f=new JFrame(st3);
      f.setLayout(null);
      JLabel l=new JLabel(st3);
      l.setBounds(50,10,300,20);
      f.add(l);
      f.setSize(300,100);
      f.setVisible(true);
    }
}









Related Tutorials/Questions & Answers:
swings header
swings header   have a string1 it contains 3 parts,for example "123456 service hello" and string2 contains text "change request " like.... i need logic for this program . i want to apply this to window header part
swings window header
swings window header  i have a string1 it contains 3 parts,for example "123456 service hello" and string2 contains "change request " like... for this program . i want to apply this to window header part. Thanks
Advertisements
How to set the border in header and footer from login page using swings/awt
How to set the border in header and footer from login page using swings/awt  Hi, How to set the border in header and footer from login page using swings/awt
SWINGS
SWINGS  WHAT ARE THE DIFFERENCES BETWEEN AWT AND SWINGS
swings
need logic for this program . i want to apply this to window header part. Thanks
table header
table header  how set the header to the TableModel
header files
header files   do you have a all header files of java
header() in php
header() in php  hello, Use of header() in php?   hello,ADS_TO_REPLACE_1 header() is used for redirect the page.if you want to redirect one page to another we can use
Header file
Header file  when we use, Scanner input=new Scanner(System.in); this statement in a java program,which header filemust be imported to the program?   Hi Friend, Import the package java.util.*;ADS_TO_REPLACE_1 Thanks
JSP & Swings
JSP & Swings  How to integrate jsp and swings
swings question
swings question  how to change the background color with the help of color values by using swings
swings for webnms
swings for webnms  if i am expanding node of jtree then i want to collapse previous expanding node of jtree in swings how is it possible
php header syntax
php header syntax  What is the correct syntax of PHP Header
Swings JTable
Swings JTable  add values to JTable with four coloums,two of them are comboboxes
http header content length
http header content length  How to check the request header content length in HTTP
Swings & JSP
Swings & JSP  Hai all, Can we use Swing components in a JSP?? Suppose if we enter details in a swing dialog box..and If we want the result in a JSP..is that possible??? Thank you
ModuleNotFoundError: No module named 'header'
ModuleNotFoundError: No module named 'header'  Hi, My Python... 'header' How to remove the ModuleNotFoundError: No module named 'header'... to install padas library. You can install header python with following command
alignment for header and footer
alignment for header and footer  header and footer alignment is not fit like footer is not fit in bottom some white space is there in jsf, what to do
Java Swings
Java Swings  I am doing one project on java Swings, in this i have created one jframe where i defined some JButtons and Jcombobox's, here i need to insert one JTable with headers(IN CURRENT JFrame only).pls help me urgently
E-Mail header extractor
E-Mail header extractor  i want to extract email header with using of java so please show the code of email extractor as result all the field show different color and or it extract ip where the email came
PHP header IE - PHP
PHP header IE  I tried the given code in PHP which is working for firefox header('Content-type: '.$theMimeType); ob_clean(); // clean output buffer flush(); // flush output buffer readfile($thePath); exit
E-Mail header extractor
E-Mail header extractor  i want to extract email header with using of java so please show the code of email extractor as result all the field show different color and or it extract ip where the email came
swings
","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"}; for(i = 0
swings
swings
swings
swings
swings
Resize Header in CSS
Resize Header in CSS  Hi all, Please let me know if we can resize the Header tags in HTML for example H1,H2 and so on... Actually, it looks very...;We can resize header tags in CSS .. and further call that class into you HTML
Swings and JDBC
Swings and JDBC  Hi.. I am vinay.. I am developing a small application using swings and mysql. I am sending part of the code here.. The problem is i need to update the mysql fields with values which are gettin from dynamiclly
Swings - Applet
Swings  Sir, I have developed an application in swings i want to call that class in applet. is it possible. or otherwise is there any way to deploy java class in browser. Give an example... Thanks in advance...  Hi
java swings - Java Beginners
java swings   Do you want to add textfields on the JPanel
how to create frame in swings
how to create frame in swings  how to create frame in swings
Image Movement using Swings
Image Movement using Swings  How to move image using Swings
regarding header files - Spring
regarding header files  i am working on linux platform. i a using spring framework 2.5.4.while comlinig the client program i.e from demo which given in tutorial. error is these two package does not exist import
Removal of XML header
Removal of XML header  I need to retrieve a few records from the file at a time to generate xml.But each time while retrieving the records from the file, I dont want the XML header to appear again..How do I achieve this?What
request header and response - Java Beginners
request header and response  count the hits of a user on a site
Swings/awt - Swing AWT
Swings/awt  Hi, how to write action listeners to the Buttons in RichTextEditor tool bar.. thanks in advance...it's Urgent... i am very much new to Swings
Header Tag:
Header Tag:       bean:header Tag... request header. This tag retrieve the value of the specified request header (may... scope attribute of type String or String[]. If no header with the specified
ModuleNotFoundError: No module named 'flake8-fancy-header'
ModuleNotFoundError: No module named 'flake8-fancy-header'  Hi, My... named 'flake8-fancy-header' How to remove the ModuleNotFoundError: No module named 'flake8-fancy-header' error? Thanks   Hi
ModuleNotFoundError: No module named 'grip-no-header'
ModuleNotFoundError: No module named 'grip-no-header'  Hi, My... named 'grip-no-header' How to remove the ModuleNotFoundError: No module named 'grip-no-header' error? Thanks   Hi, In your python
request header and response - JSP-Servlet
request header and response  Create aservlet that redirects a client to a.html if its morning ,to b.html if its a afternoon else to c.html.
java swings - Java Beginners
java swings   Hi, I need the code for click the refresh button then list values will be refresh.Please send the code ........... Thanks, Valarmathi
java code using swings
java code using swings  code that should be able to enter data of student details using all swings into the access database using jdbc connectivity
An application using swings and vector methods
An application using swings and vector methods   Hi, I want an application in Java swings which uses good selection of Vectors methods
about swings - Java Beginners
about swings   Dear sir,Good evening, i am doing mca sir,i am doing the project in swings,so plz provide the material about swings sir Thank you  Hi Friend, Please visit the following link
java swings - Java Beginners
java swings   Hi, I need the code for joptionpane with jcombobox. my requirement is click on add button,one joptionpane will come.from the option pane i need to select the combobox values. Please send the sample code
Javah -  Header File Generator
Javah -  Header File Generator   ... Machine. To implement these methods Javah generates C header and source files... source code. The name of the header file and the structure declared within
List out different arguments in PHP header function?
List out different arguments in PHP header function?   List out different arguments in PHP header function
request header and response - JSP-Servlet
request header and response  hi sir, i have facing some problem in this qustion:- Create a servlet that accept a name and a phone number and contain 4 buttons add,update,delete and view .On clicking on the any of the button

Ads