Latest Tutorials| Questions and Answers|Ask Questions?|Site Map



Home Answers Viewqa Swing-AWT swings header

Have Programming Question? Ask it here!
 
 
 


raveen
swings header
1 Answer(s)      2 years and 11 months ago
Posted in : Swing AWT


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


Advertisement
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, 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.*; Thanks
php header syntax
php header syntax  What is the correct syntax of PHP Header
http header content length
http header content length  How to check the request header content length in HTTP
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
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
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
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 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
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
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
Swings JTable
Swings JTable  add values to JTable with four coloums,two of them are comboboxes
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
request header and response - Java Beginners
request header and response  count the hits of a user on a site
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
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 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
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
swings
","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"}; for(i = 0
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
request header and response - JSP-Servlet
request header and response  Create a html form that accept user name and password ,if the user name and password is admin it redirects it to adminhome.html,if the user name and password is guest and guest it redirects
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
Image Movement using Swings
Image Movement using Swings  How to move image using Swings
how to create frame in swings
how to create frame in swings  how to create frame in swings
List out different arguments in PHP header function?
List out different arguments in PHP header function?   List out different arguments in PHP header function
how to create a header in jtable using java swing
how to create a header in jtable using java swing  how to create a header in jtable using java swing   d
Excel Sheet Header
Excel  Sheet Header In this section, you will learn how to create header on a sheet using Apache POI. In the given below example, we will create...;Take Print Preview to View Headers")); Header header = sheet.getHeader
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
Create Security header in web services - WebSevices
Create Security header in web services  How we can create a security header in the web services.Please provide me the code if anyone available thanks in advance
Return the MIME Header
Return the MIME Header   ... to retrieve the MIME header. MIME is stands for Multipurpose Internet Mail Extensions... a connection we use getContentType() which display the value of the content-type header
Adding Image to Header and footer at generating Itext PDF
Adding Image to Header and footer at generating Itext PDF  i want to add Image to Header , am generating the PDF letter am able to add the text as showing below : HeaderFooter header = new HeaderFooter(new Phrase
Fixed Header - Design concepts & design patterns
scrolling down data in the table the header gets lost.While analysing data one cant identify the coloumns to respective name.I want that header to be fixed,even after am scrolling 20000 data.But header with the name should be fixed and data
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
 

 

 

DMCA.com