Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 5842195
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T11:59:09+00:00 2026-05-22T11:59:09+00:00

I want to bold specific letters in my EditField. public void changeToBold() { try

  • 0

I want to bold specific letters in my EditField.

public void changeToBold() {
    try {
        alphaSans = FontFamily.forName("BBAlpha Sans");
        font = alphaSans.getFont(Font.BOLD, 9, Ui.UNITS_pt);
        editField.setFont(font);
    } catch (ClassNotFoundException e) {
        Dialog.alert("alert");
    }
}

public void changeToPlain() {
    try {
        alphaSans = FontFamily.forName("BBAlpha Sans");
        font = alphaSans.getFont(Font.PLAIN, 9, Ui.UNITS_pt);
        editField.setFont(font);
    } catch (ClassNotFoundException e) {
        Dialog.alert("alert");
    }
}

I add the text to the EditField from a sqlite db.

while(c1.next() && c2.next()) {
            r1 = c1.getRow();
            r2 = c2.getRow();
            temp = r2.getString(0);

            changeToBold();
            theText += temp;
            changeToPlain();
            theText += r.1getString(0);
        }

*Maybe there is a way to create a LabelField that holds the text I wnat in bold and then add it simultaneously to the EditField?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T11:59:10+00:00Added an answer on May 22, 2026 at 11:59 am

    You need to use RichTextField. See How To – Format text in a RichTextField for an example.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to set bold the charecters within specific range as Bold. How could
Given a rectangular area, I want to render some text using a specific font
I want to show some bold and some simple word within the same sentence.If
I want to style my content with some bold text and even linked text.
I want all labels inside a detail view to be bold. I created a
What i want to do is have a bold title on the left with
I want to have a left justified label with some bold text in it,
Given the following sequence: normal %(b)BOLD% normal I want to transform this into the
I my application i want to make the text seleected selected using mouse bold..How
i want the following functionality. input : this is test <b> bold text </b>

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.