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



Login         

View Questions and Answers by Category

Advertisements


 
Have Programming Question? Ask it here!
 
 
 


baya
Java lucene
0 Answer(s)      4 years and 2 months ago
Posted in : Java Beginners


Build your own search engine.
how can i implement lucene code in my GUI interface of search engine so that my search engine interface can fully functional for searching text files in my PC.
this is my GUI code for my search engine.
i am using eclipse to do this task.

package org.apache.lucene;

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

public class SearchEngines extends JFrame {

JButton btnsrc;
JButton btnidx;
JTextField qry;
JLabel label;
JLabel result;
JRadioButton poor;
JRadioButton average;
JRadioButton good;

public SearchEngines () {
Container pane = getContentPane();
pane.setLayout(new FlowLayout());

JPanel panel1 = new JPanel();
panel1.setLayout(new FlowLayout());

btnsrc = new JButton("Search");
label = new JLabel("Query:");
qry = new JTextField(20);
btnidx = new JButton("Index");

panel1.add(label);
panel1.add(qry);
panel1.add(btnsrc);
panel1.add(btnidx);

JPanel panel2 = new JPanel();

result = new JLabel("Search Result:");
panel2.add(result);

ButtonGroup grp = new ButtonGroup();
poor = new JRadioButton("Poor");
average = new JRadioButton("Average");
good = new JRadioButton("Good");

panel2.add(poor);
panel2.add(average);
panel2.add(good);


grp.add(poor);
grp.add(average);
grp.add(good);

pane.add(panel1);
pane.add(panel2);

}
public static void main (String []args)
{
SearchEngines frame = new SearchEngines();
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
frame.setTitle("SEARCH ENGINE");
frame.setSize(500, 400);
frame. setVisible(true);
}
}


Advertisement
View Answers

Related Tutorials/Questions & Answers:
Java lucene
Java lucene  Build your own search engine.how can i implement lucene code in my GUI interface of search engine so that my search engine interface can fully functional for searching text files in my PC.this is my GUI code for my
Lucene Search in JSP - JSP-Servlet
Lucene Search in JSP  Hello Sir, I want to Develop lucene - Search engine in Jsp page which can Search full text from XML file..through XML parser.. Example: in Search interface there are one textbox after putting some value
Advertisements
search engine build by lucene and eclipse
search engine build by lucene and eclipse  Hi, here is the code: package org.apache.lucene; import java.awt.*; import java.awt.event.*; import javax.swing.*; import org.apache.lucene.analysis.Analyzer; import
Hibernate Search
full text index using apache Lucene engine. Then the index data can be used... enterprise applications in Java technology. Hibernate search integrates with the Java Persistence API and Apache Lucene. Apache Lucene has high performance search
java
java  diff bt core java and java
java
java  what is java
Java
Java   Whether Java is pure object oriented Language
java
java  different between java & core java
java
java  explain technologies are used in java now days and structure java
java
java   why iterator in java if we for loop
JAVA
JAVA  how the name came for java language as "JAVA
java
java  what is java reflection
java
java  is java open source
What is Hibernate in Java?
What is Hibernate in Java? - Hibernate is ORM tool in Java. Are you beginner in ORM framework in Java programming Language? Are you looking... Hibernate Framework in Java. The Hibernate in Java is framework used for developing
java
what is the size of array in java ?  what is the size of array in java ? what is the mean of finalize in java
java
java   in java does not pointers concept but what is nullpointers in java?   nullpointer is a runtime Exception
java
java  write a java program using filenotfoundexception
Java
Java  how to draw class diagrams in java
java
java   difference between class and interface
java
java  why multiple inheritance is not possible in java
java
java  explain object oriented concept in java
java
java  is java purely object oriented language
Java
Java   Whether Java is Programming Language or it is SOftware
java
java  what are JAVA applications development tools
java
java  how use java method
java
java  send me java interview questions
java
java  write a program in java to acess the email
java
java  Write a java code to print "ABABBABCABABBA
java
java  why to set classpath in java
java
java  why to set classpath in java
Advertisements
 

 

 

DMCA.com