# Picking a Dialog Type

DevFeed: [Picking a Dialog Type](<https://devfeed.tech/articles/picking-a-dialog-type-19429.md>)

Original publisher: [Read original article](<https://www.codenameone.com/blog/picking-dialog-type/>)

Author: Shai Almog

Published: 2020-01-09T00:00:00Z

Content type: tutorial

Language: en

Sources: [CodeName One](<https://devfeed.tech/sources/codename-one.md>)

Topics: [dialog](<https://devfeed.tech/topics/dialog.md>), [ui](<https://devfeed.tech/topics/ui.md>)

Tags: [developers](<https://devfeed.tech/tags/developers.md>), [dialog](<https://devfeed.tech/tags/dialog.md>), [layout](<https://devfeed.tech/tags/layout.md>), [ui](<https://devfeed.tech/tags/ui.md>)

## AI overview

This tutorial explains the differences between Codename One's Dialog and InteractionDialog, including modality, event handling, layout behavior, text-field and virtual-keyboard issues, and when to use each type.

## Source excerpt

The duality of InteractionDialog and Dialog is often confusing to the Codename One newcomer (and to some degree to veteran developers too). This is in part due to the multiple behavior differences that extend far beyond the "official" functionality difference. This has its roots in history that predated Codename One. In this post I'll try to clarify the process of picking the "right one" and the tradeoffs involved.